javawrapper::ModelFlowSetup::ListRenderer Class Reference

Provides multi-line text wrapping to our list boxes. More...

Inheritance diagram for javawrapper::ModelFlowSetup::ListRenderer:

javawrapper::MultilineLabel List of all members.

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.

Private Attributes

float m_fComponentWidth
 The width of the component in which this will be displayed.

Detailed Description

Provides multi-line text wrapping to our list boxes.

Copyright: Copyright (c) Charles D. Canham 2003

Company: Institute of Ecosystem Studies

Author:
Lora E. Murphy
Version:
1.0


Constructor & Destructor Documentation

javawrapper::ModelFlowSetup::ListRenderer::ListRenderer ( int  iWidth  )  [inline]

Constructor.

Parameters:
iWidth Width of the component in which this renderer will display text.


Member Function Documentation

Component javawrapper::ModelFlowSetup::ListRenderer::getListCellRendererComponent ( JList  list,
Object  value,
int  index,
boolean  isSelected,
boolean  cellHasFocus 
) [inline]

This method finds the image and text corresponding to the selected value and returns the label, set up to display the text and image.

Parameters:
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
Returns:
Component Properly formatted component


Member Data Documentation

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.


The documentation for this class was generated from the following file:
Generated on Wed Nov 29 08:45:05 2006 for SORTIE Java Interface by  doxygen 1.4.7