Public Member Functions | |
ListRenderer (int iWidth) | |
Constructor. | |
Component | getListCellRendererComponent (JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) |
This method finds the image and text corresponding to the selected value and returns the label, set up to display the text and image. | |
Static Package Attributes | |
static final long | serialVersionUID = 1 |
Private Attributes | |
float | m_fComponentWidth |
The width of the component in which this will be displayed. |
Canham 2003 Company: Institute of Ecosystem Studies
javawrapper.ModelFlowSetup.ListRenderer.ListRenderer | ( | int | iWidth | ) |
Constructor.
iWidth | Width of the component in which this renderer will display text. |
Component javawrapper.ModelFlowSetup.ListRenderer.getListCellRendererComponent | ( | JList | list, | |
Object | value, | |||
int | index, | |||
boolean | isSelected, | |||
boolean | cellHasFocus | |||
) |
This method finds the image and text corresponding to the selected value and returns the label, set up to display the text and image.
list | JList List object. | |
value | Object Object to render for | |
index | int Index of object to render | |
isSelected | boolean Whether or not the object to render is selected | |
cellHasFocus | boolean Whether or not the object to render has focus |
final long javawrapper.ModelFlowSetup.ListRenderer.serialVersionUID = 1 [static, package] |
Reimplemented from uihelpers.MultilineLabel.
float javawrapper.ModelFlowSetup.ListRenderer.m_fComponentWidth [private] |
The width of the component in which this will be displayed.
This is float to save a casting step later when rendering.