private Component newSinceChangesRow(String id, Date sinceDate) { WebMarkupContainer row = new WebMarkupContainer(id); row.setOutputMarkupId(true); row.add(new WebMarkupContainer("avatar")); WebMarkupContainer contentColumn = new Fragment("content", "sinceChangesRowContentFrag", this); contentColumn.add(AttributeAppender.append("colspan", "2")); contentColumn.add(new SinceChangesLink("sinceChanges", requestModel, sinceDate)); row.add(contentColumn); row.add(AttributeAppender.append("class", "since-changes")); return row; }
protected void addWeekNavigationBarDummy() { calendar.add(new WebMarkupContainer("weekLabel").setVisible(false)); calendar.add(new WebMarkupContainer("weekBack").setVisible(false)); calendar.add(new WebMarkupContainer("weekNext").setVisible(false)); }
private String bratRenderCommand(String aJson) { return "Wicket.$('" + vis.getMarkupId() + "').dispatcher.post('renderData', [" + aJson + "]);"; }
@Override protected void populateTreeItem(final WebMarkupContainer item, final int level) { super.populateTreeItem(item, level); item.add(new AjaxEventBehavior("onclick") { @Override protected void onEvent(final AjaxRequestTarget target) { final TreeNode node = ((TreeNode) item.getDefaultModelObject()); rowClickSelect(node); }); } };
/** * Panel that will show behind the Singular panel. * * @param id The id of the panel. * @return Returns the panel will be showing behind the Singular Panel. */ public Component buildBehindSingularPanelContent(String id) { return new WebMarkupContainer(id).setVisible(false); }
public Implementations(final PageParameters parameters) { super(parameters); body.add(BookmarkablePageLinkBuilder.build("dashboard", "dashboardBr", Dashboard.class)); WebMarkupContainer content = new WebMarkupContainer("content"); content.setOutputMarkupId(true); content.setMarkupId("implementations"); content.add(new AjaxBootstrapTabbedPanel<>("tabbedPanel", buildTabList())); body.add(content); }
/** * creates a video tag container * * @param markupId The component' id * @return new container */ private WebMarkupContainer newVideoTag(final String markupId) { final WebMarkupContainer container = new WebMarkupContainer(markupId); container.add(new AttributeModifier("width", width)); container.add(new AttributeModifier("height", height)); return container; }
protected WebMarkupContainer newPanelContainer(String id) { WebMarkupContainer container = new WebMarkupContainer(id); container.setOutputMarkupId(true); return container; }
@Override protected void addDequeuedComponent(Component component, ComponentTag tag) { // components queued in border get dequeued into the border not into the body container super.add(component); }
private WebMarkupContainer createContentPanel(String id, T tab, final int tabIndex, final IModel<Integer> activeTabIndexModel) { WebMarkupContainer panel = tab.getPanel(id); panel.setRenderBodyOnly(false); panel.add(new AttributeModifier("class", () -> { int activeTab = activeTabIndexModel!=null? activeTabIndexModel.getObject():0; boolean isActive = (tabIndex == activeTab); return "tab" + tabIndex + (isActive?" tab-pane fade in active":" tab-pane fade"); })); panel.setOutputMarkupId(true); return panel; }
@Override protected void onSubmit() { List<Workflow> workflows = wm.safeGetWorkflowsByEvent(this.selectedEvent); setDefaultModelObject(workflows); if(workflows != null && workflows.size() > 0){ this.wTable.setVisible(true); this.wTable.add(new Label("selectedEvent", this.selectedEvent)); } }
YuiMenuGroupMenu(final boolean firstMenu, boolean addInit) { super(null, firstMenu, addInit); WebMarkupContainer label = new WebMarkupContainer(LABEL_ID); label.setRenderBodyOnly(true); label.setVisible(false); add(label); }
private void clearComment(AjaxRequestTarget target) { commentContainer.replace(new WebMarkupContainer(BODY_ID)); commentContainer.setVisible(false); target.add(commentContainer); }
/** * Create the MarkupContainer for the <tbody> tag. Users may subclass it to provide their own * (modified) implementation. * * @param id * @return A new markup container */ protected WebMarkupContainer newBodyContainer(final String id) { return new WebMarkupContainer(id); }
@Override protected void onUpdate(AjaxRequestTarget target) { Boolean visile = enabled.getModelObject(); configs.setVisible(visile); target.add(configsContainer); } });
@Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); // force this into an open-close tag rather than a self-closing tag tag.setType(TagType.OPEN); }
@Override public void onDelete(AjaxRequestTarget target) { row.remove(); target.appendJavaScript(String.format("$('#%s').remove();", row.getMarkupId())); }
public Reports(final PageParameters parameters) { super(parameters); body.add(BookmarkablePageLinkBuilder.build("dashboard", "dashboardBr", Dashboard.class)); WebMarkupContainer content = new WebMarkupContainer("content"); content.setOutputMarkupId(true); content.setMarkupId("reports"); content.add(new AjaxBootstrapTabbedPanel<>("tabbedPanel", buildTabList())); body.add(content); }
MasterDetailNoRecordsToolbar(DataTable<?, ?> table) { super(table); final WebMarkupContainer td = new WebMarkupContainer("td"); add(td); td.add(AttributeModifier.replace("colspan", new AbstractReadOnlyModel<String>() { @Override public String getObject() { return String.valueOf(table.getColumns().size()).intern(); } })); td.add(new Label("msg", $m.ofValue("Nenhum item foi adicionado."))); }
protected WebMarkupContainer newEditOptions(String componentId) { WebMarkupContainer options = new WebMarkupContainer(componentId); options.setVisible(false); return options; }