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