Lines Matching refs:setAttribute

146     setAttribute(element, Attribute.CLASS, className);
147 setAttribute(element, Attribute.RESOURCE_ID, uiElement.getResourceId());
148 setAttribute(element, Attribute.PACKAGE, uiElement.getPackageName());
149 setAttribute(element, Attribute.CONTENT_DESC, uiElement.getContentDescription());
150 setAttribute(element, Attribute.TEXT, uiElement.getText());
151 setAttribute(element, Attribute.CHECKABLE, uiElement.isCheckable());
152 setAttribute(element, Attribute.CHECKED, uiElement.isChecked());
153 setAttribute(element, Attribute.CLICKABLE, uiElement.isClickable());
154 setAttribute(element, Attribute.ENABLED, uiElement.isEnabled());
155 setAttribute(element, Attribute.FOCUSABLE, uiElement.isFocusable());
156 setAttribute(element, Attribute.FOCUSED, uiElement.isFocused());
157 setAttribute(element, Attribute.SCROLLABLE, uiElement.isScrollable());
158 setAttribute(element, Attribute.LONG_CLICKABLE, uiElement.isLongClickable());
159 setAttribute(element, Attribute.PASSWORD, uiElement.isPassword());
161 element.setAttribute(Attribute.SELECTION_START.getName(),
163 element.setAttribute(Attribute.SELECTION_END.getName(),
166 setAttribute(element, Attribute.SELECTED, uiElement.isSelected());
167 element.setAttribute(Attribute.BOUNDS.getName(), uiElement.getBounds().toShortString());
172 element.setAttribute(BaseUiElement.ATTRIB_NOT_VISIBLE, "");
174 element.setAttribute(BaseUiElement.ATTRIB_VISIBLE_BOUNDS, uiElement.getVisibleBounds()
185 private static void setAttribute(Element element, Attribute attr, String value) {
187 element.setAttribute(attr.getName(), value);
192 private static void setAttribute(Element element, Attribute attr, boolean value) {
194 element.setAttribute(attr.getName(), "");