rero.dck.items

Class OptionInput

public class OptionInput extends SuperInput implements ItemListener

Field Summary
protected StringdefaultVal
protected JLabellabel
protected JComboBoxselect
Constructor Summary
OptionInput(String var, String _defaultVal, String[] values, String _label, char mnemonic, int rightGap)
Method Summary
JComponentgetComponent()
intgetEstimatedWidth()
voiditemStateChanged(ItemEvent ev)
voidrefresh()
voidsave()
voidsetAlignWidth(int width)
voidsetEnabled(boolean b)

Field Detail

defaultVal

protected String defaultVal

label

protected JLabel label

select

protected JComboBox select

Constructor Detail

OptionInput

public OptionInput(String var, String _defaultVal, String[] values, String _label, char mnemonic, int rightGap)

Method Detail

getComponent

public JComponent getComponent()

getEstimatedWidth

public int getEstimatedWidth()

itemStateChanged

public void itemStateChanged(ItemEvent ev)

refresh

public void refresh()

save

public void save()

setAlignWidth

public void setAlignWidth(int width)

setEnabled

public void setEnabled(boolean b)