@Override public boolean isHorizontal() { return fieldset.isHorizontal(); }
@Override public boolean isVertical() { return fieldset.isVertical(); }
private void setupFieldset(String labelText) { if (fieldset != null) { boolean horz = fieldset.isHorizontal(); boolean vert = fieldset.isVertical(); IconPos iconPos = getIconPos(); boolean mini = isMini(); remove(fieldset); fieldset = new JQMFieldset(); if (horz) fieldset.setHorizontal(); if (vert) fieldset.setVertical(); setIconPos(iconPos); setMini(mini); } else { // the fieldset is the inner container and is contained inside the flow fieldset = new JQMFieldset(); } fieldset.getElement().setId(Document.get().createUniqueId()); add(fieldset); legend = new Legend(); fieldset.add(legend); setText(labelText); }
/** * Returns the value of the button that has the given id * * @return the value of the button with the given id */ private String getValueForId(String id) { for (int k = 0; k < fieldset.getWidgetCount(); k++) { Widget widget = fieldset.getWidget(k); if (id.equals(widget.getElement().getAttribute("id"))) return widget.getElement().getAttribute("value"); } return null; }
public void refresh() { refreshAll(fieldset.getElement()); }
@UiChild(tagname = "check") public void addCheckbox(JQMCheckbox checkbox) { checks.add(checkbox); checkbox.setTheme(theme); fieldset.add(checkbox); }
/** * Removes the given {@link JQMRadio} from this radioset * * @param radio - the radio to remove */ public void removeRadio(JQMRadio radio) { if (radio == null) return; TextBox inp = radio.getInput(); if (inp != null) { radios.remove(radio); fieldset.remove(inp); } if (radio.getLabel() != null) fieldset.remove(radio.getLabel()); }
private void setupFieldset(String labelText) { if (fieldset != null) { boolean horz = fieldset.isHorizontal(); boolean vert = fieldset.isVertical(); IconPos iconPos = getIconPos(); boolean mini = isMini(); remove(fieldset); fieldset = new JQMFieldset(); if (horz) fieldset.setHorizontal(); if (vert) fieldset.setVertical(); setIconPos(iconPos); setMini(mini); } else { // the fieldset is the inner container and is contained inside the flow fieldset = new JQMFieldset(); } fieldset.getElement().setId(Document.get().createUniqueId()); add(fieldset); // the legend must be added to the fieldset legend = new Legend(); legend.setText(labelText); fieldset.add(legend); }
/** * Returns the value of the button that has the given id * * @return the value of the button with the given id */ private String getValueForId(String id) { for (int k = 0; k < fieldset.getWidgetCount(); k++) { Widget widget = fieldset.getWidget(k); if (id.equals(widget.getElement().getAttribute("id"))) return widget.getElement().getAttribute("value"); } return null; }
public void refresh() { refreshAll(fieldset.getElement()); }
@UiChild(tagname = "check") public void addCheckbox(JQMCheckbox checkbox) { checks.add(checkbox); checkbox.setTheme(theme); fieldset.add(checkbox); }
/** * Removes the given {@link JQMRadio} from this radioset * * @param radio - the radio to remove */ public void removeRadio(JQMRadio radio) { if (radio == null) return; TextBox inp = radio.getInput(); if (inp != null) { radios.remove(radio); fieldset.remove(inp); } if (radio.getLabel() != null) fieldset.remove(radio.getLabel()); }
private void setupFieldset(String labelText) { if (fieldset != null) { boolean horz = fieldset.isHorizontal(); boolean vert = fieldset.isVertical(); IconPos iconPos = getIconPos(); boolean mini = isMini(); remove(fieldset); fieldset = new JQMFieldset(); if (horz) fieldset.setHorizontal(); if (vert) fieldset.setVertical(); setIconPos(iconPos); setMini(mini); } else { // the fieldset is the inner container and is contained inside the flow fieldset = new JQMFieldset(); } fieldset.getElement().setId(Document.get().createUniqueId()); add(fieldset); // the legend must be added to the fieldset legend = new Legend(); legend.setText(labelText); fieldset.add(legend); }
/** * Returns the value of the button that has the given id * * @return the value of the button with the given id */ private String getValueForId(String id) { for (int k = 0; k < fieldset.getWidgetCount(); k++) { Widget widget = fieldset.getWidget(k); if (id.equals(widget.getElement().getAttribute("id"))) return widget.getElement().getAttribute("value"); } return null; }
@Override public boolean isHorizontal() { return fieldset.isHorizontal(); }
@Override public boolean isVertical() { return fieldset.isVertical(); }
public void refresh() { refreshAll(fieldset.getElement()); }