public class ComboProperty extends PropertyBean implements PropertyControl
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JComboBox |
mComboBox |
protected java.util.Vector |
possibleValues |
Constructor and Description |
---|
ComboProperty(java.lang.String description,
java.lang.String label,
java.util.List possibles,
java.util.List possibleTranslations) |
ComboProperty(java.lang.String description,
java.lang.String label,
java.lang.String[] possibles,
java.util.List possibleTranslations) |
ComboProperty(java.lang.String description,
java.lang.String label,
java.lang.String[] possibles,
TextTranslator pTranslator) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription() |
java.lang.String |
getLabel()
The key of the property.
|
java.lang.String |
getValue() |
void |
layout(com.jgoodies.forms.builder.DefaultFormBuilder builder,
TextTranslator pTranslator) |
void |
setEnabled(boolean pEnabled) |
void |
setValue(java.lang.String value) |
void |
updateComboBoxEntries(java.util.List possibles,
java.util.List possibleTranslations)
If your combo base changes, call this method to update the values.
|
addPropertyChangeListener, firePropertyChangeEvent, removePropertyChangeListener
protected javax.swing.JComboBox mComboBox
protected java.util.Vector possibleValues
public ComboProperty(java.lang.String description, java.lang.String label, java.lang.String[] possibles, TextTranslator pTranslator)
pTranslator
- TODOpublic ComboProperty(java.lang.String description, java.lang.String label, java.lang.String[] possibles, java.util.List possibleTranslations)
public ComboProperty(java.lang.String description, java.lang.String label, java.util.List possibles, java.util.List possibleTranslations)
public void updateComboBoxEntries(java.util.List possibles, java.util.List possibleTranslations)
public java.lang.String getDescription()
getDescription
in interface PropertyControl
public java.lang.String getLabel()
PropertyBean
getLabel
in interface PropertyControl
getLabel
in class PropertyBean
public void setValue(java.lang.String value)
setValue
in class PropertyBean
public java.lang.String getValue()
getValue
in class PropertyBean
public void layout(com.jgoodies.forms.builder.DefaultFormBuilder builder, TextTranslator pTranslator)
layout
in interface PropertyControl
public void setEnabled(boolean pEnabled)
setEnabled
in interface PropertyControl