当前位置: 首页>>代码示例>>Java>>正文


Java Visits.visitChildren方法代码示例

本文整理汇总了Java中org.apache.wicket.util.visit.Visits.visitChildren方法的典型用法代码示例。如果您正苦于以下问题:Java Visits.visitChildren方法的具体用法?Java Visits.visitChildren怎么用?Java Visits.visitChildren使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.wicket.util.visit.Visits的用法示例。


在下文中一共展示了Visits.visitChildren方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addChildrenIfVisible

import org.apache.wicket.util.visit.Visits; //导入方法依赖的package包/类
public static void addChildrenIfVisible(final AjaxRequestTarget target, MarkupContainer parent,
		Class<?> childCriteria) {
	Args.notNull(parent, "parent");
	Args.notNull(childCriteria, "childCriteria");
	
	Visits.visitChildren(
			parent, Visitors.addToTarget(target),
			VisitFilters.every(VisitFilters.including(childCriteria), VisitFilters.renderedComponents())
	);
}
 
开发者ID:openwide-java,项目名称:owsi-core-parent,代码行数:11,代码来源:AjaxListeners.java

示例2: refresh

import org.apache.wicket.util.visit.Visits; //导入方法依赖的package包/类
public static AjaxRequestTarget.AbstractListener refresh(final IVisitFilter ... additiveFilters) {
	return new SerializableListener() {
		private static final long serialVersionUID = 1L;
		@Override
		public void onBeforeRespond(Map<String, Component> map, AjaxRequestTarget target) {
			Visits.visitChildren(
					target.getPage(),
					Visitors.addToTarget(target),
					VisitFilters.every(additiveFilters)
			);
		}
	};
}
 
开发者ID:openwide-java,项目名称:owsi-core-parent,代码行数:14,代码来源:AjaxListeners.java

示例3: refreshChildren

import org.apache.wicket.util.visit.Visits; //导入方法依赖的package包/类
public static AjaxRequestTarget.AbstractListener refreshChildren(final MarkupContainer parent,
		IVisitFilter ... additiveFilters) {
	final IVisitFilter filter = VisitFilters.every(additiveFilters);
	return new SerializableListener() {
		private static final long serialVersionUID = 1L;
		@Override
		public void onBeforeRespond(Map<String, Component> map, AjaxRequestTarget target) {
			Visits.visitChildren(
					parent,
					Visitors.addToTarget(target),
					filter
			);
		}
	};
}
 
开发者ID:openwide-java,项目名称:owsi-core-parent,代码行数:16,代码来源:AjaxListeners.java

示例4: visit

import org.apache.wicket.util.visit.Visits; //导入方法依赖的package包/类
private static final <T extends Component, R> R visit(Component component, IVisitor<T, R> visitor, IVisitFilter filter) {
	return Visits.visitChildren(Collections.<Component>singleton(component), visitor, filter);
}
 
开发者ID:openwide-java,项目名称:owsi-core-parent,代码行数:4,代码来源:AbstractAjaxInputPrerequisiteBehavior.java

示例5: visitColumns

import org.apache.wicket.util.visit.Visits; //导入方法依赖的package包/类
/**
 * Visit the columns of this table.
 * 
 * @param visitor the visitor
 * @param <R> the return type of the visitor
 * @return visitor return value
 */
@SuppressWarnings("unchecked")
public <R> R visitColumns(IVisitor<IColumn<T, S>, R> visitor) {
    return Visits.visitChildren((List<IColumn<T, S>>) getColumns(), visitor);
}
 
开发者ID:flex-oss,项目名称:flex-ui,代码行数:12,代码来源:DataTable.java


注:本文中的org.apache.wicket.util.visit.Visits.visitChildren方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。