rero.dck.items

Class SelectInput

public class SelectInput extends SuperInput implements ItemListener

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

Field Detail

defaultVal

protected int defaultVal

label

protected JLabel label

select

protected JComboBox select

Constructor Detail

SelectInput

public SelectInput(String var, int _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)

setModel

public void setModel(ComboBoxModel model)