javawrapper::ComboBoxRenderer Class Reference

This limits values displayed in the file choices combo box to 50 characters (the last 50, so filenames are displayed). More...

List of all members.

Public Member Functions

 ComboBoxRenderer (JComboBox oBox)
 Constructor.
Component getListCellRendererComponent (JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
 This method displays the file choice, with a max of 50 chars.

Package Attributes

int m_iMaxChars = 50
 Max chars to display.


Detailed Description

This limits values displayed in the file choices combo box to 50 characters (the last 50, so filenames are displayed).

Copyright: Copyright (c) Charles D. Canham 2003

Company: Institute of Ecosystem Studies

Author:
Lora E. Murphy
Version:
1.0

Edit history:
------------------
April 28, 2004: Submitted in beta version (LEM)
December 15, 2004: Added tool-tip text and smart sizing (LEM)


Constructor & Destructor Documentation

javawrapper::ComboBoxRenderer::ComboBoxRenderer ( JComboBox  oBox  )  [inline]

Constructor.

Parameters:
oBox JComboBox Combo box to display


Member Function Documentation

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

This method displays the file choice, with a max of 50 chars.

Parameters:
list List object
value value to display
index Index selected
isSelected Whether it's selected
cellHasFocus Whether the cell has focus
Returns:
Formatted component

Edit history:
------------------
April 28, 2004: Submitted in beta version (LEM)


The documentation for this class was generated from the following file:
Generated on Thu May 24 09:34:54 2007 for SORTIE Java Interface by  doxygen 1.5.2