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

Java HeadersToolbar类代码示例

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

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



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

示例1: ListItemsPage

import org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar; //导入依赖的package包/类
public ListItemsPage() {
	final Label label = new Label("message", "items from database:");
	add(label);

	add(new Link("link") {

		@Override
		public void onClick() {
			setResponsePage(AddItemPage.class);
		}
	});
	
	ListDataProvider<Item> itemProvider = new ListDataProvider<Item>(itemService.findAll());

	IColumn[] columns = new IColumn[2];

	columns[0] = new PropertyColumn(new Model<String>("Name"), "name");
	columns[1] = new PropertyColumn(new Model<String>("Price"), "price");

	DataTable table = new DataTable("datatable", columns, itemProvider, 10);
	table.addBottomToolbar(new NavigationToolbar(table));
	table.addTopToolbar(new HeadersToolbar(table, null));
	add(table);

}
 
开发者ID:jirkapinkas,项目名称:example-wicket-portlet,代码行数:26,代码来源:ListItemsPage.java


示例2: SakaiDataTable

import org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar; //导入依赖的package包/类
/**
 * Constructor
 * 
 * @param id
 *            component id
 * @param columns
 *            list of columns
 * @param dataProvider
 *            data provider
 * @param pageable
 *            table should have paging controls
 */
public SakaiDataTable(String id, final List<IColumn> columns, ISortableDataProvider dataProvider, boolean pageable)
{
	super(id, columns, dataProvider, 20);
	((RepeatingView) get("topToolbars:toolbars")).removeAll();
	((RepeatingView) get("bottomToolbars:toolbars")).removeAll();
	
	if(pageable) {
		addTopToolbar(new SakaiNavigationToolBar(this));
	}
	addTopToolbar(new HeadersToolbar(this, dataProvider));
	addBottomToolbar(new NoRecordsToolbar(this, new ResourceModel("no_data")));
}
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:25,代码来源:SakaiDataTable.java


示例3: DefaultDataTable

import org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar; //导入依赖的package包/类
/**
 * Constructor.
 *
 * @param id component id
 * @param columns list of columns
 * @param dataProvider data provider
 * @param rowsPerPage number of rows per page
 */
public DefaultDataTable(final String id, final List<? extends IColumn<T, S>> columns,
        final ISortableDataProvider<T, S> dataProvider, final int rowsPerPage) {
    super(id, columns, dataProvider, rowsPerPage);

    addTopToolbar(new NavigationToolbar(this));
    addTopToolbar(new HeadersToolbar<>(this, dataProvider));
    addBottomToolbar(new NoRecordsToolbar(this));
}
 
开发者ID:flex-oss,项目名称:flex-ui,代码行数:17,代码来源:DefaultDataTable.java


示例4: DefaultFlexTable

import org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar; //导入依赖的package包/类
public DefaultFlexTable(String id, List<? extends IColumn<T, S>> columns,
        ISortableDataProvider<T, S> dataProvider, int rowsPerPage) {
    super(id, columns, dataProvider, rowsPerPage);

    setOutputMarkupId(true);

    addTableHeader(new HeadersToolbar<>(this, dataProvider));
    addBottomToolbar(new NavigationToolbar(this));
    addBottomToolbar(new NoRecordsToolbar(this));
}
 
开发者ID:flex-oss,项目名称:flex-ui,代码行数:11,代码来源:DefaultFlexTable.java


示例5: createTreeTable

import org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar; //导入依赖的package包/类
private void createTreeTable() {
	final List<IColumn<BPMNTreeTableElement, String>> columns = this.createColumns();

	this.treeTable = new LabelTreeTable<BPMNTreeTableElement, String>("bpmnComponentTreeTable", columns, this.treeTableProvider, Integer.MAX_VALUE, new BPMNTreeTableExpansionModel());

	this.treeTable.setOutputMarkupId(true);

	this.treeTable.getTable().addTopToolbar(new HeadersToolbar<String>(this.treeTable.getTable(), this.treeTableProvider));

	this.layoutForm.addOrReplace(this.treeTable);
}
 
开发者ID:bptlab,项目名称:Unicorn,代码行数:12,代码来源:BPMNQueryEditor.java


示例6: createTreeTable

import org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar; //导入依赖的package包/类
private void createTreeTable() {
	final List<IColumn<ProcessInstanceMonitoringTreeTableElement, String>> columns = this.createColumns();

	this.treeTable = new LabelTreeTable<ProcessInstanceMonitoringTreeTableElement, String>("processInstanceMonitoringTreeTable", columns, this.treeTableProvider, Integer.MAX_VALUE, new ProcessInstanceMonitoringTreeTableExpansionModel());

	this.treeTable.setOutputMarkupId(true);

	this.treeTable.getTable().addTopToolbar(new HeadersToolbar<String>(this.treeTable.getTable(), this.treeTableProvider));

	ProcessInstanceMonitoringTreeTableExpansionModel.get().expandAll();

	this.layoutForm.addOrReplace(this.treeTable);
}
 
开发者ID:bptlab,项目名称:Unicorn,代码行数:14,代码来源:ProcessInstanceMonitoringModal.java


示例7: createTreeTable

import org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar; //导入依赖的package包/类
private void createTreeTable() {
	final List<IColumn<ProcessAnalysingTreeTableElement, String>> columns = this.createColumns();

	this.treeTable = new LabelTreeTable<ProcessAnalysingTreeTableElement, String>("processAnalysisTreeTable", columns, this.treeTableProvider, Integer.MAX_VALUE, new ProcessAnalysingTreeTableExpansionModel());

	this.treeTable.setOutputMarkupId(true);

	this.treeTable.getTable().addTopToolbar(new HeadersToolbar<String>(this.treeTable.getTable(), this.treeTableProvider));

	ProcessInstanceMonitoringTreeTableExpansionModel.get().expandAll();

	this.layoutForm.addOrReplace(this.treeTable);
}
 
开发者ID:bptlab,项目名称:Unicorn,代码行数:14,代码来源:ProcessAnalysingModal.java


示例8: createTreeTable

import org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar; //导入依赖的package包/类
private void createTreeTable(final Form<Void> layoutForm) {
	final List<IColumn<SimulationTreeTableElement<Object>, String>> columns = this.createColumns();

	this.treeTable = new LabelTreeTable<SimulationTreeTableElement<Object>, String>("sequenceTree", columns, this.treeTableProvider, Integer.MAX_VALUE, new SimulationTreeTableExpansionModel<Object>());

	this.treeTable.setOutputMarkupId(true);

	this.treeTable.getTable().addTopToolbar(new HeadersToolbar<String>(this.treeTable.getTable(), this.treeTableProvider));

	SimulationTreeTableExpansion.get().expandAll();

	layoutForm.add(this.treeTable);
}
 
开发者ID:bptlab,项目名称:Unicorn,代码行数:14,代码来源:SimpleSimulationPanel.java


示例9: createTreeTable

import org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar; //导入依赖的package包/类
private void createTreeTable(final Form<Void> layoutForm) {
	final List<IColumn<SimulationTreeTableElement<Object>, String>> columns = this.createColumns();

	this.treeTable = new LabelTreeTable<SimulationTreeTableElement<Object>, String>("monitoringPointTree", columns, this.treeTableProvider, Integer.MAX_VALUE, new SimulationTreeTableExpansionModel<Object>());

	this.treeTable.setOutputMarkupId(true);

	this.treeTable.getTable().addTopToolbar(new HeadersToolbar<String>(this.treeTable.getTable(), this.treeTableProvider));

	SimulationTreeTableExpansion.get().expandAll();

	layoutForm.add(this.treeTable);
}
 
开发者ID:bptlab,项目名称:Unicorn,代码行数:14,代码来源:BPMNSimulationPanel.java


示例10: renderOrUpdateAttributeTreeTable

import org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar; //导入依赖的package包/类
private void renderOrUpdateAttributeTreeTable() {

		final List<IColumn<TypeTreeNode, String>> columns = this.createColumns();

		this.attributeTreeTable = new LabelTreeTable<TypeTreeNode, String>("attributeTreeTable", columns, this.attributeTreeTableProvider, Integer.MAX_VALUE, new AttributeTreeExpansionModel());

		this.attributeTreeTable.setOutputMarkupId(true);
		AttributeTreeExpansion.get().expandAll();
		this.attributeTreeTable.getTable().addTopToolbar(new HeadersToolbar<String>(this.attributeTreeTable.getTable(), this.attributeTreeTableProvider));

		this.layoutForm.addOrReplace(this.attributeTreeTable);
	}
 
开发者ID:bptlab,项目名称:Unicorn,代码行数:13,代码来源:AttributeTreePanel.java


示例11: buildPatternTreeTable

import org.apache.wicket.extensions.markup.html.repeater.data.table.HeadersToolbar; //导入依赖的package包/类
private void buildPatternTreeTable() {

		final List<IColumn<EventTreeElement<Serializable>, String>> columns = this.createColumns();

		this.patternTreeTable = new PatternElementTreeTable("patternTreeTable", columns, this.patternTreeTableProvider, Integer.MAX_VALUE, new TreeExpansionModel<Serializable>(), this);

		this.patternTreeTable.setOutputMarkupId(true);
		TreeExpansion.get().expandAll();
		this.patternTreeTable.getTable().addTopToolbar(new HeadersToolbar<String>(this.patternTreeTable.getTable(), this.patternTreeTableProvider));

		this.layoutForm.addOrReplace(this.patternTreeTable);
	}
 
开发者ID:bptlab,项目名称:Unicorn,代码行数:13,代码来源:PatternBuilderPanel.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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