Planet JFX
Rcasey (talk | contribs)
(New page: I will be showing some code here that demonstrates the ability to draw on an outside Java class container, which holds hundreds of indexed objects indexed via an iterator, populate a Tree ...)
 
Rcasey (talk | contribs)
No edit summary
Line 5: Line 5:
   
 
So, the overarching Frame is similar to what you typically see in demo code:
 
So, the overarching Frame is similar to what you typically see in demo code:
  +
  +
<nowiki>
  +
var myVolume = MyVolume{
  +
filepath: "/data/my_data_file"
  +
};
  +
  +
var mySelectModel = MySelectModel { };
  +
  +
var rootCell = MyVolumeTreeCell {
  +
text: "DemoVolume"
  +
volume: myVolume
  +
selectionModel: mySelectModel
  +
};
  +
  +
var editPanel = MyViewPanel {
  +
var: myself
  +
selectionModel: pdccSelectModel
  +
};
  +
  +
  +
var myTree = Tree {
  +
root: rootCell
  +
rootVisible: true
  +
};
  +
  +
  +
  +
Frame {
  +
title: "This is my object viewer"
  +
height: 800
  +
width: 1000
  +
content: SplitPane {
  +
orientation: HORIZONTAL
  +
content:
  +
[SplitView {
  +
weight: 0.30
  +
content: myTree
  +
},SplitView {
  +
weight: 0.70
  +
content: ScrollPane {
  +
view: CenterPanel {
  +
background: white
  +
content: editPanel
  +
}
  +
}
  +
}]
  +
}
  +
visible: true
  +
}
  +
  +
</nowiki>

Revision as of 22:28, 1 August 2007

I will be showing some code here that demonstrates the ability to draw on an outside Java class container, which holds hundreds of indexed objects indexed via an iterator, populate a Tree with that data model, and allow viewing of the object contents by clicking on a TreeCell.


So, the overarching Frame is similar to what you typically see in demo code:

var myVolume = MyVolume{ filepath: "/data/my_data_file" }; var mySelectModel = MySelectModel { }; var rootCell = MyVolumeTreeCell { text: "DemoVolume" volume: myVolume selectionModel: mySelectModel }; var editPanel = MyViewPanel { var: myself selectionModel: pdccSelectModel }; var myTree = Tree { root: rootCell rootVisible: true }; Frame { title: "This is my object viewer" height: 800 width: 1000 content: SplitPane { orientation: HORIZONTAL content: [SplitView { weight: 0.30 content: myTree },SplitView { weight: 0.70 content: ScrollPane { view: CenterPanel { background: white content: editPanel } } }] } visible: true }