Package com.vladsch.plugin.util.ui
Class ComboBoxAdaptable.Static<T extends ComboBoxAdaptable<T>>
- java.lang.Object
-
- com.vladsch.plugin.util.ui.ComboBoxAdaptable.Static<T>
-
- All Implemented Interfaces:
ComboBoxAdapter<T>
- Direct Known Subclasses:
ComboBoxAdaptable.StaticBoolean
- Enclosing interface:
- ComboBoxAdaptable<E extends ComboBoxAdaptable<E>>
public static class ComboBoxAdaptable.Static<T extends ComboBoxAdaptable<T>> extends java.lang.Object implements ComboBoxAdapter<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected @NotNull ComboBoxAdapter<T>ADAPTER
-
Constructor Summary
Constructors Constructor Description Static(@NotNull ComboBoxAdapter<T> ADAPTER)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddComboBoxIcons(@NotNull javax.swing.JComboBox<java.lang.String> comboBox, @NotNull java.util.function.Function<T,javax.swing.Icon> iconMapper)@NotNull javax.swing.JComboBox<java.lang.String>createComboBox(@NotNull ComboBoxAdaptable<?>... exclude)voidfillComboBox(@NotNull javax.swing.JComboBox<java.lang.String> comboBox, @NotNull ComboBoxAdaptable<?>[] exclude)TfindEnum(int intValue)TfindEnum(java.lang.String displayName)TfindEnumName(java.lang.String name)TfindEnumNameOrNull(java.lang.String name)Tget(int value)Tget(@NotNull javax.swing.JComboBox<java.lang.String> comboBox)TgetDefault()intgetInt(@NotNull javax.swing.JComboBox<java.lang.String> comboBox)booleanisAdaptable(@NotNull ComboBoxAdaptable<?> type)booleanisBoolean()booleanonAll(int intValue, OnMap map)booleanonFirst(int intValue, OnMap map)voidset(@NotNull javax.swing.JComboBox<java.lang.String> comboBox, int intValue)booleansetComboBoxSelection(@NotNull javax.swing.JComboBox<java.lang.String> comboBox, @Nullable ComboBoxAdaptable<?> selection)voidsetDefaultValue(T defaultValue)TvalueOf(java.lang.String name)
-
-
-
Field Detail
-
ADAPTER
@NotNull protected final @NotNull ComboBoxAdapter<T extends ComboBoxAdaptable<T>> ADAPTER
-
-
Constructor Detail
-
Static
public Static(@NotNull @NotNull ComboBoxAdapter<T> ADAPTER)
-
-
Method Detail
-
get
@NotNull public T get(@NotNull @NotNull javax.swing.JComboBox<java.lang.String> comboBox)
- Specified by:
getin interfaceComboBoxAdapter<T extends ComboBoxAdaptable<T>>
-
valueOf
@NotNull public T valueOf(java.lang.String name)
- Specified by:
valueOfin interfaceComboBoxAdapter<T extends ComboBoxAdaptable<T>>
-
getDefault
@NotNull public T getDefault()
- Specified by:
getDefaultin interfaceComboBoxAdapter<T extends ComboBoxAdaptable<T>>
-
setDefaultValue
public void setDefaultValue(@NotNull T defaultValue)- Specified by:
setDefaultValuein interfaceComboBoxAdapter<T extends ComboBoxAdaptable<T>>
-
get
public T get(int value)
-
getInt
public int getInt(@NotNull @NotNull javax.swing.JComboBox<java.lang.String> comboBox)
-
set
public void set(@NotNull @NotNull javax.swing.JComboBox<java.lang.String> comboBox, int intValue)
-
createComboBox
@NotNull public @NotNull javax.swing.JComboBox<java.lang.String> createComboBox(@NotNull @NotNull ComboBoxAdaptable<?>... exclude)
-
addComboBoxIcons
public void addComboBoxIcons(@NotNull @NotNull javax.swing.JComboBox<java.lang.String> comboBox, @NotNull @NotNull java.util.function.Function<T,javax.swing.Icon> iconMapper)
-
isAdaptable
public boolean isAdaptable(@NotNull @NotNull ComboBoxAdaptable<?> type)- Specified by:
isAdaptablein interfaceComboBoxAdapter<T extends ComboBoxAdaptable<T>>
-
fillComboBox
public void fillComboBox(@NotNull @NotNull javax.swing.JComboBox<java.lang.String> comboBox, @NotNull @NotNull ComboBoxAdaptable<?>[] exclude)- Specified by:
fillComboBoxin interfaceComboBoxAdapter<T extends ComboBoxAdaptable<T>>
-
setComboBoxSelection
public boolean setComboBoxSelection(@NotNull @NotNull javax.swing.JComboBox<java.lang.String> comboBox, @Nullable @Nullable ComboBoxAdaptable<?> selection)- Specified by:
setComboBoxSelectionin interfaceComboBoxAdapter<T extends ComboBoxAdaptable<T>>
-
findEnum
@NotNull public T findEnum(int intValue)
- Specified by:
findEnumin interfaceComboBoxAdapter<T extends ComboBoxAdaptable<T>>
-
findEnum
@NotNull public T findEnum(java.lang.String displayName)
- Specified by:
findEnumin interfaceComboBoxAdapter<T extends ComboBoxAdaptable<T>>
-
findEnumName
@NotNull public T findEnumName(java.lang.String name)
- Specified by:
findEnumNamein interfaceComboBoxAdapter<T extends ComboBoxAdaptable<T>>
-
findEnumNameOrNull
@Nullable public T findEnumNameOrNull(java.lang.String name)
- Specified by:
findEnumNameOrNullin interfaceComboBoxAdapter<T extends ComboBoxAdaptable<T>>
-
isBoolean
public boolean isBoolean()
- Specified by:
isBooleanin interfaceComboBoxAdapter<T extends ComboBoxAdaptable<T>>
-
onFirst
public boolean onFirst(int intValue, OnMap map)- Specified by:
onFirstin interfaceComboBoxAdapter<T extends ComboBoxAdaptable<T>>
-
onAll
public boolean onAll(int intValue, OnMap map)- Specified by:
onAllin interfaceComboBoxAdapter<T extends ComboBoxAdaptable<T>>
-
-