Package com.vladsch.plugin.util.ui
Class DynamicListAdaptable<A extends DynamicListAdaptable<A>>
- java.lang.Object
-
- com.vladsch.plugin.util.ui.DynamicListAdaptable<A>
-
- All Implemented Interfaces:
ComboBoxAdaptable<DynamicListAdaptable<A>>
public abstract class DynamicListAdaptable<A extends DynamicListAdaptable<A>> extends java.lang.Object implements ComboBoxAdaptable<DynamicListAdaptable<A>>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interfaceDynamicListAdaptable.Factory<F>-
Nested classes/interfaces inherited from interface com.vladsch.plugin.util.ui.ComboBoxAdaptable
ComboBoxAdaptable.IconCellRenderer<E extends ComboBoxAdaptable<E>>, ComboBoxAdaptable.Static<T extends ComboBoxAdaptable<T>>, ComboBoxAdaptable.StaticBoolean<T extends ComboBoxAdaptable<T>>
-
-
Field Summary
Fields Modifier and Type Field Description @NotNull java.lang.StringdisplayNameintintValue-
Fields inherited from interface com.vladsch.plugin.util.ui.ComboBoxAdaptable
EMPTY
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDynamicListAdaptable(int intValue, @NotNull java.lang.String displayName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static @NotNull java.util.List<java.lang.String>asList(@NotNull java.lang.String[] valueList)@NotNull java.lang.StringgetDisplayName()static @NotNull java.util.List<java.lang.String>getDisplayNames(@NotNull DynamicListAdaptable[] values)intgetIntValue()@NotNull java.lang.Stringname()protected static <V extends DynamicListAdaptable<V>>
V[]updateValues(V empty, @NotNull java.lang.Iterable<java.lang.String> valueList, boolean addEmpty, @NotNull DynamicListAdaptable.Factory<V> factory)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vladsch.plugin.util.ui.ComboBoxAdaptable
getAdapter, getValues, isDefault, setComboBoxSelection
-
-
-
-
Method Detail
-
getDisplayNames
@NotNull public static @NotNull java.util.List<java.lang.String> getDisplayNames(@NotNull @NotNull DynamicListAdaptable[] values)
-
asList
@NotNull protected static @NotNull java.util.List<java.lang.String> asList(@NotNull @NotNull java.lang.String[] valueList)
-
updateValues
protected static <V extends DynamicListAdaptable<V>> V[] updateValues(@NotNull V empty, @NotNull @NotNull java.lang.Iterable<java.lang.String> valueList, boolean addEmpty, @NotNull @NotNull DynamicListAdaptable.Factory<V> factory)
-
getDisplayName
@NotNull public @NotNull java.lang.String getDisplayName()
- Specified by:
getDisplayNamein interfaceComboBoxAdaptable<A extends DynamicListAdaptable<A>>
-
name
@NotNull public @NotNull java.lang.String name()
- Specified by:
namein interfaceComboBoxAdaptable<A extends DynamicListAdaptable<A>>
-
getIntValue
public int getIntValue()
- Specified by:
getIntValuein interfaceComboBoxAdaptable<A extends DynamicListAdaptable<A>>
-
-