public CheckBoxButton addCheckBoxButton(final IModel<Boolean> model, final String labelString) { return addCheckBoxButton(model, labelString, null); }
private void addPhoneNumber(final String property, final String labelKey, final String labelDescriptionKey, final String favoriteProperty, final FieldType fieldType) { final FieldsetPanel fs = (FieldsetPanel) addressEditSupport.addPhoneNumber(property, labelKey, labelDescriptionKey, fieldType); final DivPanel checkBoxPanel = fs.addNewCheckBoxButtonDiv(); checkBoxPanel .addCheckBoxButton(new PropertyModel<Boolean>(addressEditSupport.personalAddress, favoriteProperty), PHONE_NUMBER_FAVORITE_LABEL) .setTooltip(getString("address.tooltip.phonelist")); }
checkBoxPanel.addCheckBoxButton(new PropertyModel<Boolean>(data.getStyle(), "relativeTimeValues"), getString("gantt.style.relativeTimeValues")); checkBoxPanel.addCheckBoxButton(new PropertyModel<Boolean>(data.getStyle(), "showToday"), getString("gantt.style.showToday")); checkBoxPanel.addCheckBoxButton(new PropertyModel<Boolean>(data.getStyle(), "showCompletion"), getString("gantt.style.showCompletion")); checkBoxPanel.add(new CheckBoxButton(checkBoxPanel.newChildId(), new PropertyModel<Boolean>(getSettings(), "showOnlyVisibles"), getString("gantt.settings.showOnlyVisibles")) {
checkBoxPanel.addCheckBoxButton(new PropertyModel<Boolean>(contactEditSupport.personalContact, "favoriteCard"), getString("favorite"), getString("address.tooltip.vCardList"));
final FieldsetPanel fs = (FieldsetPanel) addressEditSupport.addFormOfAddress(); final DivPanel checkBoxPanel = fs.addNewCheckBoxButtonDiv(); checkBoxPanel.addCheckBoxButton(new PropertyModel<Boolean>(addressEditSupport.personalAddress, "favoriteCard"), getString("favorite"), getString("address.tooltip.vCardList"));