本文整理汇总了Java中org.apache.wicket.Component.setOutputMarkupId方法的典型用法代码示例。如果您正苦于以下问题:Java Component.setOutputMarkupId方法的具体用法?Java Component.setOutputMarkupId怎么用?Java Component.setOutputMarkupId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.wicket.Component
的用法示例。
在下文中一共展示了Component.setOutputMarkupId方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onBind
import org.apache.wicket.Component; //导入方法依赖的package包/类
@Override
protected void onBind() {
super.onBind();
Component inputField = getComponent();
inputField.setOutputMarkupId(true);
}
示例2: newBeanEditor
import org.apache.wicket.Component; //导入方法依赖的package包/类
private Component newBeanEditor(Serializable propertyValue) {
Component beanEditor;
if (propertyValue != null) {
beanEditor = BeanContext.editBean(BEAN_EDITOR_ID, propertyValue);
} else {
beanEditor = new WebMarkupContainer(BEAN_EDITOR_ID).setVisible(false);
}
beanEditor.setOutputMarkupId(true);
beanEditor.setOutputMarkupPlaceholderTag(true);
return beanEditor;
}
示例3: newElementEditor
import org.apache.wicket.Component; //导入方法依赖的package包/类
private Component newElementEditor(Serializable element) {
Component elementEditor;
if (element != null) {
elementEditor = BeanContext.editBean("elementEditor", element);
} else {
elementEditor = new WebMarkupContainer("elementEditor").setVisible(false);
}
elementEditor.setOutputMarkupId(true);
elementEditor.setOutputMarkupPlaceholderTag(true);
return elementEditor;
}
示例4: CollapseBehavior
import org.apache.wicket.Component; //导入方法依赖的package包/类
public CollapseBehavior(Component target) {
this.target = target;
target.add(AttributeAppender.append("class", "collapse"));
target.setOutputMarkupId(true);
}
示例5: bind
import org.apache.wicket.Component; //导入方法依赖的package包/类
@Override
public void bind(Component component) {
super.bind(component);
component.setOutputMarkupId(true);
}
示例6: ComponentTarget
import org.apache.wicket.Component; //导入方法依赖的package包/类
public ComponentTarget(Component component, int index) {
this.component = component;
this.index = index;
component.setOutputMarkupId(true);
}