本文整理匯總了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);
}