/** * Gets the title associated with this object. The title is the 'tool-tip' * displayed to users when they hover over the object. * * @return the object's title */ public String getTitle() { return getElement().getPropertyString("title"); }
@Override public String getTitle() { return getContainerElement().getPropertyString("title"); }
/** * Gets the name associated with this frame. * * @return the frame's name */ public String getName() { return getElement().getPropertyString("name"); } }
public String getText() { return getElement().getPropertyString("value"); }
public String getName() { return getElement().getPropertyString("name"); }
/** * Gets the name associated with this frame. * * @return the frame's name */ public String getName() { return getElement().getPropertyString("name"); } }
@Override public boolean isAutoCapitalize() { String auto = box.getElement().getPropertyString("autocapitalize"); return "on".equals(auto); }
@Override public boolean isAutoCapitalize() { String auto = box.getElement().getPropertyString("autocapitalize"); return "on".equals(auto); }
@Override public String getValue() { return getElement().getPropertyString("value"); }
@Override public boolean isAutoCorrectEnabled() { String autoCorrent = box.getElement().getPropertyString("autocorrect"); return "on".equals(autoCorrent); }
/** * Gets the title associated with this object. The title is the 'tool-tip' * displayed to users when they hover over the object. * * @return the object's title */ public String getTitle() { return getElement().getPropertyString("title"); }
@Override public String getValue() { return getElement().getPropertyString("value"); }
@Override public String getValue() { return getElement().getPropertyString("value"); }
/** * Gets the title associated with this object. The title is the 'tool-tip' * displayed to users when they hover over the object. * * @return the object's title */ public String getTitle() { return getElement().getPropertyString("title"); }
/** * Returns the index of the element. * * @param element the element * @return the index */ public int indexOf(Element element) { if (element.getPropertyString("viewIndex") != null) { return element.getPropertyInt("viewIndex"); } return all.indexOf(element); }
@Override public Class<?> getValueType() { return getValueClassForInputType(getElement().getPropertyString("type")); }
@Override public void setValue(final T value) { final String inputType = getElement().getPropertyString("type"); final Class<?> valueType = getValueClassForInputType(inputType); if (Boolean.class.equals(valueType)) { getElement().setPropertyBoolean("checked", (Boolean) value); } else if (String.class.equals(valueType)) { getElement().setPropertyObject("value", value != null ? value : ""); } else { throw new IllegalArgumentException("Cannot set value " + value + " to element input[type=\"" + inputType + "\"]."); } }
@Override public void setValue(final T value) { final String inputType = getElement().getPropertyString("type"); final Class<?> valueType = getValueClassForInputType(inputType); if (Boolean.class.equals(valueType)) { getElement().setPropertyBoolean("checked", (Boolean) value); } else if (String.class.equals(valueType)) { getElement().setPropertyObject("value", value != null ? value : ""); } else { throw new IllegalArgumentException("Cannot set value " + value + " to element input[type=\"" + inputType + "\"]."); } }
protected void onDayClick(ComponentEvent ce) { ce.preventDefault(); El target = ce.getTargetEl(); El e = target.findParent("a", 5); if (e != null) { String dt = e.dom.getPropertyString("dateValue"); if (dt != null) { handleDateClick(e, dt); return; } } }
protected void checkTabIndex(SuggestBox widget) { final int INITIAL_TAB_INDEX = 0; final int FINAL_TAB_INDEX = 1; // when / then widget.setTabIndex(INITIAL_TAB_INDEX); assertEquals(INITIAL_TAB_INDEX, widget.getTabIndex()); assertEquals(String.valueOf(INITIAL_TAB_INDEX), widget.getElement().getPropertyString("tabIndex")); widget.setTabIndex(FINAL_TAB_INDEX); assertEquals(FINAL_TAB_INDEX, widget.getTabIndex()); assertEquals(String.valueOf(FINAL_TAB_INDEX), widget.getElement().getPropertyString("tabIndex")); }