private void changePanel() { Panel newpanel = getNewPanel(); // Or pass as arg to this function newpanel.setOutputMarkupId(true); currentpanel.replaceWith(newpanel); currentpanel = newpanel; target.add(currentpanel); }
public void setContainer(Panel panel){ add(panel); panel.setOutputMarkupId(true); }
@Override public void onClick() { try { Panel newPanel = webtaskboxService.getTaskPanel(task, "taskPanel"); newPanel.setOutputMarkupId(true); panel.replaceWith(newPanel); panel = newPanel; } catch (TaskboxException e) { LOGGER.error("Taskbox panel could not be started", e); } } };
private void removeDrawer(MarkupContainer previous, AjaxRequestTarget target) { Panel panel = new EmptyPanel("next"); panel.setOutputMarkupId(true); previous.addOrReplace(panel); target.add(panel); }
@Override protected void populateItem(ListItem<Pair<String, Integer>> item) { Panel panel = tabMap.get(item.getModelObject()); if (item.getIndex() == 0) { panel.add($b.classAppender("active")); } item.add(panel); panel.setOutputMarkupId(true); } };
@Override protected void populateItem(ListItem<Pair<String, Integer>> item) { Panel panel = tabMap.get(item.getModelObject()); if(item.getIndex() == 0){ panel.add($b.classAppender("active")); } item.add(panel); panel.setOutputMarkupId(true); } };
public void removeItem(AjaxRequestTarget target){ Panel panel = new EmptyPanel("container"); addOrReplace(panel); panel.setOutputMarkupId(true); panel.setVisible(false); target.add(panel); }
flowPanel.setOutputMarkupId(true); contentPanel.replaceWith(flowPanel); contentPanel= flowPanel;
annotationDocumentStatusTable = new DefaultDataTable("rsTable", columns, provider, 20); annotationDocumentStatusTable.setOutputMarkupId(true); monitoringDetailForm.add(annotationDocumentStatusTable);
annotationDocumentStatusTable = new DefaultDataTable("rsTable", columns, provider, 20); annotationDocumentStatusTable.setOutputMarkupId(true); monitoringDetailForm.add(annotationDocumentStatusTable);
public Details(final SchemaTO modelObject) { AjaxDropDownChoicePanel<SchemaType> kind = new AjaxDropDownChoicePanel<>("kind", getString("kind"), new Model<>()); kind.setChoices(Arrays.asList(SchemaType.values())); kind.setOutputMarkupId(true); kind.setModelObject(schemaType); kind.setEnabled(false); add(kind); Panel detailsPanel; switch (schemaType) { case DERIVED: detailsPanel = new DerSchemaDetails("details", (DerSchemaTO) modelObject); break; case VIRTUAL: detailsPanel = SyncopeWebApplication.get().getVirSchemaDetailsPanelProvider(). get("details", (VirSchemaTO) modelObject); break; case PLAIN: default: detailsPanel = new PlainSchemaDetails("details", (PlainSchemaTO) modelObject); } detailsPanel.setOutputMarkupId(true); add(detailsPanel); } }
content.setOutputMarkupId(true); contents.add(content); WebMarkupContainer title = new WebMarkupContainer(TAB_PANEL_ID+"-title"+i);
treePanel.setOutputMarkupId(true); add(treePanel);
treePanel.setOutputMarkupId(true); add(treePanel);
public BaseModal(final String id) { super(id); form = new Form<>(FORM); form.setOutputMarkupId(true); add(form); content = new AbstractModalPanel<T>(this, null) { private static final long serialVersionUID = 1L; }; content.setOutputMarkupId(true); form.add(content); useCloseHandler(true); this.windowClosedCallback = null; components = new ArrayList<>(); // Note: not adding this would imply adding WebjarsJavaScriptResourceReference about JQuery resizable and mouse // add(new Resizable().withChildSelector(".modal-content")); // Note: not adding this would imply adding of WebjarsJavaScriptResourceReference about JQuery draggable add(new Draggable(new DraggableConfig().withHandle(".modal-header").withCursor("move"))); defaultModalCloseButton = new DefaultModalCloseButton(); addButton(defaultModalCloseButton); setUseKeyboard(true); setFadeIn(true); }
treePanel.setOutputMarkupId(true); form.add(treePanel); } else {
treePanel.setOutputMarkupId(true); form.add(treePanel); } else {