/** * Removes child from the Border itself * * @param child * @return {@code this} */ public Border removeFromBorder(final Component child) { super.remove(child); return this; }
/** * Removes child from the Border itself * * @param child * @return {@code this} */ public Border removeFromBorder(final Component child) { super.remove(child); return this; }
/** * @see org.apache.wicket.MarkupContainer#remove(org.apache.wicket.Component) */ @Override public void remove(Component component) { // when a treeItem is removed, remove reference to it from // nodeToItemMAp if (component instanceof TreeItem) { nodeToItemMap.remove(((TreeItem)component).getModelObject()); } super.remove(component); }
protected Component removeTreeRow(final Serializable hashId) { final Component row = getTreeRow(hashId); if (row != null) { treeTableBody.remove(row); } return row; }
/** * @see org.apache.wicket.MarkupContainer#remove(org.apache.wicket.Component) */ public void remove(Component component) { // when a treeItem is removed, remove reference to it from // nodeToItemMAp if (component instanceof TreeItem) { nodeToItemMap.remove(((TreeItem)component).getModelObject()); } super.remove(component); }
/** * @param message * @return this for chaining. */ public ModalMessageDialog setMessage(final Component message) { if (this.messageComponent != null) { gridContentContainer.remove(this.messageComponent); } this.messageComponent = message; gridContentContainer.add(this.messageComponent); return this; }
/** * @see org.apache.wicket.MarkupContainer#remove(org.apache.wicket.Component) */ @Override public MarkupContainer remove(final Component component) { if (repeater == null) { div.remove(component); return this; } else { repeater.remove(component); return this; } }
/** * @see MarkupContainer#remove(Component) */ @Override public TreeItemContainer remove(Component component) { // when a treeItem is removed, remove reference to it from // nodeToItemMAp if (component instanceof TreeItem) { nodeToItemMap.remove(((TreeItem)component).getModelObject()); } super.remove(component); return this; }
@Override public void onDelete(AjaxRequestTarget target) { row.remove(); target.appendJavaScript(String.format("$('#%s').remove();", row.getMarkupId())); }
@Override public void onDelete(AjaxRequestTarget target) { row.remove(); target.appendJavaScript(String.format("$('#%s').remove();", row.getMarkupId())); }
@Override public Border remove(final String id) { if (body.getId().equals(id)) { // in this case we do not want to redirect to body // container but to border's old remove. super.remove(id); } else { getBodyContainer().remove(id); } return this; }
@Override public Border remove(final String id) { if (body.getId().equals(id)) { // in this case we do not want to redirect to body // container but to border's old remove. super.remove(id); } else { getBodyContainer().remove(id); } return this; }
private void setSubMenu(Component newSubMenu) { if (subMenu != null) { getItemContainer().remove(subMenu); subMenu = null; } newSubMenu.setRenderBodyOnly(true); getItemContainer().add(newSubMenu); subMenu = newSubMenu; }
public EmployeeEditPage(final PageParameters parameters) { super(parameters, "fibu.employee"); init(); body.remove("tabTitle"); body.add(new Label("tabTitle", getString(getTitleKey(i18nPrefix, isNew()))).setRenderBodyOnly(true)); }
void updatePanel(SecurityNamedServicePanelInfo panelInfo, AjaxRequestTarget target) { //create a new config object T config = null; try { config = (T) panelInfo.getServiceConfigClass().newInstance(); } catch (Exception e) { throw new WicketRuntimeException( "Unable to create config class: " + panelInfo.getServiceConfigClass(), e); } config.setClassName(panelInfo.getServiceClass().getCanonicalName()); //update the form model form.setModel(new CompoundPropertyModel<T>(config)); //create the new panel panel = createPanel("content", panelInfo, new Model(config)); //remove the old panel if it is there if (panelContainer.get("content") != null) { panelContainer.remove("content"); } panelContainer.add(panel); if (target != null) { target.addComponent(panelContainer); } }
void updatePanel(SecurityNamedServicePanelInfo panelInfo, AjaxRequestTarget target) { //create a new config object T config = null; try { config = (T) panelInfo.getServiceConfigClass().newInstance(); } catch (Exception e) { throw new WicketRuntimeException( "Unable to create config class: " + panelInfo.getServiceConfigClass(), e); } config.setClassName(panelInfo.getServiceClass().getCanonicalName()); //update the form model form.setModel(new CompoundPropertyModel<T>(config)); //create the new panel panel = createPanel("content", panelInfo, new Model(config)); //remove the old panel if it is there if (panelContainer.get("content") != null) { panelContainer.remove("content"); } panelContainer.add(panel); if (target != null) { target.addComponent(panelContainer); } }
void updatePanel(SecurityNamedServicePanelInfo panelInfo, AjaxRequestTarget target) { // create a new config object T config = null; try { config = (T) panelInfo.getServiceConfigClass().newInstance(); } catch (Exception e) { throw new WicketRuntimeException( "Unable to create config class: " + panelInfo.getServiceConfigClass(), e); } config.setClassName(panelInfo.getServiceClass().getCanonicalName()); // update the form model form.setModel(new CompoundPropertyModel<T>(config)); // create the new panel panel = createPanel("content", panelInfo, new Model(config)); // remove the old panel if it is there if (panelContainer.get("content") != null) { panelContainer.remove("content"); } panelContainer.add(panel); if (target != null) { target.add(panelContainer); } }
@Override protected void onUpdate(AjaxRequestTarget target) { WebMarkupContainer c = (WebMarkupContainer) LDAPAuthProviderPanel.this.get("authorizationPanelContainer"); //reset any values that were set ((AuthorizationPanel)c.get("authorizationPanel")).resetModel(); //remove the old panel c.remove("authorizationPanel"); //add the new panel c.add(createAuthorizationPanel("authorizationPanel", getModelObject())); target.addComponent(c); } });
@Override public void onBeforeRender() { if (table != null) { body.remove(table); } body.add(table = new WebMarkupContainer("table")); report = monthlyEmployeeReportDao.getReport(form.filter.getYear(), form.filter.getMonth(), form.filter.getUser()); if (report == null) { table.setVisible(false); } else { addReport(); } super.onBeforeRender(); }
protected void createTreeRows() { if (rowRepeater != null) { treeTableBody.remove(rowRepeater); } rowRepeater = new RepeatingView("rows"); treeTableBody.add(rowRepeater); refresh(); // Force rebuilding. if (getTreeList() == null) { return; } int counter = 0; for (final T node : treeList) { final WebMarkupContainer row = createTreeRow(node); if (counter++ % 2 == 0) { row.add(AttributeModifier.replace("class", "even")); } else { row.add(AttributeModifier.replace("class", "odd")); } } }