Home
last modified time | relevance | path

Searched refs:parentNode (Results 1 – 20 of 20) sorted by relevance

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/
DTableLayoutRule.java97 final @NonNull INode parentNode, in addLayoutActions() argument
99 super.addLayoutActions(actions, parentNode, children); in addLayoutActions()
100 addTableLayoutActions(mRulesEngine, actions, parentNode, children); in addLayoutActions()
107 List<RuleAction> actions, final INode parentNode, in addTableLayoutActions() argument
116 parentNode.editXml("Add/Remove Table Row", new INodeHandler() { in addTableLayoutActions()
124 INode[] rows = parentNode.getChildren(); in addTableLayoutActions()
129 while (child != null && child.getParent() != parentNode) { in addTableLayoutActions()
145 newRow = parentNode.appendChild(FQCN_TABLE_ROW); in addTableLayoutActions()
147 newRow = parentNode.insertChildAt(FQCN_TABLE_ROW, index); in addTableLayoutActions()
157 while (child != null && child.getParent() != parentNode) { in addTableLayoutActions()
[all …]
DTableRowRule.java56 final @NonNull INode parentNode, in addLayoutActions() argument
58 super.addLayoutActions(actions, parentNode, children); in addLayoutActions()
64 INode grandParent = parentNode.getParent(); in addLayoutActions()
DGridLayoutRule.java157 final @NonNull INode parentNode, in addLayoutActions() argument
159 super.addLayoutActions(actions, parentNode, children); in addLayoutActions()
161 String namespace = getNamespace(parentNode); in addLayoutActions()
165 new PropertyCallback(Collections.singletonList(parentNode), in addLayoutActions()
169 "horizontal", "vertical"), getCurrentOrientation(parentNode), in addLayoutActions()
177 actions.add(createMarginAction(parentNode, children)); in addLayoutActions()
188 parentNode.editXml("Add/Remove Row/Column", new INodeHandler() { in addLayoutActions()
210 GridModel grid = GridModel.get(mRulesEngine, parentNode, null); in addLayoutActions()
586 public void paintSelectionFeedback(@NonNull IGraphics graphics, @NonNull INode parentNode, in paintSelectionFeedback() argument
588 super.paintSelectionFeedback(graphics, parentNode, childNodes, view); in paintSelectionFeedback()
[all …]
DLinearLayoutRule.java129 final @NonNull INode parentNode, in addLayoutActions() argument
131 super.addLayoutActions(actions, parentNode, children); in addLayoutActions()
135 new PropertyCallback(Collections.singletonList(parentNode), in addLayoutActions()
141 getCurrentOrientation(parentNode), in addLayoutActions()
149 if (!isVertical(parentNode)) { in addLayoutActions()
150 String current = parentNode.getStringAttr(ANDROID_URI, ATTR_BASELINE_ALIGNED); in addLayoutActions()
154 new PropertyCallback(Collections.singletonList(parentNode), in addLayoutActions()
165 actions.add(createMarginAction(parentNode, children)); in addLayoutActions()
178 parentNode.editXml("Change Weight", new INodeHandler() { in addLayoutActions()
200 distributeWeights(parentNode, parentNode.getChildren()); in addLayoutActions()
[all …]
DRelativeLayoutRule.java93 public List<String> getSelectionHint(@NonNull INode parentNode, @NonNull INode childNode) { in getSelectionHint() argument
131 public void paintSelectionFeedback(@NonNull IGraphics graphics, @NonNull INode parentNode, in paintSelectionFeedback() argument
133 super.paintSelectionFeedback(graphics, parentNode, childNodes, view); in paintSelectionFeedback()
137 childNodes = Arrays.asList(parentNode.getChildren()); in paintSelectionFeedback()
144 ConstraintPainter.paintSelectionFeedback(graphics, parentNode, childNodes, showDependents); in paintSelectionFeedback()
309 final @NonNull INode parentNode, in addLayoutActions() argument
311 super.addLayoutActions(actions, parentNode, children); in addLayoutActions()
313 actions.add(createGravityAction(Collections.<INode>singletonList(parentNode), in addLayoutActions()
316 actions.add(createMarginAction(parentNode, children)); in addLayoutActions()
326 parentNode.editXml("Center", new INodeHandler() { in addLayoutActions()
DBaseLayoutRule.java109 protected final RuleAction createMarginAction(final INode parentNode, in createMarginAction() argument
113 Collections.singletonList(parentNode) in createMarginAction()
123 parentNode.editXml("Change Margins", new INodeHandler() { in createMarginAction()
189 final @NonNull INode parentNode, in addLayoutActions() argument
191 super.addLayoutActions(actions, parentNode, children); in addLayoutActions()
194 Collections.singletonList(parentNode) in addLayoutActions()
215 parentNode.editXml(undoLabel, new INodeHandler() { in addLayoutActions()
282 public void onPasteBeforeChild(INode parentNode, Object parentView, INode targetNode, in onPasteBeforeChild() argument
284 DropFeedback feedback = onDropEnter(parentNode, parentView, elements); in onPasteBeforeChild()
286 Point parentP = parentNode.getBounds().getTopLeft(); in onPasteBeforeChild()
[all …]
DFrameLayoutRule.java168 final @NonNull INode parentNode,
170 super.addLayoutActions(actions, parentNode, children);
172 actions.add(createMarginAction(parentNode, children));
DAbsoluteLayoutRule.java50 public List<String> getSelectionHint(@NonNull INode parentNode, @NonNull INode childNode) { in getSelectionHint() argument
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/
DRulesEngine.java220 NodeProxy parentNode, List<NodeProxy> children ) { in callAddLayoutActions() argument
222 IViewRule rule = loadRule(parentNode.getNode()); in callAddLayoutActions()
227 rule.addLayoutActions(actions, parentNode, children); in callAddLayoutActions()
246 public List<String> callGetSelectionHint(NodeProxy parentNode, NodeProxy childNode) { in callGetSelectionHint() argument
248 IViewRule rule = loadRule(parentNode.getNode()); in callGetSelectionHint()
252 return rule.getSelectionHint(parentNode, childNode); in callGetSelectionHint()
264 public void callPaintSelectionFeedback(GCWrapper gcWrapper, NodeProxy parentNode, in callPaintSelectionFeedback() argument
267 IViewRule rule = loadRule(parentNode.getNode()); in callPaintSelectionFeedback()
271 rule.paintSelectionFeedback(gcWrapper, parentNode, childNodes, view); in callPaintSelectionFeedback()
506 NodeProxy parentNode, NodeProxy childNode, in callCreateHooks() argument
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DOutlineDropListener.java90 UiViewElementNode parentNode = parent.getUiViewNode(); in performDrop() local
92 UiViewElementNode node = parentNode; in performDrop()
97 parentNode = parent.getUiViewNode(); in performDrop()
101 for (UiElementNode child : parentNode.getUiChildren()) { in performDrop()
114 final NodeProxy targetNode = canvas.getNodeFactory().create(parentNode); in performDrop()
182 UiViewElementNode parentNode = parent.getUiViewNode(); in validateDrop() local
187 if (!DescriptorsUtils.canInsertChildren(parentNode.getDescriptor(), in validateDrop()
198 if (isAncestor(item.getViewInfo().getUiViewNode(), parentNode)) { in validateDrop()
DSelectionOverlay.java126 NodeProxy parentNode = (NodeProxy) parent; in paintHints() local
127 List<String> infos = rulesEngine.callGetSelectionHint(parentNode, node); in paintHints()
166 NodeProxy parentNode = (NodeProxy) parent; in paintSelectionFeedback() local
167 parents.add(parentNode); in paintSelectionFeedback()
DRenderService.java578 UiElementNode parentNode = ((NodeProxy) parent).getNode(); in measureChildren() local
579 UiElementPullParser topParser = new UiElementPullParser(parentNode, in measureChildren()
DOutlinePage.java1152 UiViewElementNode parentNode = target.getFirst(); in move() local
1153 final NodeProxy targetNode = canvas.getNodeFactory().create(parentNode); in move()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/values/
DValuesContentAssist.java142 Node parentNode, Node currentNode, UiElementNode uiParent, in computeTextValues() argument
144 super.computeTextValues(proposals, offset, parentNode, currentNode, uiParent, in computeTextValues()
147 if (parentNode.getNodeName().equals(TAG_ITEM) && in computeTextValues()
148 parentNode.getParentNode() != null && in computeTextValues()
149 TAG_STYLE.equals(parentNode.getParentNode().getNodeName())) { in computeTextValues()
162 Element element = (Element) parentNode; in computeTextValues()
208 if (parentNode.getNodeName().equals(TAG_ITEM)) { in computeTextValues()
218 Node typeNode = parentNode.getAttributes().getNamedItem(ATTR_TYPE); in computeTextValues()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/
DAndroidContentAssist.java163 Node parentNode = context.getFirst(); in computeCompletionProposals() local
165 assert parentNode != null || currentNode != null; in computeCompletionProposals()
170 rootUiNode == null ? null : rootUiNode.findXmlNode(parentNode); in computeCompletionProposals()
171 computeTextValues(proposals, offset, parentNode, currentNode, parentUiNode, in computeCompletionProposals()
182 parentNode, currentNode, parent, info, nextChar); in computeCompletionProposals()
184 computeNonAttributeProposals(viewer, offset, wordPrefix, proposals, parentNode, in computeCompletionProposals()
193 List<ICompletionProposal> proposals, Node parentNode, Node currentNode, String parent, in computeNonAttributeProposals() argument
220 parentNode != null ? parentNode : null, wordPrefix, needTag, in computeNonAttributeProposals()
227 int offset, String wordPrefix, UiElementNode currentUiNode, Node parentNode, in computeAttributeProposals() argument
255 addMatchingProposals(proposals, choices, offset, parentNode != null ? parentNode : null, in computeAttributeProposals()
[all …]
DHyperlinks.java1339 Node parentNode = context.getNode().getParentNode(); in detectHyperlinks() local
1340 if (parentNode != null && parentNode.getNodeType() == Node.ELEMENT_NODE) { in detectHyperlinks()
/sdk/templates/docs/
Djquery-1.8.0.min.js2parentNode||a.parentNode.nodeType===11}function bi(a,b){do a=a[b];while(a&&a.nodeType!==1);return …
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/
DLayoutContentAssist.java113 protected ElementDescriptor[] getElementChoicesForTextNode(Node parentNode) { in getElementChoicesForTextNode() argument
114 ElementDescriptor[] choices = super.getElementChoicesForTextNode(parentNode); in getElementChoicesForTextNode()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/resources/platform/
DAttrsXmlParser.java294 Node parentNode = node.getAttributes().getNamedItem("parent"); //$NON-NLS-1$ in parseResources() local
295 String parents = parentNode == null ? null : parentNode.getNodeValue(); in parseResources()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/relative/
DConstraintPainter.java111 public static void paintSelectionFeedback(IGraphics graphics, INode parentNode, in paintSelectionFeedback() argument
114 DependencyGraph dependencyGraph = new DependencyGraph(parentNode); in paintSelectionFeedback()