public class ComboControl extends BaseModifiableControl<javax.swing.JComboBox,java.lang.String>
Disposable.Parent
ERROR_BACKGROUND, ERROR_FOREGROUND, WARNING_BACKGROUND
Constructor and Description |
---|
ComboControl(DomWrapper<java.lang.String> domWrapper,
java.lang.Class<? extends java.lang.Enum> aClass) |
ComboControl(DomWrapper<java.lang.String> domWrapper,
Factory<? extends java.util.List<Pair<java.lang.String,javax.swing.Icon>>> dataFactory) |
ComboControl(GenericDomValue<?> reference) |
ComboControl(GenericDomValue genericDomValue,
Factory<? extends java.util.List<Pair<java.lang.String,javax.swing.Icon>>> dataFactory) |
Modifier and Type | Method and Description |
---|---|
static <T extends java.lang.Enum> |
createEnumComboBox(java.lang.Class<T> type) |
protected javax.swing.JComboBox |
createMainComponent(javax.swing.JComboBox boundedComponent) |
static Factory<java.util.List<Pair<java.lang.String,javax.swing.Icon>>> |
createPresentationFunction(Factory<? extends java.util.Collection<?>> variantFactory) |
static Factory<java.util.List<Pair<java.lang.String,javax.swing.Icon>>> |
createResolvingFunction(GenericDomValue<?> reference) |
protected void |
doReset() |
protected java.lang.String |
getValue() |
protected boolean |
isCommitted() |
boolean |
isNullable() |
boolean |
isValidValue(java.lang.String object) |
void |
setNullable(boolean nullable) |
protected void |
setValue(java.lang.String value) |
protected void |
updateComponent() |
doCommit, setModified
addCommitListener, bind, canNavigate, commit, dispose, getComponent, getComponentToListenFocusLost, getDefaultBackground, getDefaultForeground, getDomElement, getDomWrapper, getErrorBackground, getErrorForeground, getHighlightedComponent, getProject, getWarningBackground, isValid, navigate, removeCommitListener, reset, updateHighlighting
addDependency
public ComboControl(GenericDomValue genericDomValue, Factory<? extends java.util.List<Pair<java.lang.String,javax.swing.Icon>>> dataFactory)
public ComboControl(DomWrapper<java.lang.String> domWrapper, Factory<? extends java.util.List<Pair<java.lang.String,javax.swing.Icon>>> dataFactory)
public ComboControl(DomWrapper<java.lang.String> domWrapper, java.lang.Class<? extends java.lang.Enum> aClass)
public ComboControl(GenericDomValue<?> reference)
public final boolean isNullable()
public final void setNullable(boolean nullable)
public static Factory<java.util.List<Pair<java.lang.String,javax.swing.Icon>>> createResolvingFunction(GenericDomValue<?> reference)
public static Factory<java.util.List<Pair<java.lang.String,javax.swing.Icon>>> createPresentationFunction(Factory<? extends java.util.Collection<?>> variantFactory)
public static <T extends java.lang.Enum> javax.swing.JComboBox createEnumComboBox(java.lang.Class<T> type)
protected javax.swing.JComboBox createMainComponent(javax.swing.JComboBox boundedComponent)
createMainComponent
in class BaseControl<javax.swing.JComboBox,java.lang.String>
public boolean isValidValue(java.lang.String object)
protected boolean isCommitted()
isCommitted
in class BaseModifiableControl<javax.swing.JComboBox,java.lang.String>
protected void doReset()
doReset
in class BaseControl<javax.swing.JComboBox,java.lang.String>
protected final java.lang.String getValue()
getValue
in class BaseControl<javax.swing.JComboBox,java.lang.String>
protected final void setValue(java.lang.String value)
setValue
in class BaseControl<javax.swing.JComboBox,java.lang.String>
protected void updateComponent()
updateComponent
in class BaseControl<javax.swing.JComboBox,java.lang.String>