Commit a2909d88 authored by Dumoulin Nicolas's avatar Dumoulin Nicolas
Browse files

use raw Outline instead of OutlineView

parent 325cadee
......@@ -47,7 +47,7 @@
</Container>
<Container class="javax.swing.JScrollPane" name="jScrollPaneLeft">
<AuxValues>
<AuxValue name="JavaCodeGenerator_CreateCodeCustom" type="java.lang.String" value="new OutlineView()"/>
<AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
</AuxValues>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout$JSplitPaneConstraintsDescription">
......@@ -56,6 +56,18 @@
</Constraints>
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
<SubComponents>
<Component class="javax.swing.JTable" name="jTable">
<Properties>
<Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
<Connection code="DefaultOutlineModel.createOutlineModel(treeModel, new OhRowModel())" type="code"/>
</Property>
</Properties>
<AuxValues>
<AuxValue name="JavaCodeGenerator_CreateCodeCustom" type="java.lang.String" value="new Outline()"/>
</AuxValues>
</Component>
</SubComponents>
</Container>
</SubComponents>
</Container>
......
......@@ -29,7 +29,6 @@ import fr.cemagref.ohoui.structure.OhObjectComplex;
import javax.swing.JPanel;
import org.netbeans.swing.outline.DefaultOutlineModel;
import org.netbeans.swing.outline.Outline;
import org.openide.explorer.view.OutlineView;
/**
*
......@@ -44,7 +43,7 @@ public class NodesAndPanelsPanel extends JPanel {
OhObjectComplex ohObjectComplex = DefaultObjectIntrospector.introspect("test", o, new OhOuiContext());
treeModel = new OhTreeModel(ohObjectComplex);
initComponents();
Outline outline = ((OutlineView)jScrollPaneLeft).getOutline();
Outline outline = (Outline)jTable;
outline.setRenderDataProvider(new OhDataProvider());
outline.setModel(DefaultOutlineModel.createOutlineModel(treeModel, new OhRowModel()));
}
......@@ -60,10 +59,15 @@ public class NodesAndPanelsPanel extends JPanel {
jSplitPane1 = new javax.swing.JSplitPane();
jScrollPaneRight = new javax.swing.JScrollPane();
jScrollPaneLeft = new OutlineView();
jScrollPaneLeft = new javax.swing.JScrollPane();
jTable = new Outline();
jSplitPane1.setDividerSize(5);
jSplitPane1.setRightComponent(jScrollPaneRight);
jTable.setModel(DefaultOutlineModel.createOutlineModel(treeModel, new OhRowModel()));
jScrollPaneLeft.setViewportView(jTable);
jSplitPane1.setLeftComponent(jScrollPaneLeft);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
......@@ -83,5 +87,6 @@ public class NodesAndPanelsPanel extends JPanel {
private javax.swing.JScrollPane jScrollPaneLeft;
private javax.swing.JScrollPane jScrollPaneRight;
private javax.swing.JSplitPane jSplitPane1;
private javax.swing.JTable jTable;
// End of variables declaration//GEN-END:variables
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment