本文整理汇总了Java中org.springframework.richclient.widget.table.PropertyColumnTableDescription类的典型用法代码示例。如果您正苦于以下问题:Java PropertyColumnTableDescription类的具体用法?Java PropertyColumnTableDescription怎么用?Java PropertyColumnTableDescription使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PropertyColumnTableDescription类属于org.springframework.richclient.widget.table包,在下文中一共展示了PropertyColumnTableDescription类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createControl
import org.springframework.richclient.widget.table.PropertyColumnTableDescription; //导入依赖的package包/类
@Override
protected JComponent createControl() {
PropertyColumnTableDescription desc = new PropertyColumnTableDescription(
"playersTable", Player.class);
desc.addPropertyColumn("nickname");
desc.addPropertyColumn("status");
widget = new GlazedListTableWidget(Collections.emptyList(), desc);
JPanel table = new JPanel(new BorderLayout());
table.add(widget.getComponent(), BorderLayout.CENTER);
CommandGroup popup = new CommandGroup();
popup.add((ActionCommand) getWindowCommandManager().getCommand(
"inviteCommand", ActionCommand.class));
JPopupMenu popupMenu = popup.createPopupMenu();
widget.getTable().addMouseListener(
new PopupMenuMouseListener(popupMenu));
JPanel view = getComponentFactory().createPanel(new BorderLayout());
view.add(table, BorderLayout.CENTER);
return view;
}
示例2: getTableDescription
import org.springframework.richclient.widget.table.PropertyColumnTableDescription; //导入依赖的package包/类
protected TableDescription getTableDescription()
{
PropertyColumnTableDescription desc = new PropertyColumnTableDescription("todoListBinding", TodoItem.class);
desc.addPropertyColumn("name");
desc.addPropertyColumn("description");
return desc;
}
示例3: ItemDataEditor
import org.springframework.richclient.widget.table.PropertyColumnTableDescription; //导入依赖的package包/类
public ItemDataEditor(ItemDataProvider itemDataProvider)
{
super("itemDataEditor", itemDataProvider);
setDetailForm(new ItemForm());
setFilterForm(new ItemFilterForm());
PropertyColumnTableDescription tableDescription = new PropertyColumnTableDescription("itemDataEditor", Item.class);
tableDescription.addPropertyColumn("name");
tableDescription.addPropertyColumn("description");
tableDescription.addPropertyColumn("supplier.name");
setTableWidget(tableDescription);
}