Esempio n. 1
0
 public void setSelectedItem(final PTreeItem item) {
   if (curSelection != null) {
     curSelection.setSelected(false);
   }
   curSelection = item;
   curSelection.setSelected(true);
 }
Esempio n. 2
0
 public void removeItem(final PTreeItem item) {
   root.removeItem(item);
 }
Esempio n. 3
0
 public PTreeItem addItem(final PTreeItem item) {
   return root.addItem(item);
 }
Esempio n. 4
0
 public PTreeItem addItem(final String item) {
   return root.addItem(item);
 }
Esempio n. 5
0
 @Override
 protected void init0() {
   super.init0();
   root.setTree(this);
   root.attach(windowID);
 }
Esempio n. 6
0
 public PTree() {
   root = new PTreeItem(true);
   root.saveAdd(root.getID(), ID);
 }
Esempio n. 7
0
 /**
  * Gets the number of items contained at the root of this tree.
  *
  * @return this tree's item count
  */
 public int getItemCount() {
   return root.getChildCount();
 }
Esempio n. 8
0
 public PTreeItem getItem(final int index) {
   return root.getChild(index);
 }