/** * Sets the data-role attribute to the given value. * * @param value the value to set the data-role attribute to */ @Override public void setDataRole(String value) { JQMCommon.setDataRole(this, value); }
/** * Sets the data-role attribute to the given value. * * @param value the value to set the data-role attribute to */ @Override public void setDataRole(String value) { JQMCommon.setDataRole(this, value); }
/** * Sets the data-role attribute to the given value. * * @param value the value to set the data-role attribute to */ @Override public void setDataRole(String value) { JQMCommon.setDataRole(this, value); }
/** * There is no "correct" way to restore dialog after it was called as page, * so this method is ugly hack, but it's useful and working. */ public void restoreRoleDialog() { JQMCommon.setDataRole(this, Mobile.DATA_ROLE_DIALOG); internRestoreDialog(getElement()); }
protected void initA() { JQMCommon.setDataRole(a, "none"); // Let's set proper initial default href value. // If no real href is defined later, then something is expected in onClick handler. a.setAttribute("href", "javascript:;"); setStyleName(a, JQM4GWT_IMAGE_LINK_A); }
protected void initA() { JQMCommon.setDataRole(a, "none"); // Let's set proper initial default href value. // If no real href is defined later, then something is expected in onClick handler. a.setAttribute("href", "javascript:;"); setStyleName(a, JQM4GWT_IMAGE_LINK_A); }
protected void initA() { JQMCommon.setDataRole(a, "none"); // Let's set proper initial default href value. // If no real href is defined later, then something is expected in onClick handler. a.setAttribute("href", "javascript:;"); setStyleName(a, JQM4GWT_IMAGE_LINK_A); }
/** * There is no "correct" way to restore dialog after it was called as page, * so this method is ugly hack, but it's useful and working. */ public void restoreRoleDialog() { JQMCommon.setDataRole(this, Mobile.DATA_ROLE_DIALOG); internRestoreDialog(getElement()); }
/** * There is no "correct" way to restore dialog after it was called as page, * so this method is ugly hack, but it's useful and working. */ public void restoreRoleDialog() { JQMCommon.setDataRole(this, Mobile.DATA_ROLE_DIALOG); internRestoreDialog(getElement()); }
protected void setRole(String role) { String s = JQMCommon.getDataRole(this); if (s != null && !s.isEmpty()) removeStyleName("jqm4gwt-" + s); JQMCommon.setDataRole(this, role); addStyleName("jqm4gwt-" + role); }
protected void setRole(String role) { String s = JQMCommon.getDataRole(this); if (s != null && !s.isEmpty()) removeStyleName("jqm4gwt-" + s); JQMCommon.setDataRole(this, role); addStyleName("jqm4gwt-" + role); }
protected void setRole(String role) { String s = JQMCommon.getDataRole(this); if (s != null && !s.isEmpty()) removeStyleName("jqm4gwt-" + s); JQMCommon.setDataRole(this, role); addStyleName("jqm4gwt-" + role); }
public JQMTabs() { flow = new FlowPanel(); initWidget(flow); JQMCommon.setDataRole(this, "tabs"); setStyleName("jqm4gwt-tabs"); }
public JQMTabs() { flow = new FlowPanel(); initWidget(flow); JQMCommon.setDataRole(this, "tabs"); setStyleName("jqm4gwt-tabs"); }
public JQMTabs() { flow = new FlowPanel(); initWidget(flow); JQMCommon.setDataRole(this, "tabs"); setStyleName("jqm4gwt-tabs"); }
public static void initEltAsButton(Element elt) { //JQMCommon.setDataRole("button"); - performance and buttonMarkup() is deprecated as of 1.4 and will be removed in 1.5 JQMCommon.setDataRole(elt, null); elt.addClassName("ui-btn"); String tag = elt.getTagName(); if (tag == null || !tag.equals("BUTTON")) JQMCommon.setRole(elt, "button"); // TODO - defaults should be set based on $.fn.buttonMarkup.defaults JQMCommon.setShadowEx(elt, true); JQMCommon.setCornersEx(elt, true, false/*explicitDataAttr*/); }
public static void initEltAsButton(Element elt) { //JQMCommon.setDataRole("button"); - performance and buttonMarkup() is deprecated as of 1.4 and will be removed in 1.5 JQMCommon.setDataRole(elt, null); elt.addClassName("ui-btn"); String tag = elt.getTagName(); if (tag == null || !tag.equals("BUTTON")) JQMCommon.setRole(elt, "button"); // TODO - defaults should be set based on $.fn.buttonMarkup.defaults JQMCommon.setShadowEx(elt, true); JQMCommon.setCornersEx(elt, true, false/*explicitDataAttr*/); }
public static void initEltAsButton(Element elt) { //JQMCommon.setDataRole("button"); - performance and buttonMarkup() is deprecated as of 1.4 and will be removed in 1.5 JQMCommon.setDataRole(elt, null); elt.addClassName("ui-btn"); String tag = elt.getTagName(); if (tag == null || !tag.equals("BUTTON")) JQMCommon.setRole(elt, "button"); // TODO - defaults should be set based on $.fn.buttonMarkup.defaults JQMCommon.setShadowEx(elt, true); JQMCommon.setCornersEx(elt, true, false/*explicitDataAttr*/); }
public JQMColumnToggle() { Element table = getElement(); JQMCommon.setDataRole(table, "table"); JQMCommon.setAttribute(table, "data-mode", TOGGLE); setResponsive(STD_RESPONSIVE); setRowLines(STD_ROW_LINES); setRowStripes(STD_ROW_STRIPES); }
public JQMColumnToggle() { Element table = getElement(); JQMCommon.setDataRole(table, "table"); JQMCommon.setAttribute(table, "data-mode", TOGGLE); setResponsive(STD_RESPONSIVE); setRowLines(STD_ROW_LINES); setRowStripes(STD_ROW_STRIPES); }