|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.freecol.client.gui.panel.ColopediaTreeItem
class ColopediaTreeItem
TreeCellItems are used to represent the name and icon of a node in the Colopedia's tree.
| Field Summary | |
|---|---|
private javax.swing.ImageIcon |
icon
|
private FreeColGameObjectType |
objectType
|
private ColopediaPanel.PanelType |
panelType
|
private java.lang.String |
text
|
| Constructor Summary | |
|---|---|
ColopediaTreeItem(ColopediaPanel.PanelType panelType)
The constructor that will add the items to this panel. |
|
ColopediaTreeItem(ColopediaPanel.PanelType panelType,
java.lang.String text)
The constructor that will add the items to this panel. |
|
ColopediaTreeItem(FreeColGameObjectType objectType,
java.lang.String text,
javax.swing.ImageIcon icon)
The constructor that will add the items to this panel. |
|
| Method Summary | |
|---|---|
FreeColGameObjectType |
getFreeColGameObjectType()
Returns the type this item represents. |
javax.swing.ImageIcon |
getIcon()
Returns the item's icon. |
ColopediaPanel.PanelType |
getPanelType()
Returns the panel type this item belongs to. |
java.lang.String |
toString()
Returns the item's name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private ColopediaPanel.PanelType panelType
private FreeColGameObjectType objectType
private java.lang.String text
private javax.swing.ImageIcon icon
| Constructor Detail |
|---|
ColopediaTreeItem(ColopediaPanel.PanelType panelType)
panelType - The panel type.
ColopediaTreeItem(ColopediaPanel.PanelType panelType,
java.lang.String text)
panelType - The panel type.text - The name of the item.
ColopediaTreeItem(FreeColGameObjectType objectType,
java.lang.String text,
javax.swing.ImageIcon icon)
objectType - The type represented by this item.text - The name of the item.icon - The icon of the item.| Method Detail |
|---|
public FreeColGameObjectType getFreeColGameObjectType()
public ColopediaPanel.PanelType getPanelType()
public java.lang.String toString()
toString in class java.lang.Objectpublic javax.swing.ImageIcon getIcon()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||