freemind.common
Class ComboProperty
java.lang.Object
freemind.common.PropertyBean
freemind.common.ComboProperty
- All Implemented Interfaces:
- PropertyControl
public class ComboProperty
- extends PropertyBean
- implements PropertyControl
Constructor Summary |
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)
|
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComboProperty
public ComboProperty(java.lang.String description,
java.lang.String label,
java.lang.String[] possibles,
TextTranslator pTranslator)
- Parameters:
pTranslator
- TODO
ComboProperty
public ComboProperty(java.lang.String description,
java.lang.String label,
java.lang.String[] possibles,
java.util.List possibleTranslations)
ComboProperty
public ComboProperty(java.lang.String description,
java.lang.String label,
java.util.List possibles,
java.util.List possibleTranslations)
updateComboBoxEntries
public void updateComboBoxEntries(java.util.List possibles,
java.util.List possibleTranslations)
- If your combo base changes, call this method to update the values.
The old selected value is not selected, but the first in the list.
Thus, you should call this method only shortly before setting the
value with setValue.
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interface PropertyControl
getLabel
public java.lang.String getLabel()
- Description copied from class:
PropertyBean
- The key of the property.
- Specified by:
getLabel
in interface PropertyControl
- Specified by:
getLabel
in class PropertyBean
setValue
public void setValue(java.lang.String value)
- Specified by:
setValue
in class PropertyBean
getValue
public java.lang.String getValue()
- Specified by:
getValue
in class PropertyBean
layout
public void layout(com.jgoodies.forms.builder.DefaultFormBuilder builder,
TextTranslator pTranslator)
- Specified by:
layout
in interface PropertyControl
setEnabled
public void setEnabled(boolean pEnabled)
- Specified by:
setEnabled
in interface PropertyControl