org.netbeans.swing.outline.Outline.setModel()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(133)

本文整理了Java中org.netbeans.swing.outline.Outline.setModel()方法的一些代码示例,展示了Outline.setModel()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Outline.setModel()方法的具体详情如下:
包路径:org.netbeans.swing.outline.Outline
类名称:Outline
方法名:setModel

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);

相关文章