/** * @param textField * @return The created InputPanel. * @see InputPanel#InputPanel(String, Component) */ public InputPanel add(final TextField<?> textField) { final InputPanel input = new InputPanel(newChildId(), textField); add(input); return input; }
public DivPanel addNewCheckBoxButtonDiv() { final DivPanel checkBoxDiv = new DivPanel(newChildId(), DivType.BTN_GROUP); add(checkBoxDiv); return checkBoxDiv; }
public CheckBoxButton addCheckBoxButton(final IModel<Boolean> model, final String labelString, final String tooltip) { final CheckBoxButton checkBox = new CheckBoxButton(newChildId(), model, labelString); if (tooltip != null) { checkBox.setTooltip(tooltip); } add(checkBox); return checkBox; }
/** * Adds a help icon at the top right corner of the field set. * * @param tooltip * @return The created IconPanel. */ public IconPanel addHelpIcon(final String tooltip, final FieldSetIconPosition iconPosition) { final IconPanel icon = new IconPanel(newIconChildId(), IconType.HELP, tooltip).setColor(CSSColor.GRAY); add(icon, iconPosition); return icon; }
/** * @param id * @param label * @param dropDownChoice * @return The created DropDownChoicePanel. * @see DropDownChoicePanel#DropDownChoicePanel(String, String, DropDownChoice, boolean) */ public <C> DropDownChoicePanel<C> add(final DropDownChoice<C> dropDownChoice, final boolean submitOnChange) { final DropDownChoicePanel<C> dropDownChoicePanel = new DropDownChoicePanel<C>(newChildId(), dropDownChoice, submitOnChange); add(dropDownChoicePanel); return dropDownChoicePanel; }
public MenuBarPanel addMenuEntry(final ContentMenuEntryPanel menuEntry) { if (this.extendedMenuEntry != null) { // Don't append entry after extended menu (should be the last entry). final int size = contentMenu.size(); contentMenu.add(size - 1, menuEntry); } else { contentMenu.add(menuEntry); } return this; }
/** * @param textArea * @return The created InputPanel. * @see TextAreaPanel#TextAreaPanel(String, Component) */ public TextAreaPanel add(final TextArea<?> textArea, final boolean autogrow) { final TextAreaPanel panel = new TextAreaPanel(newChildId(), textArea, autogrow); add(panel); return panel; }
public ContentMenuEntryPanel addSubMenuEntry(final ContentMenuEntryPanel menuEntry) { subMenu.add(menuEntry); return this; }
/** * @param id * @param ajaxEditableLabel * @return The created AjaxEditableLabelPanel. * @see SelectPanel#SelectPanel(String, Select) */ public <C> AjaxEditableLabelPanel<C> add(final AjaxEditableLabel<C> ajaxEditableLabel) { final AjaxEditableLabelPanel<C> ajaxEditableLabelPanel = new AjaxEditableLabelPanel<C>(newChildId(), ajaxEditableLabel); add(ajaxEditableLabelPanel); return ajaxEditableLabelPanel; }
/** * @param id * @param select * @return The created SelectPanel. * @see SelectPanel#SelectPanel(String, Select) */ public <C> SelectPanel<C> add(final Select<C> select) { final SelectPanel<C> selectPanel = new SelectPanel<C>(newChildId(), select); add(selectPanel); return selectPanel; }
/** * @param passwordField * @return The created PasswordPanel. * @see PasswordPanel#PasswordPanel(String, Component) */ public PasswordPanel add(final PasswordTextField passwordField) { final PasswordPanel passwordInput = new PasswordPanel(newChildId(), passwordField); add(passwordInput); return passwordInput; }
public <C> Select2MultiChoicePanel<C> add(final Select2MultiChoice<C> select2MultiChoice) { final Select2MultiChoicePanel<C> select2MultiChoicePanel = new Select2MultiChoicePanel<C>(newChildId(), select2MultiChoice); add(select2MultiChoicePanel); return select2MultiChoicePanel; }
/** */ public static IconPanel getAlertTooltipIcon(final FieldsetPanel fieldset, final IModel<String> title, final IModel<String> tooltip) { final IconPanel icon = new IconPanel(fieldset.newIconChildId(), IconType.ALERT, title, tooltip); return icon; }
/** * Adds this FieldsetPanel to the parent panel. * * @param parent * @param label */ public FieldsetPanel(final DivPanel parent, final FieldProperties<?> fieldProperties) { this(parent, getString(parent, fieldProperties.getLabel()), // getString(parent, fieldProperties.getLabelDescription(), fieldProperties.isTranslateLabelDecsription())); }
/** * @param textField * @return The created InputPanel. * @see InputPanel#InputPanel(String, Component) */ public InputPanel add(final TextField<?> textField, final FieldProperties<?> fieldProperties) { final InputPanel input = add(textField); if (fieldProperties.getFieldType() != null) { setFieldType(input, fieldProperties.getFieldType()); } return input; }
void setDateDropDownsEnabled(boolean enabled) { dropDownMonth.setEnabled(enabled); dropDownYear.setEnabled(enabled); } }
/** * Adds a help icon at the top right corner of the field set. * * @param tooltip * @return The created IconPanel. */ public IconPanel addHelpIcon(final IModel<String> tooltip) { final IconPanel icon = new IconPanel(newIconChildId(), IconType.HELP, tooltip).setColor(CSSColor.GRAY); add(icon, FieldSetIconPosition.TOP_RIGHT); return icon; }
public DivPanel addNewRadioBoxButtonDiv() { final DivPanel radioBoxDiv = new DivPanel(newChildId(), DivType.BTN_GROUP); add(radioBoxDiv); return radioBoxDiv; }
/** * Adds a keyboard icon at the bottom right corner of the field set. * * @param tooltip * @return this for chaining. */ public FieldsetPanel addKeyboardHelpIcon(final String tooltip) { return add(new IconPanel(newIconChildId(), IconType.KEYBOARD, tooltip).setColor(CSSColor.GRAY), FieldSetIconPosition.BOTTOM_RIGHT); }
/** * Adds a keyboard icon at the bottom right corner of the field set. * * @param tooltip * @return this for chaining. */ public FieldsetPanel addKeyboardHelpIcon(final IModel<String> title, final IModel<String> tooltip) { return add(new IconPanel(newIconChildId(), IconType.KEYBOARD, title, tooltip).setColor(CSSColor.GRAY), FieldSetIconPosition.BOTTOM_RIGHT); }