本文整理了Java中org.netbeans.swing.outline.Outline.setModel()
方法的一些代码示例,展示了Outline.setModel()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Outline.setModel()
方法的具体详情如下:
包路径:org.netbeans.swing.outline.Outline
类名称:Outline
方法名:setModel
[英]Overridden to throw an exception if the passed model is not an instance of OutlineModel
(with the exception of calls from the superclass constructor)
[中]如果传递的模型不是OutlineModel
的实例,则重写以引发异常(来自超类构造函数的调用除外)
代码示例来源:origin: stackoverflow.com
Outline outline = new Outline();
outline.setRootVisible(true);
outline.setModel(outlineModel);
frame.getContentPane().add(new JScrollPane(outline));
代码示例来源: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
@Override
public void run() {
setRow(myRow);
RowModel rm = new JointTreeRowModel(myPropNames);
TreeModel tm = new JointGroupTreeModel(myJointGroup);
OutlineModel mdl = DefaultOutlineModel.createOutlineModel(tm, rm);
myJointTree.setModel(mdl);
myJointTree.repaint();
}
代码示例来源: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: uk.gov.nationalarchives/droid-ui
mdl.getTreePathSupport().addTreeWillExpandListener(expandingTreeListener);
resultsOutline.setModel(mdl);
TableColumnModel columnModel = resultsOutline.getColumnModel();
代码示例来源:origin: digital-preservation/droid
mdl.getTreePathSupport().addTreeWillExpandListener(expandingTreeListener);
resultsOutline.setModel(mdl);
TableColumnModel columnModel = resultsOutline.getColumnModel();
代码示例来源:origin: in.jlibs/jlibs-examples
outline.setShowGrid(false);
outline.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 14));
outline.setModel(DefaultOutlineModel.createOutlineModel(treeModel, rowModel));
outline.getColumnModel().getColumn(1).setMinWidth(150);
内容来源于网络,如有侵权,请联系作者删除!