com.threerings.opengl.gui
Class ComboBox.DefaultFormatter

java.lang.Object
  extended by com.threerings.opengl.gui.ComboBox.DefaultFormatter
All Implemented Interfaces:
ComboBox.Formatter
Enclosing class:
ComboBox

public static class ComboBox.DefaultFormatter
extends Object
implements ComboBox.Formatter

The default formatter for a ComboBox. May be extended for typical uses.


Constructor Summary
ComboBox.DefaultFormatter()
           
 
Method Summary
 Icon getIcon(Object o)
          Get the icon (may be null) for the specified item.
 String getText(Object o)
          Get the label (may not be null) for the specified item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComboBox.DefaultFormatter

public ComboBox.DefaultFormatter()
Method Detail

getIcon

public Icon getIcon(Object o)
Description copied from interface: ComboBox.Formatter
Get the icon (may be null) for the specified item.

Specified by:
getIcon in interface ComboBox.Formatter

getText

public String getText(Object o)
Description copied from interface: ComboBox.Formatter
Get the label (may not be null) for the specified item.

Specified by:
getText in interface ComboBox.Formatter