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


Java ITreeProvider类代码示例

本文整理汇总了Java中org.apache.wicket.extensions.markup.html.repeater.tree.ITreeProvider的典型用法代码示例。如果您正苦于以下问题:Java ITreeProvider类的具体用法?Java ITreeProvider怎么用?Java ITreeProvider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ITreeProvider类属于org.apache.wicket.extensions.markup.html.repeater.tree包,在下文中一共展示了ITreeProvider类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: QMTree

import org.apache.wicket.extensions.markup.html.repeater.tree.ITreeProvider; //导入依赖的package包/类
public QMTree(String id, ITreeProvider<QMTreeNode> provider,
		IModel<Set<QMTreeNode>> state) {
	super(id, provider, state);
	nodeContent = new QMSelectableTreeFolder(provider) {

		/**
		 * 
		 */
		private static final long serialVersionUID = -1379367044943131546L;

		@Override
		public void onNodeClicked(AjaxRequestTarget target,
				IModel<QMTreeNode> node) {
			QMTree.this.onNodeClicked(target, node);
		}

	};
	add(new UQasarTreeTheme());
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:20,代码来源:QMTree.java

示例2: createTree

import org.apache.wicket.extensions.markup.html.repeater.tree.ITreeProvider; //导入依赖的package包/类
protected EntityTree createTree(String rootPath) {
 	ITreeProvider<Entity> treeProvider = new EntityTreeProvider(rootPath) {

private static final long serialVersionUID = 1L;

@Override
protected boolean acceptEntityAsChild(Entity entity) {
	return (entity instanceof ro.nextreports.server.domain.Folder);
}

@Override
protected List<Entity> getChildren(String id) throws NotFoundException {
	// sort
	List<Entity> children = super.getChildren(id);
	Collections.sort(children, new EntityComparator());
	
	return children;
}
 		
 	};
 	
     return new EntityTree("tree", treeProvider, new EntityTreeStateModel());
 }
 
开发者ID:nextreports,项目名称:nextreports-server,代码行数:24,代码来源:EntityBrowserPanel.java

示例3: getRootFromProvider

import org.apache.wicket.extensions.markup.html.repeater.tree.ITreeProvider; //导入依赖的package包/类
protected SelectableBean<OrgType> getRootFromProvider() {
    TableTree<SelectableBean<OrgType>, String> tree = getTree();
    ITreeProvider<SelectableBean<OrgType>> provider = tree.getProvider();
    Iterator<? extends SelectableBean<OrgType>> iterator = provider.getRoots();

    return iterator.hasNext() ? iterator.next() : null;
}
 
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:8,代码来源:AbstractTreeTablePanel.java

示例4: Tree

import org.apache.wicket.extensions.markup.html.repeater.tree.ITreeProvider; //导入依赖的package包/类
public Tree(String id, ITreeProvider<TreeNode> provider,
		IModel<Set<TreeNode>> state) {
	super(id, provider, state);
	nodeContent = new SelectableTreeFolder(provider) {
		private static final long serialVersionUID = -3561439318750495007L;

		@Override
		public void onNodeClicked(AjaxRequestTarget target,
				IModel<TreeNode> node) {
			Tree.this.onNodeClicked(target, node);
		}

	};
	add(new UQasarTreeTheme());
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:16,代码来源:Tree.java

示例5: IndicatingNestedTree

import org.apache.wicket.extensions.markup.html.repeater.tree.ITreeProvider; //导入依赖的package包/类
public IndicatingNestedTree(String id, ITreeProvider<T> provider) {
    super(id, provider);
}
 
开发者ID:acdh-oeaw,项目名称:vlo-curation,代码行数:4,代码来源:IndicatingNestedTree.java

示例6: FileItemTree

import org.apache.wicket.extensions.markup.html.repeater.tree.ITreeProvider; //导入依赖的package包/类
public FileItemTree(String id, FileTreePanel treePanel, ITreeProvider<BaseFileItem> tp) {
	super(id, tp);
	this.treePanel = treePanel;
	setItemReuseStrategy(new ReuseIfModelsEqualStrategy());
}
 
开发者ID:apache,项目名称:openmeetings,代码行数:6,代码来源:FileItemTree.java

示例7: SelectableTreeFolder

import org.apache.wicket.extensions.markup.html.repeater.tree.ITreeProvider; //导入依赖的package包/类
public SelectableTreeFolder(ITreeProvider<TreeNode> provider) {
	this.provider = provider;
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:4,代码来源:SelectableTreeFolder.java

示例8: QMSelectableTreeFolder

import org.apache.wicket.extensions.markup.html.repeater.tree.ITreeProvider; //导入依赖的package包/类
public QMSelectableTreeFolder(ITreeProvider<QMTreeNode> provider) {
	this.provider = provider;
}
 
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:4,代码来源:QMSelectableTreeFolder.java

示例9: EntityTree

import org.apache.wicket.extensions.markup.html.repeater.tree.ITreeProvider; //导入依赖的package包/类
public EntityTree(String id, ITreeProvider<Entity> provider) {
	super(id, provider);
	
  		add(new WindowsTheme());
}
 
开发者ID:nextreports,项目名称:nextreports-server,代码行数:6,代码来源:AddWidgetPanel.java

示例10: EntityTree

import org.apache.wicket.extensions.markup.html.repeater.tree.ITreeProvider; //导入依赖的package包/类
public EntityTree(String id, ITreeProvider<Entity> provider) {
	super(id, provider);

  		add(new WindowsTheme());
}
 
开发者ID:nextreports,项目名称:nextreports-server,代码行数:6,代码来源:AddEntityPanel.java

示例11: EntityTree

import org.apache.wicket.extensions.markup.html.repeater.tree.ITreeProvider; //导入依赖的package包/类
public EntityTree(String id, ITreeProvider<Entity> provider, IModel<Set<Entity>> state) {
super(id, provider, state);

add(new WindowsTheme());
  }
 
开发者ID:nextreports,项目名称:nextreports-server,代码行数:6,代码来源:EntityBrowserPanel.java

示例12: PatternElementTreeTable

import org.apache.wicket.extensions.markup.html.repeater.tree.ITreeProvider; //导入依赖的package包/类
/**
 * constructor
 *
 * @param id          wicket identifier used in the corresponding HTML file
 * @param columns     list of IColumn objects
 * @param provider    provider see
 *                    de.hpi.unicorn.application.components.tree.NestedTreeProvider
 * @param rowsPerPage number of rows per page
 * @param state       state see
 *                    de.hpi.unicorn.application.components.tree.NestedTreeExpansionModel
 */
public PatternElementTreeTable(final String id, final List<? extends IColumn<EventTreeElement<Serializable>, String>> columns, final ITreeProvider<EventTreeElement<Serializable>> provider, final long rowsPerPage, final IModel<Set<EventTreeElement<Serializable>>> state, final PatternBuilderPanel patternBuilderPanel) {
	super(id, columns, provider, rowsPerPage, state);
	this.patternElementTree = this;
	this.patternBuilderPanel = patternBuilderPanel;
}
 
开发者ID:bptlab,项目名称:Unicorn,代码行数:17,代码来源:PatternElementTreeTable.java

示例13: SelectTreeTable

import org.apache.wicket.extensions.markup.html.repeater.tree.ITreeProvider; //导入依赖的package包/类
/**
 * constructor
 *
 * @param id          wicket identifier used in the corresponding HTML file
 * @param columns     list of IColumn objects
 * @param provider    provider see
 *                    de.hpi.unicorn.application.components.tree.NestedTreeProvider
 * @param rowsPerPage number of rows per page
 * @param state       state see
 *                    de.hpi.unicorn.application.components.tree.NestedTreeExpansionModel
 */
public SelectTreeTable(final String id, final List<? extends IColumn<T, S>> columns, final ITreeProvider<T> provider, final long rowsPerPage, final IModel<Set<T>> state) {
	super(id, columns, provider, rowsPerPage, state);
	this.provider = provider;
	this.selectTree = this;
}
 
开发者ID:bptlab,项目名称:Unicorn,代码行数:17,代码来源:SelectTreeTable.java

示例14: MultiSelectTreeTable

import org.apache.wicket.extensions.markup.html.repeater.tree.ITreeProvider; //导入依赖的package包/类
/**
 * constructor
 *
 * @param id          wicket identifier used in the corresponding HTML file
 * @param columns     list of IColumn objects
 * @param provider    provider see
 *                    de.hpi.unicorn.application.components.tree.NestedTreeProvider
 * @param rowsPerPage number of rows per page
 * @param state       state see
 *                    de.hpi.unicorn.application.components.tree.NestedTreeExpansionModel
 */
public MultiSelectTreeTable(final String id, final List<? extends IColumn<T, S>> columns, final ITreeProvider<T> provider, final long rowsPerPage, final IModel<Set<T>> state) {
	super(id, columns, provider, rowsPerPage, state);
	this.multiSelectTree = this;
	this.selectedElements = new ProviderSubset<T>(provider, false);
}
 
开发者ID:bptlab,项目名称:Unicorn,代码行数:17,代码来源:MultiSelectTreeTable.java

示例15: LabelTree

import org.apache.wicket.extensions.markup.html.repeater.tree.ITreeProvider; //导入依赖的package包/类
/**
 * constructor
 *
 * @param id       wicket identifier used in the corresponding HTML file
 * @param provider see de.hpi.unicorn.application.components.tree.NestedTreeProvider
 * @param state    see
 *                 de.hpi.unicorn.application.components.tree.NestedTreeExpansionModel
 */
public LabelTree(final String id, final ITreeProvider<T> provider, final IModel<Set<T>> state) {
	super(id, provider, state);
	this.setTheme();
}
 
开发者ID:bptlab,项目名称:Unicorn,代码行数:13,代码来源:LabelTree.java


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