com.samskivert.swing
Class RuntimeAdjust.EnumAdjust

java.lang.Object
  extended by com.samskivert.swing.RuntimeAdjust.Adjust
      extended by com.samskivert.swing.RuntimeAdjust.EnumAdjust
All Implemented Interfaces:
ActionListener, PropertyChangeListener, Comparable<RuntimeAdjust.Adjust>, EventListener
Enclosing class:
RuntimeAdjust

public static class RuntimeAdjust.EnumAdjust
extends RuntimeAdjust.Adjust
implements ActionListener

Provides runtime adjustable enumerated variables.


Field Summary
protected  JComboBox _valbox
           
protected  String _value
           
protected  String[] _values
           
 
Fields inherited from class com.samskivert.swing.RuntimeAdjust.Adjust
_config, _descrip, _editor, _name
 
Constructor Summary
RuntimeAdjust.EnumAdjust(String descrip, String name, PrefsConfig config, String[] values, String defval)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
protected  void adjusted(String newValue, String oldValue)
           
 String getValue()
           
protected  void populateEditor(JPanel editor)
           
 void propertyChange(PropertyChangeEvent evt)
           
 void setValue(String value)
           
 
Methods inherited from class com.samskivert.swing.RuntimeAdjust.Adjust
compareTo, equals, getAdjustment, getDescription, getEditor, getLibrary, getName, getPackage, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_value

protected String _value

_values

protected String[] _values

_valbox

protected JComboBox _valbox
Constructor Detail

RuntimeAdjust.EnumAdjust

public RuntimeAdjust.EnumAdjust(String descrip,
                                String name,
                                PrefsConfig config,
                                String[] values,
                                String defval)
Method Detail

getValue

public final String getValue()

setValue

public void setValue(String value)

populateEditor

protected void populateEditor(JPanel editor)
Specified by:
populateEditor in class RuntimeAdjust.Adjust

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

propertyChange

public void propertyChange(PropertyChangeEvent evt)
Specified by:
propertyChange in interface PropertyChangeListener

adjusted

protected void adjusted(String newValue,
                        String oldValue)


Copyright © 2000-2008 Michael Bayne. All Rights Reserved.