com.threerings.opengl.gui
Class ComboBox.DefaultFormatter
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComboBox.DefaultFormatter
public ComboBox.DefaultFormatter()
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