public JQMButtonGroup(JQMButton... buttons) { this(); for (JQMButton button : buttons) add(button); }
/** * If inline is true then sets all the buttons in this group to inline, * otherwise sets them to not-inline. * <br> * If the buttons are in a group then it is best to call this method * instead of withInline on each button * */ @Override public JQMButtonGroup withInline(boolean inline) { setInline(inline); return this; } }
/** * If inline is true then sets all the buttons in this group to inline, * otherwise sets them to not-inline. * <br> * If the buttons are in a group then it is best to call this method * instead of withInline on each button * */ @Override public void setInline(boolean inline) { getElement().setAttribute("data-inline", "true"); for (int k = 0; k < getWidgetCount(); k++) { JQMButton button = (JQMButton) getWidget(k); button.withInline(inline); } }
/** * @return true if this widget is currently rendering inline */ @Override public boolean isInline() { return "true".equals(getElement().getAttribute("data-inline")); }
/** * If inline is true then sets all the buttons in this group to inline, * otherwise sets them to not-inline. * <br> * If the buttons are in a group then it is best to call this method * instead of withInline on each button * */ @Override public void setInline(boolean inline) { getElement().setAttribute("data-inline", "true"); for (int k = 0; k < getWidgetCount(); k++) { JQMButton button = (JQMButton) getWidget(k); button.withInline(inline); } }
/** * @return true if this widget is currently rendering inline */ @Override public boolean isInline() { return "true".equals(getElement().getAttribute("data-inline")); }
/** * If inline is true then sets all the buttons in this group to inline, * otherwise sets them to not-inline. * <br> * If the buttons are in a group then it is best to call this method * instead of withInline on each button * */ @Override public void setInline(boolean inline) { getElement().setAttribute("data-inline", "true"); for (int k = 0; k < getWidgetCount(); k++) { JQMButton button = (JQMButton) getWidget(k); button.withInline(inline); } }
public JQMButtonGroup(JQMButton... buttons) { this(); for (JQMButton button : buttons) add(button); }
/** * @return true if this widget is currently rendering inline */ @Override public boolean isInline() { return "true".equals(getElement().getAttribute("data-inline")); }
/** * If inline is true then sets all the buttons in this group to inline, * otherwise sets them to not-inline. * <br> * If the buttons are in a group then it is best to call this method * instead of withInline on each button * */ @Override public JQMButtonGroup withInline(boolean inline) { setInline(inline); return this; } }
public JQMButtonGroup(JQMButton... buttons) { this(); for (JQMButton button : buttons) add(button); }
/** * If inline is true then sets all the buttons in this group to inline, * otherwise sets them to not-inline. * <br> * If the buttons are in a group then it is best to call this method * instead of withInline on each button * */ @Override public JQMButtonGroup withInline(boolean inline) { setInline(inline); return this; } }