@Override protected String getString(final String i18nKey) { return AbstractListPage.this.getString(i18nKey); } };
protected String getMassUpdateLabel() { return getString("massUpdate"); }
/** * Calls getString(key) with key "[i18nPrefix].title.list" or "[i18nPrefix].title.list.select" dependent weather the * list is shown for browsing or selecting (select mode). * * @see org.projectforge.web.wicket.AbstractUnsecureBasePage#getTitle() * @see #isSelectMode() */ @Override protected String getTitle() { if (isSelectMode() == true) { return getString(i18nPrefix + ".title.list.select"); } else { return getString(i18nPrefix + ".title.list"); } }
/** * Adds a excel export content menu entry. ProjectForge exports all data fields (annotated with {@link PropertyInfo} * of the current displayed result list. * * @param filenameIdentifier If given then the id will be part of the exported filename, may be null. * @param sheetTitle may be null. */ public void addExcelExport(final String filenameIdentifier, final String sheetTitle) { exportExcelButton = new ContentMenuEntryPanel(getNewContentMenuChildId(), new Link<Object>("link") { @Override public void onClick() { exportExcel(filenameIdentifier, sheetTitle); } }, getString("exportAsXls")).setTooltip(getString("tooltip.export.excel")); addContentMenuEntry(exportExcelButton); }
radioGroup.add(new Model<String>(AddressFilter.FILTER_FILTER), parentPage.getString("filter")); radioGroup.add(new Model<String>(AddressFilter.FILTER_NEWEST), parentPage.getString("filter.newest")); radioGroup.add(new Model<String>(AddressFilter.FILTER_MY_FAVORITES), parentPage.getString("address.filter.myFavorites")); radioGroup.add(new Model<String>(AddressFilter.FILTER_DOUBLETS), parentPage.getString("address.filter.doublets"));
final FieldsetPanel fieldset = gridBuilder.newFieldset(parentPage.getString("address.contactStatus")) .suppressLabelForWarning(); final DivPanel checkBoxPanel = fieldset.addNewCheckBoxButtonDiv(); checkBoxPanel.add(form.createAutoRefreshCheckBoxButton(checkBoxPanel.newChildId(), new PropertyModel<Boolean>(searchFilter, "active"), parentPage.getString("address.contactStatus.active"))); checkBoxPanel .add(form.createAutoRefreshCheckBoxButton(checkBoxPanel.newChildId(), new PropertyModel<Boolean>(searchFilter, "nonActive"), parentPage.getString("address.contactStatus.nonActive"))); checkBoxPanel .add(form.createAutoRefreshCheckBoxButton(checkBoxPanel.newChildId(), new PropertyModel<Boolean>(searchFilter, "uninteresting"), parentPage.getString("address.contactStatus.uninteresting"))); checkBoxPanel .add(form.createAutoRefreshCheckBoxButton(checkBoxPanel.newChildId(), new PropertyModel<Boolean>(searchFilter, "personaIngrata"), parentPage.getString("address.contactStatus.personaIngrata"))); checkBoxPanel.add(form.createAutoRefreshCheckBoxButton(checkBoxPanel.newChildId(), new PropertyModel<Boolean>(searchFilter, "departed"), parentPage.getString("address.contactStatus.departed"))); final FieldsetPanel fieldset = gridBuilder.newFieldset(parentPage.getString("address.addressStatus")) .suppressLabelForWarning(); final DivPanel checkBoxPanel = fieldset.addNewCheckBoxButtonDiv(); checkBoxPanel.add(form.createAutoRefreshCheckBoxButton(checkBoxPanel.newChildId(), new PropertyModel<Boolean>(searchFilter, "uptodate"), parentPage.getString("address.addressStatus.uptodate"))); checkBoxPanel.add(form.createAutoRefreshCheckBoxButton(checkBoxPanel.newChildId(), new PropertyModel<Boolean>(searchFilter, "outdated"), parentPage.getString("address.addressStatus.outdated"))); checkBoxPanel.add(form.createAutoRefreshCheckBoxButton(checkBoxPanel.newChildId(),
getString(WebConstants.ACCESS_KEY_ADD_TOOLTIP_TITLE), getString(WebConstants.ACCESS_KEY_ADD_TOOLTIP)); contentMenuBarPanel.addMenuEntry(newItemMenuEntry); new Model<String>(getString("hint.selectMode.quickselect"))) selectAllMenuEntry = new ContentMenuEntryPanel(contentMenuBarPanel.newChildId(), link, getString("selectAll")); selectAllMenuEntry.setVisible(false); contentMenuBarPanel.addMenuEntry(selectAllMenuEntry); link.add(AttributeModifier.replace("onclick", "javascript:deselectAll();")); deselectAllMenuEntry = new ContentMenuEntryPanel(contentMenuBarPanel.newChildId(), link, getString("deselectAll")); deselectAllMenuEntry.setVisible(false); contentMenuBarPanel.addMenuEntry(deselectAllMenuEntry);