|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.devices.DeviceTreeItem
public class DeviceTreeItem
Maps a vendor, the "virtual category" or a device to the DeviceTree.
Copyright Enough Software 2005
history
05-Jan-2006 - rob creation
DeviceTree| Constructor Summary | |
|---|---|
DeviceTreeItem(DeviceTreeItem parentItem,
Vendor vendor,
Device device)
Creates a new tree item. |
|
| Method Summary | |
|---|---|
protected void |
addChild(DeviceTreeItem child)
|
void |
addSelectionListener(PropertyChangeListener propertyChangeListener)
|
void |
clearChildren()
|
int |
getChildCount()
|
int |
getChildCount(Object parent)
|
DeviceTreeItem[] |
getChildren()
|
Object |
getData()
|
String |
getDescription()
|
Device |
getDevice()
|
DeviceTreeItem |
getParentItem()
Returns the parent item of this item. |
Vendor |
getVendor()
|
boolean |
isDevice()
|
boolean |
isExpanded()
|
boolean |
isSelected()
|
boolean |
isVendor()
|
void |
removeSelectionListener(PropertyChangeListener propertyChangeListener)
|
void |
setData(Object data)
|
void |
setExpanded(boolean isExpanded)
|
void |
setIsSelected(boolean selected)
|
void |
setParentItem(DeviceTreeItem parentItem)
Sets a new parent of this item. |
void |
setSelectionListener(DeviceTreeItemSelectionListener listener)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DeviceTreeItem(DeviceTreeItem parentItem,
Vendor vendor,
Device device)
parentItem - the parent of this item, can be nullvendor - the current vendor, can be nulldevice - the mapped device, can be null| Method Detail |
|---|
public DeviceTreeItem[] getChildren()
public int getChildCount()
public int getChildCount(Object parent)
public void setIsSelected(boolean selected)
public boolean isSelected()
public String toString()
toString in class Objectpublic boolean isVendor()
public boolean isDevice()
public Vendor getVendor()
public Device getDevice()
public String getDescription()
protected void addChild(DeviceTreeItem child)
public DeviceTreeItem getParentItem()
public void setParentItem(DeviceTreeItem parentItem)
parentItem - the new parent of this item or null it it has none.public void setData(Object data)
public Object getData()
public void setSelectionListener(DeviceTreeItemSelectionListener listener)
public void clearChildren()
public boolean isExpanded()
public void setExpanded(boolean isExpanded)
isExpanded - The isExpanded to set.public void addSelectionListener(PropertyChangeListener propertyChangeListener)
public void removeSelectionListener(PropertyChangeListener propertyChangeListener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||