Package jmri.jmrit.logixng.util.swing
Class LogixNG_SelectEnumSwing<E extends java.lang.Enum<?>>
- java.lang.Object
-
- jmri.jmrit.logixng.util.swing.LogixNG_SelectEnumSwing<E>
-
- Type Parameters:
E
- the type of enum
public class LogixNG_SelectEnumSwing<E extends java.lang.Enum<?>> extends java.lang.Object
Swing class for jmri.jmrit.logixng.util.LogixNG_SelectEnum.
-
-
Constructor Summary
Constructors Constructor Description LogixNG_SelectEnumSwing(javax.swing.JDialog dialog, SwingConfiguratorInterface swi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAddressingListener(javax.swing.event.ChangeListener listener)
void
addEnumListener(java.awt.event.ActionListener listener)
javax.swing.JButton
createEnumDialogButton()
javax.swing.JPanel
createPanel(LogixNG_SelectEnum<E> selectEnum, E[] enumArray)
javax.swing.JPanel
createPanel(LogixNG_SelectEnum<E> selectEnum, E[] enumArray, E defaultValue)
void
dispose()
NamedBeanAddressing
getAddressing()
E
getEnum()
boolean
isEnumSelected(E e)
boolean
isEnumSelectedOrIndirectAddressing(E e)
void
setEnum(E e)
void
showEnumDialog(java.awt.event.ActionEvent e)
void
updateObject(LogixNG_SelectEnum<E> selectEnum)
boolean
validate(LogixNG_SelectEnum<E> selectEnum, java.util.List<java.lang.String> errorMessages)
-
-
-
Constructor Detail
-
LogixNG_SelectEnumSwing
public LogixNG_SelectEnumSwing(@Nonnull javax.swing.JDialog dialog, @Nonnull SwingConfiguratorInterface swi)
-
-
Method Detail
-
createPanel
public javax.swing.JPanel createPanel(@CheckForNull LogixNG_SelectEnum<E> selectEnum, E[] enumArray)
-
createPanel
public javax.swing.JPanel createPanel(@CheckForNull LogixNG_SelectEnum<E> selectEnum, E[] enumArray, E defaultValue)
-
createEnumDialogButton
public javax.swing.JButton createEnumDialogButton()
-
showEnumDialog
public void showEnumDialog(java.awt.event.ActionEvent e)
-
addAddressingListener
public void addAddressingListener(javax.swing.event.ChangeListener listener)
-
addEnumListener
public void addEnumListener(java.awt.event.ActionListener listener)
-
validate
public boolean validate(@Nonnull LogixNG_SelectEnum<E> selectEnum, @Nonnull java.util.List<java.lang.String> errorMessages)
-
updateObject
public void updateObject(@Nonnull LogixNG_SelectEnum<E> selectEnum)
-
isEnumSelected
public boolean isEnumSelected(E e)
-
isEnumSelectedOrIndirectAddressing
public boolean isEnumSelectedOrIndirectAddressing(E e)
-
getAddressing
public NamedBeanAddressing getAddressing()
-
dispose
public void dispose()
-
-