/** * @return new child id (Wicket id) of the current row panel. */ public String newGridPanelId() { return gridPanel[currentLevel].newChildId(); }
/** * @return new child id (Wicket id) of the current grid panel. */ public String newRowId() { return rowPanel[currentLevel].newChildId(); }
private String newRowPanelId(final int level) { validateRowPanelLevel(level); if (level > 0) { return gridPanel[level - 1].newChildId(); } else { return mainContainer.newChildId(); } }
private String newParentChildId() { if (this.parentRepeatingView != null) { return this.parentRepeatingView.newChildId(); } else { return this.parentDivPanel.newChildId(); } }
/** * Adds this FieldsetPanel to the parent panel. * * @param parent * @param label * @param description Description below or beside the label of the field-set. */ public FieldsetPanel(final DivPanel parent, final String labelText, final String description) { this(parent.newChildId(), labelText, description); parent.add(this); }
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; }
public GridBuilder createGridBuilder() { final DivPanel content = new DivPanel(ToggleContainerPanel.CONTENT_ID); this.add(content); final GridBuilder gridBuilder = new GridBuilder(content, content.newChildId()); return gridBuilder; }
/** * @see org.projectforge.web.wicket.flowlayout.GridBuilderInterface#newFormHeading(java.lang.String) */ public FormHeadingPanel newFormHeading(final String label) { final FormHeadingPanel formHeading = new FormHeadingPanel(getPanel().newChildId(), label); getPanel().add(formHeading); return formHeading; }
public RepeatingView newRepeatingView() { final RepeatingView repeater = new RepeatingView(getPanel().newChildId()); getPanel().add(repeater); return repeater; }
private void addLineBreak() { final TextPanel lineBreak = new TextPanel(addressPanel.newChildId(), "<br/>"); lineBreak.getLabel().setEscapeModelStrings(false); addressPanel.add(lineBreak); }
@Override protected void onOptionsPanelCreate(FieldsetPanel optionsFieldsetPanel, DivPanel optionsCheckBoxesPanel) { final FFPDebtFilter ffpDebtFilter = getSearchFilter(); optionsCheckBoxesPanel.add(createAutoRefreshCheckBoxButton(optionsCheckBoxesPanel.newChildId(), new PropertyModel<Boolean>(ffpDebtFilter, "fromMe"), getString("plugins.ffp.debt.options.fromMe"))); optionsCheckBoxesPanel.add(createAutoRefreshCheckBoxButton(optionsCheckBoxesPanel.newChildId(), new PropertyModel<Boolean>(ffpDebtFilter, "toMe"), getString("plugins.ffp.debt.options.toMe"))); optionsCheckBoxesPanel.add(createAutoRefreshCheckBoxButton(optionsCheckBoxesPanel.newChildId(), new PropertyModel<Boolean>(ffpDebtFilter, "iNeedToApprove"), getString("plugins.ffp.debt.options.iNeedToApprove"))); optionsCheckBoxesPanel.add(createAutoRefreshCheckBoxButton(optionsCheckBoxesPanel.newChildId(), new PropertyModel<Boolean>(ffpDebtFilter, "hideBothApproved"), getString("plugins.ffp.debt.options.hideBothApprove"))); }
/** * @see AbstractListForm#onOptionsPanelCreate(FieldsetPanel, DivPanel) */ @Override protected void onOptionsPanelCreate(final FieldsetPanel optionsFieldsetPanel, final DivPanel optionsCheckBoxesPanel) { optionsCheckBoxesPanel.add(createAutoRefreshCheckBoxButton(optionsCheckBoxesPanel.newChildId(), new PropertyModel<Boolean>(getSearchFilter(), "showOnlyActiveEntries"), getString("label.onlyActiveEntries"))); }
@Override protected void onOptionsPanelCreate(FieldsetPanel optionsFieldsetPanel, DivPanel optionsCheckBoxesPanel) { FFPEventFilter filter = getSearchFilter(); optionsCheckBoxesPanel.add(createAutoRefreshCheckBoxButton(optionsCheckBoxesPanel.newChildId(), new PropertyModel<Boolean>(filter, "showOnlyActiveEntries"), getString("plugins.ffp.event.options.showOnlyActiveEntries"))); }
@Override protected void onOptionsPanelCreate(FieldsetPanel optionsFieldsetPanel, DivPanel optionsCheckBoxesPanel) { PluginTemplateFilter filter = getSearchFilter(); optionsCheckBoxesPanel.add(createAutoRefreshCheckBoxButton(optionsCheckBoxesPanel.newChildId(), new PropertyModel<Boolean>(filter, "showOnlyEntriesWithValue"), getString("plugins.plugintemplate.filter.options.showOnlyEntriesWithValue"))); }
/** * @see org.projectforge.web.wicket.AbstractSecuredPage#onInitialize() */ @Override protected void onInitialize() { super.onInitialize(); xyPlotImage = new ImagePanel(gridBuilder.getPanel().newChildId()); gridBuilder.getPanel().add(xyPlotImage); gridBuilder.newGridPanel(); barChartImage = new ImagePanel(gridBuilder.getPanel().newChildId()); gridBuilder.getPanel().add(barChartImage); }
/** * @see org.projectforge.web.wicket.AbstractListForm#onOptionsPanelCreate(org.projectforge.web.wicket.flowlayout.FieldsetPanel, org.projectforge.web.wicket.flowlayout.DivPanel) */ @Override protected void onOptionsPanelCreate(final FieldsetPanel optionsFieldsetPanel, final DivPanel optionsCheckBoxesPanel) { optionsCheckBoxesPanel.add(createAutoRefreshCheckBoxButton(optionsCheckBoxesPanel.newChildId(), new PropertyModel<Boolean>(getSearchFilter(), "groupEntries"), getString("hr.planning.filter.groupEntries"))); optionsCheckBoxesPanel.add(createAutoRefreshCheckBoxButton(optionsCheckBoxesPanel.newChildId(), new PropertyModel<Boolean>(getSearchFilter(), "onlyMyProjects"), getString("hr.planning.filter.onlyMyProjects"))); optionsCheckBoxesPanel.add(createAutoRefreshCheckBoxButton(optionsCheckBoxesPanel.newChildId(), new PropertyModel<Boolean>(getSearchFilter(), "longFormat"), getString("longFormat"))); }
/** * @see org.projectforge.web.wicket.AbstractListForm#onOptionsPanelCreate(org.projectforge.web.wicket.flowlayout.FieldsetPanel, org.projectforge.web.wicket.flowlayout.DivPanel) */ @Override protected void onOptionsPanelCreate(final FieldsetPanel optionsFieldsetPanel, final DivPanel optionsCheckBoxesPanel) { optionsCheckBoxesPanel.add(createAutoRefreshCheckBoxButton(optionsCheckBoxesPanel.newChildId(), new PropertyModel<Boolean>(getSearchFilter(), "showOnlyActiveEntries"), getString("label.onlyActiveEntries"))); }
public static void createViewOnlyDataTable(GridBuilder gridBuilder, ExtendedBaseDO<Integer> dataObject, List<String> propertiesList, String sortProperty, SortOrder sortOrder, Supplier<List<ExtendedBaseDO<Integer>>> supplier) { DivPanel section = gridBuilder.getPanel(); TablePanel tablePanel = new TablePanel(section.newChildId()); section.add(tablePanel); final DataTable<ExtendedBaseDO<Integer>, String> dataTable = createDataTable( createColumns(propertiesList, dataObject), sortProperty, sortOrder, supplier); tablePanel.add(dataTable); }
public void createDataTable(GridBuilder gridBuilder) { DivPanel section = gridBuilder.getPanel(); this.tablePanel = new TablePanel(section.newChildId()); this.tablePanel.setOutputMarkupId(true); section.add(tablePanel); this.dataTable = createDataTable(createColumns(), "attendee.fullname", SortOrder.ASCENDING, getData()); tablePanel.add(this.dataTable); }
@Override public void init() { setTitle(this.headingModel); setShowCancelButton(); setCloseButtonLabel(getString("yes")); final Form<Void> form = new Form<Void>(getFormId()); init(form); gridBuilder.newGridPanel(); final DivPanel panel = gridBuilder.getPanel(); questionPanel = new DivTextPanel(panel.newChildId(), this.questionModel); this.questionComponent = questionPanel.getLabel4Ajax(); panel.add(questionPanel); }