/** * Sets whether the footer and any children are visible. * * @param visible True if footer and any children should be visible * @return This */ public Modal<T> setFooterVisible(final boolean visible) { footer.setVisible(visible); return this; }
/** * Sets whether the header and any children are visible. * * @param visible True if header and any children should be visible * @return This */ public Modal<T> setHeaderVisible(final boolean visible) { header.setVisible(visible); return this; }
@Override protected void onInitialize() { super.onInitialize(); pageHeader.setVisible(false); }
@Override protected void onInitialize() { super.onInitialize(); pageHeader.setVisible(false); }
@Override protected MarkupContainer newStatusComponent(String id) { MarkupContainer status = super.newStatusComponent(id); status.setVisible(false); return status; }
@Override protected void onInitialize() { super.onInitialize(); pageHeader.setVisible(false); }
public void collapse(AjaxRequestTarget target) { if (content.isVisible()) { content.setVisible(false); if (target != null) { target.add(parent); } } } }
public void collapse(AjaxRequestTarget target) { if (content.isVisible()) { content.setVisible(false); target.addComponent(parent); } }
@Override protected MarkupContainer createJunctionComponent(String id) { MarkupContainer junction = super.createJunctionComponent(id); junction.setVisible(getModelObject().hasChildren()); return junction; } };
@Override protected MarkupContainer createJunctionComponent(String id) { MarkupContainer junction = super.createJunctionComponent(id); junction.setVisible(getModelObject().hasChildren()); return junction; } };
@Override protected MarkupContainer createJunctionComponent(String id) { MarkupContainer junction = super.createJunctionComponent(id); junction.setVisible(getModelObject().hasChildren()); return junction; } };
public void collapse(AjaxRequestTarget target) { getContextmenu().setVisible(false); target.addComponent(getComponentToUpdate()); }
@Override protected MarkupContainer createJunctionComponent(String id) { MarkupContainer junction = super.createJunctionComponent(id); junction.setVisible(getModelObject().hasChildren()); return junction; } };
public void collapse(AjaxRequestTarget target) { getContextmenu().setVisible(false); target.addComponent(getComponentToUpdate()); }
@Override protected void onConfigure() { super.onConfigure(); if (Strings.isEmpty(headerLabel.getDefaultModelObjectAsString())) { // there must be at least on character inside the header to prevent // layout problems. headerLabel.setDefaultModelObject(" "); headerLabel.setEscapeModelStrings(false); } footer.setVisible(buttons.size() > 0); }
@Override public void onClick(AjaxRequestTarget target) { // It was a agreed decision that the node being operated upon was not to be selected // getTreeState().selectNode(node, !getTreeState().isNodeSelected(node)); updateTree(target); content.setVisible(true); target.add(parent); IContextMenuManager menuManager = findParent(IContextMenuManager.class); if (menuManager != null) { menuManager.showContextMenu(this); onContextLinkClicked(content, target); dirty = true; } }
public void collapse(AjaxRequestTarget target) { final MarkupContainer menu = getContextmenu(); if (menu.isVisible() && getComponentToUpdate().isVisible()) { menu.setVisible(false); if (target != null) { target.add(getComponentToUpdate()); } } }
@Override protected void onSubmit(AjaxRequestTarget target, Form<?> form) { super.onSubmit(target, form); SInstance source = innerSingularFormPanel.getInstance(); SInstance copy = source.getDocument().getDocumentFactoryRef().get().createInstance(source.getDocument().getRootRefType().orElseThrow(() -> new SingularFormException("Null rootRefType")), false); Value.copyValues(source, copy); dataTableFilter.setFilter(copy); resultTable.setVisible(true); target.add(resultTable); } };
@Override public long size() { ProviderContext providerContext = new ProviderContext(); providerContext.setInstance(ctx.getRootContext().getCurrentInstance()); providerContext.setFilterInstance(dataTableFilter.getFilterInstance()); dataTableFilter.setSize(getFilteredProvider().getSize(providerContext)); resultTable.setVisible(!(dataTableFilter.isFirstFilter() && dataTableFilter.getSize() == 0)); dataTableFilter.setFirstFilter(false); return dataTableFilter.getSize(); }
@Override protected void respond(AjaxRequestTarget target) { getContextmenu().setVisible(true); target.addComponent(getComponentToUpdate()); IContextMenuManager menuManager = findParent(IContextMenuManager.class); if (menuManager != null) { menuManager.showContextMenu(this); String x = RequestCycle.get().getRequest().getParameter(MOUSE_X_PARAM); String y = RequestCycle.get().getRequest().getParameter(MOUSE_Y_PARAM); target.appendJavascript( "Hippo.ContextMenu.renderAtPosition('" + menu.getMarkupId() + "', " + x + ", " + y + ");"); } } });