class ColopediaTreeItem
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ColopediaDetailPanel |
detailPanel |
private javax.swing.ImageIcon |
icon |
private java.lang.String |
id |
private java.lang.String |
text |
Constructor and Description |
---|
ColopediaTreeItem(ColopediaDetailPanel detailPanel,
java.lang.String id,
java.lang.String text,
javax.swing.ImageIcon icon)
The default constructor for a ColopediaTreeItem that
corresponds to a leaf node.
|
Modifier and Type | Method and Description |
---|---|
javax.swing.ImageIcon |
getIcon()
Returns the item's icon.
|
java.lang.String |
getId() |
ColopediaDetailPanel |
getPanelType()
Returns the panel type this item belongs to.
|
java.lang.String |
getText() |
java.lang.String |
toString() |
private final ColopediaDetailPanel detailPanel
private final java.lang.String id
private final java.lang.String text
private final javax.swing.ImageIcon icon
ColopediaTreeItem(ColopediaDetailPanel detailPanel, java.lang.String id, java.lang.String text, javax.swing.ImageIcon icon)
detailPanel
- A ColopediaDetailPanel
value.id
- The object identifier.text
- a String
valueicon
- an ImageIcon
valuepublic ColopediaDetailPanel getPanelType()
public java.lang.String getId()
public java.lang.String getText()
public java.lang.String toString()
toString
in class java.lang.Object
public javax.swing.ImageIcon getIcon()