Class ImageIconItemInfo
java.lang.Object
org.gvsig.gui.beans.swing.jComboBoxWithImageIconItems.ImageIconItemInfo
- All Implemented Interfaces:
Serializable
This class represents the necessary information about each image icon item of 'JPanelWithJComboBoxImageIconItems'
- Author:
- Pablo Piqueras Bartolomé (p_queras@hotmail.com)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor without parametersImageIconItemInfo(String image_Icon_Path, ImageIcon image_Icon, String text, Object item_Value) Default constructor with two parameters -
Method Summary
Modifier and TypeMethodDescriptionGets the image icon object referenceGets the associated item valuegetPath()Gets the pathGets the tool tip textvoidsetImageIcon(ImageIcon imageIcon) Sets the image icon object referencevoidsetItemValue(Object item_Value) Sets the associated item valuevoidSets the pathvoidsetToolTipText(String text) Sets the tool tip text
-
Constructor Details
-
ImageIconItemInfo
public ImageIconItemInfo()Default constructor without parameters -
ImageIconItemInfo
public ImageIconItemInfo(String image_Icon_Path, ImageIcon image_Icon, String text, Object item_Value) Default constructor with two parameters- Parameters:
image_Icon- The image icontext- The tool tip textitem_Value- A value associated to this itempath- Path to the image icon
-
-
Method Details
-
getImageIcon
Gets the image icon object reference- Returns:
- the imageIcon
-
setImageIcon
Sets the image icon object reference- Parameters:
imageIcon- the imageIcon to set
-
getPath
Gets the path- Returns:
- the path
-
setPath
Sets the path- Parameters:
path- the path to set
-
getToolTipText
Gets the tool tip text- Returns:
- text the tool tip text to this icon image
-
setToolTipText
Sets the tool tip text- Parameters:
text- the tool tip text to this icon image
-
getItemValue
Gets the associated item value- Returns:
- a value associated to this item
-
setItemValue
Sets the associated item value- Parameters:
item_Value- a value associated to this item
-