本文整理了Java中org.netbeans.swing.outline.Outline.setRenderDataProvider()
方法的一些代码示例,展示了Outline.setRenderDataProvider()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Outline.setRenderDataProvider()
方法的具体详情如下:
包路径:org.netbeans.swing.outline.Outline
类名称:Outline
方法名:setRenderDataProvider
[英]Set the RenderDataProvider which will provide text, icons and tooltips for items in the tree column. The default is null. If null, the data displayed will be generated in the standard JTable/JTree way - calling toString()
on objects in the tree model and using the look and feel's default tree folder and tree leaf icons.
[中]设置RenderDataProvider,它将为树列中的项目提供文本、图标和工具提示。默认值为空。如果为空,则显示的数据将以标准JTable/JTree方式生成——在树模型中的对象上调用toString()
,并使用look and feel的默认树文件夹和树叶图标。
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-mercurial
@SuppressWarnings("unchecked")
private void setupColumns() {
view.setPropertyColumns(DiffNode.COLUMN_NAME_STATUS, columnLabels.get(DiffNode.COLUMN_NAME_STATUS)[0],
DiffNode.COLUMN_NAME_LOCATION, columnLabels.get(DiffNode.COLUMN_NAME_LOCATION)[0]);
view.setPropertyColumnDescription(DiffNode.COLUMN_NAME_STATUS, columnLabels.get(DiffNode.COLUMN_NAME_STATUS)[1]);
view.setPropertyColumnDescription(DiffNode.COLUMN_NAME_LOCATION, columnLabels.get(DiffNode.COLUMN_NAME_LOCATION)[1]);
view.getAccessibleContext().setAccessibleName(NbBundle.getMessage(DiffFileTreeImpl.class, "ACSN_DiffTable")); // NOI18N
view.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(DiffFileTreeImpl.class, "ACSD_DiffTable")); // NOI18N
view.getOutline().setRenderDataProvider(createRenderProvider());
}
代码示例来源:origin: org.rwshop/org.rwshop.nb.motion
protected void setModel(Robot rootGroup){
myRobot = rootGroup;
myRowModel = new RobotTreeRowModel();
myTreeModel = new RobotTreeModel(rootGroup);
OutlineModel mdl = DefaultOutlineModel.createOutlineModel(myTreeModel, myRowModel);
myRobotTreeOutline.setRootVisible(true);
myRobotTreeOutline.setModel(mdl);
myRobotTreeOutline.setRenderDataProvider(new JointTreeRenderer());
jScrollPane1.setViewportView(myRobotTreeOutline);
}
代码示例来源:origin: org.rwshop/org.rwshop.nb.motion
protected void setModel(JointGroup rootGroup, List<String> propNames){
myRootGroup = rootGroup;
myPropertyNames = propNames;
myRowModel = new JointTreeRowModel(myPropertyNames);
myTreeModel = new JointGroupTreeModel(rootGroup);
OutlineModel mdl = DefaultOutlineModel.createOutlineModel(myTreeModel, myRowModel);
myJointTreeOutline.setRootVisible(true);
myJointTreeOutline.setModel(mdl);
myJointTreeOutline.setRenderDataProvider(new JointTreeRenderer());
jScrollPane1.setViewportView(myJointTreeOutline);
if(myListenerTree != null){
myListenerTree.stopListening();
}
myListenerTree = JointTreeJointGroupListener.buildListenerTree(myRootGroup, myJointTreeOutline, myPropertyNames);
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-mercurial
@NbBundle.Messages("LBL_DiffView.TreeColumnLabel=Revision")
public DiffTreeTable(SearchHistoryPanel master) {
super(Bundle.LBL_DiffView_TreeColumnLabel());
this.master = master;
getOutline().setShowHorizontalLines(true);
getOutline().setShowVerticalLines(false);
getOutline().setRootVisible(false);
setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
setupColumns();
getOutline().setRenderDataProvider( new NoLeafIconRenderDataProvider( getOutline().getRenderDataProvider() ) );
}
代码示例来源:origin: in.jlibs/jlibs-examples
dataProvider.setForegroundVisitor(new XSColorVisitor(filter));
dataProvider.setFontStyleVisitor(new XSFontStyleVisitor(filter));
outline.setRenderDataProvider(dataProvider);
内容来源于网络,如有侵权,请联系作者删除!