本文整理了Java中org.apache.wicket.markup.html.WebMarkupContainer.add()
方法的一些代码示例,展示了WebMarkupContainer.add()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebMarkupContainer.add()
方法的具体详情如下:
包路径:org.apache.wicket.markup.html.WebMarkupContainer
类名称:WebMarkupContainer
方法名:add
暂无
代码示例来源:origin: org.apache.wicket/wicket-core
@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);
}
代码示例来源:origin: apache/wicket
/**
* Adds children components to the Border itself
*
* @param children
* the children components to add
* @return this
*/
public Border addToBorder(final Component... children)
{
super.add(children);
return this;
}
代码示例来源:origin: apache/wicket
@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);
}
代码示例来源:origin: org.apache.wicket/wicket-core
/**
* Adds children components to the Border itself
*
* @param children
* the children components to add
* @return this
*/
public Border addToBorder(final Component... children)
{
super.add(children);
return this;
}
代码示例来源:origin: apache/wicket
/**
* Set the 'class' attribute for the tbody tag.
*
* @param cssStyle
*/
public final void setTableBodyCss(final String cssStyle)
{
body.add(AttributeModifier.replace("class", cssStyle));
}
代码示例来源:origin: stackoverflow.com
@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);
});
}
};
代码示例来源:origin: org.onehippo.cms7/hippo-cms-api
protected Component createHint(final IModel<String> hintModel) {
final WebMarkupContainer hintContainer = new WebMarkupContainer("hint-visual");
if (hintModel == null) {
hintContainer.setVisible(false);
} else {
hintContainer.add(new Label("hint-text", hintModel));
hintContainer.add(HippoIcon.fromSprite("hint-image", Icon.INFO_CIRCLE));
}
return hintContainer;
}
代码示例来源:origin: stackoverflow.com
public FoodFieldPanel(String id, IModel<AllData> model) {
super(id);
WebMarkupContainer foodFields = new WebMarkupContainer("foodFields", new CompoundPropertyModel( model.getObject().createDataModel() ) );
TextField monday = new TextField("monday");
TextField tuesday = new TextField("tuesday");
//...
foodFields.add(monday);
foodFields.add(tuesday);
//
add(foodFields);
}
代码示例来源:origin: org.wicketstuff/yui
void addFirstOfType()
{
if (firstOfType == false)
{
getItemContainer().add(
new AttributeAppender("class", true, new Model("first-of-type"), " "));
firstOfType = true;
}
}
代码示例来源:origin: de.agilecoders.wicket/wicket-bootstrap-core
@Override
protected void addButtonBehavior(final IModel<Buttons.Type> buttonType, final IModel<Buttons.Size> buttonSize) {
final ButtonBehavior buttonBehavior = new ButtonBehavior(buttonType, buttonSize);
btn.add(buttonBehavior);
caret.add(buttonBehavior);
}
}
代码示例来源:origin: org.opensingular/singular-requirement-module
public IBiFunction<String, IModel<BoxItemDataMap>, MarkupContainer> linkFunction(BoxItemAction itemAction, Map<String, String> additionalParams) {
return (id, boxItemModel) -> {
String url = moduleService.buildUrlToBeRedirected(boxItemModel.getObject(), itemAction, additionalParams, moduleService.getBaseUrl());
WebMarkupContainer link = new WebMarkupContainer(id);
link.add($b.attr("target", String.format("_%s_%s", itemAction.getName(), boxItemModel.getObject().getCod())));
link.add($b.attr("href", url));
return link;
};
}
代码示例来源:origin: org.opensingular/singular-form-wicket
@SuppressWarnings("unchecked")
private WebMarkupContainer buildContainer() {
WebMarkupContainer c = new WebMarkupContainer("typeahead_container");
labelField = makeLabelField();
c.add(labelField);
valueField = makeValueField();
c.add(valueField);
dynamicFetcher = new BloodhoundDataBehavior(model, cache);
add(dynamicFetcher);
return c;
}
代码示例来源:origin: de.agilecoders.wicket/wicket-bootstrap-core
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;
}
代码示例来源:origin: org.opensingular/singular-form-wicket
@Override
protected void onInitialize() {
super.onInitialize();
WebMarkupContainer tabMenu = new WebMarkupContainer("tab-menu");
tabMenu.add(tabRepeater);
add(tabMenu);
}
}
代码示例来源:origin: com.googlecode.wicket-jquery-ui/jquery-ui-core
/**
* Initialization
*/
private void init()
{
this.root = new WebMarkupContainer("root");
this.root.add(new ListFragment("list", this.items));
this.add(this.root);
}
代码示例来源:origin: org.geoserver.web/web-core
public CodeMirrorEditor(String id, IModel<String> model) {
super(id, model);
container = new WebMarkupContainer("editorContainer");
container.setOutputMarkupId(true);
add(container);
editor = new TextArea<String>("editor", new Model<String>((String) model.getObject()));
container.add(editor);
editor.setOutputMarkupId(true);
editor.add(new CodeMirrorBehavior());
}
代码示例来源:origin: apache/wicket
@Override
protected void populateItem(final LoopItem item)
{
final int index = item.getIndex();
final T tab = TabbedPanel.this.tabs.get(index);
final WebMarkupContainer titleLink = newLink("link", index);
titleLink.add(newTitle("title", tab.getTitle(), index));
item.add(titleLink);
}
代码示例来源:origin: org.wicketstuff/yui
private void setSubMenu(Component newSubMenu)
{
if (subMenu != null)
{
getItemContainer().remove(subMenu);
subMenu = null;
}
newSubMenu.setRenderBodyOnly(true);
getItemContainer().add(newSubMenu);
subMenu = newSubMenu;
}
代码示例来源:origin: org.opensingular/singular-form-wicket
private void addBehaviours() {
footer.add($b.visibleIf(() -> AbstractListMapper.canAddItems(ctx)));
addButton.add(WicketUtils.$b.attr("title", addButtonLabel.getDefaultModel()));
addButton.setEscapeModelStrings(false);
}
代码示例来源:origin: org.opensingular/singular-requirement-module
@Override
protected void onInitialize() {
super.onInitialize();
add(new WebMarkupContainer("togglerButton").setVisible(withTogglerButton));
add(new WebMarkupContainer("_TopAction")
.add($b.classAppender("hide")));
add(configureTopMenu("_TopMenu"));
addBaseurlAnchor();
}
内容来源于网络,如有侵权,请联系作者删除!