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...

Inherits javax::swing::JLabel.

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.

Static Package Attributes

static final long serialVersionUID = 1


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  ) 

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 
)

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)


Member Data Documentation

final long javawrapper.ComboBoxRenderer.serialVersionUID = 1 [static, package]

Max chars to display.


The documentation for this class was generated from the following file:

Generated on Wed Oct 28 14:01:21 2009 for SORTIE Java Interface by  doxygen 1.5.6