本文整理汇总了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());
}
示例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());
}
示例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;
}
示例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());
}
示例5: IndicatingNestedTree
import org.apache.wicket.extensions.markup.html.repeater.tree.ITreeProvider; //导入依赖的package包/类
public IndicatingNestedTree(String id, ITreeProvider<T> provider) {
super(id, provider);
}
示例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());
}
示例7: SelectableTreeFolder
import org.apache.wicket.extensions.markup.html.repeater.tree.ITreeProvider; //导入依赖的package包/类
public SelectableTreeFolder(ITreeProvider<TreeNode> provider) {
this.provider = provider;
}
示例8: QMSelectableTreeFolder
import org.apache.wicket.extensions.markup.html.repeater.tree.ITreeProvider; //导入依赖的package包/类
public QMSelectableTreeFolder(ITreeProvider<QMTreeNode> provider) {
this.provider = provider;
}
示例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());
}
示例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());
}
示例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());
}
示例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;
}
示例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;
}
示例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);
}
示例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();
}