org.jvnet.substance.api.combo
Class WidestComboPopupPrototype

java.lang.Object
  extended by org.jvnet.substance.api.combo.WidestComboPopupPrototype
All Implemented Interfaces:
ComboPopupPrototypeCallback

public class WidestComboPopupPrototype
extends java.lang.Object
implements ComboPopupPrototypeCallback

Sample core implementation of ComboPopupPrototypeCallback interface that returns the widest combo entry. This class is part of officially supported API.

Author:
Kirill Grouchnikov

Constructor Summary
WidestComboPopupPrototype()
           
 
Method Summary
 java.lang.Object getPopupPrototypeDisplayValue(javax.swing.JComboBox jc)
          Returns the prototype entry for combo popup of the specified combobox.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WidestComboPopupPrototype

public WidestComboPopupPrototype()
Method Detail

getPopupPrototypeDisplayValue

public java.lang.Object getPopupPrototypeDisplayValue(javax.swing.JComboBox jc)
Description copied from interface: ComboPopupPrototypeCallback
Returns the prototype entry for combo popup of the specified combobox.

Specified by:
getPopupPrototypeDisplayValue in interface ComboPopupPrototypeCallback
Parameters:
jc - Combo box.
Returns:
Prototype entry for combo popup of the specified combobox.