protected Panel createFooterPanel(String id) { Panel panel = new EmptyPanel(id); panel.setVisible(false); return panel; } }
@Override protected void onConfigure() { super.onConfigure(); if (showOrienteerModulesPanel) { orienteerModulesPanel.setVisible(true); userModulePanel.setVisible(false); } else { userModulePanel.setVisible(true); orienteerModulesPanel.setVisible(false); } }
/** * Override this method if you need a top panel. The default top panel is empty and not visible. */ protected void addTopPanel() { final Panel topPanel = new EmptyPanel("topPanel"); topPanel.setVisible(false); form.add(topPanel); }
private List<Panel> buildPanelsForCategories(final MenuHierarchy menu, final Node subject, String[] categories) throws RepositoryException { List<Panel> list = new ArrayList<>(); for (final String category : categories) { List<Panel> panels = buildPanelsForCategory(subject, category); for (Panel panel : panels) { panel.visitChildren(Panel.class, new MenuVisitor(menu, category)); panel.setVisible(false); list.add(panel); } } return list; }
/** * Override this method if you need a bottom panel. The default bottom panel is empty and not visible. */ protected void addBottomPanel(final String id) { final Panel bottomPanel = new EmptyPanel(id); bottomPanel.setVisible(false); form.add(bottomPanel); }
public void removeItem(AjaxRequestTarget target){ Panel panel = new EmptyPanel("container"); addOrReplace(panel); panel.setOutputMarkupId(true); panel.setVisible(false); target.add(panel); }
@Override public void onClick(AjaxRequestTarget target) { if (widget.hasSettings()) { WidgetPanel widgetPanel = findParent(WidgetPanel.class); Panel settingsPanel = widgetPanel.getSettingsPanel(); settingsPanel.setVisible(true); target.add(settingsPanel); } }
@Override public void onClick(AjaxRequestTarget target) { if (widget.hasSettings()) { WidgetPanel widgetPanel = findParent(WidgetPanel.class); Panel settingsPanel = widgetPanel.getSettingsPanel(); settingsPanel.setVisible(true); target.add(settingsPanel); } }
public WidgetPanel(String id, IModel<Widget> model) { super(id, model); Widget widget = model.getObject(); setOutputMarkupId(true); widgetHeaderPanel = new WidgetHeaderPanel("header", model); add(widgetHeaderPanel); if (model.getObject().hasSettings()) { settingsPanel = widget.createSettingsPanel("settings"); } else { settingsPanel = new EmptyPanel("settings"); } settingsPanel.setOutputMarkupPlaceholderTag(true); settingsPanel.setVisible(false); add(settingsPanel); widgetView = model.getObject().createView("content"); add(widgetView); }
public WidgetPanel(String id, IModel<Widget> model) { super(id, model); Widget widget = model.getObject(); setOutputMarkupId(true); widgetHeaderPanel = new WidgetHeaderPanel("header", model); add(widgetHeaderPanel); if (model.getObject().hasSettings()) { settingsPanel = widget.createSettingsPanel("settings"); } else { settingsPanel = new EmptyPanel("settings"); } settingsPanel.setOutputMarkupPlaceholderTag(true); settingsPanel.setVisible(false); add(settingsPanel); widgetView = model.getObject().createView("content"); add(widgetView); }
.add(annotatorsProgressPercentageImage).add(projectName) .add(annotationDocumentStatusTable)); annotationDocumentStatusTable.setVisible(false); }else{ annotationDocumentStatusTable = new EmptyPanel("rsTable"); monitoringDetailForm.setVisible(false); add(monitoringDetailForm); annotationDocumentStatusTable.setVisible(false); annotatorsProgressImage.setVisible(false); annotatorsProgressPercentageImage.setVisible(false);
.add(annotatorsProgressPercentageImage) .add(annotationDocumentStatusTable)); annotationDocumentStatusTable.setVisible(false); } else { annotationDocumentStatusTable = new EmptyPanel("rsTable"); monitoringDetailForm.setVisible(false); add(monitoringDetailForm); annotationDocumentStatusTable.setVisible(false); annotatorsProgressImage.setVisible(false); annotatorsProgressPercentageImage.setVisible(false);
!(deprecated && isEmpty(parameterValue)) && !paramMetadata.getLevel().equals("program"); parameterPanel.setVisible(visible); parameterPanel.setVisibilityAllowed(visible);