• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java ITreeProvider类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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类的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: LabelTreeTable

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 LabelTreeTable(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.getTable().add(new AttributeAppender("class", Model.of("table table-striped")));
	this.setTheme();
}
 
开发者ID:bptlab,项目名称:Unicorn,代码行数:17,代码来源:LabelTreeTable.java


示例17: SelectTree

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 SelectTree(final String id, final ITreeProvider<T> provider, final IModel<Set<T>> state) {
	super(id, provider, state);
	this.provider = provider;
	this.selectTree = this;
}
 
开发者ID:bptlab,项目名称:Unicorn,代码行数:14,代码来源:SelectTree.java


示例18: MultiSelectTree

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 MultiSelectTree(final String id, final ITreeProvider<T> provider, final IModel<Set<T>> state) {
	super(id, provider, state);
	this.multiSelectTree = this;
	this.selectedElements = new ProviderSubset<T>(provider, false);
}
 
开发者ID:bptlab,项目名称:Unicorn,代码行数:14,代码来源:MultiSelectTree.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java SnapshotManager类代码示例发布时间:2022-05-22
下一篇:
Java SVNStatusType类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap