Class OptionDropdownEditor<T extends java.lang.Enum<T>>
- java.lang.Object
 - 
- com.inductiveautomation.ignition.common.util.AbstractChangeable
 - 
- com.inductiveautomation.perspective.designer.styles.StyleAttributeEditor
 - 
- com.inductiveautomation.perspective.designer.styles.editors.OptionDropdownEditor<T>
 
 
 
 
- 
- All Implemented Interfaces:
 Changeable
public class OptionDropdownEditor<T extends java.lang.Enum<T>> extends StyleAttributeEditor
Option editor for attributes who a large number of options, more than 4-5. The options will be displayed in a dropdown component. 
- 
- 
Field Summary
- 
Fields inherited from class com.inductiveautomation.perspective.designer.styles.StyleAttributeEditor
attribute 
- 
Fields inherited from class com.inductiveautomation.ignition.common.util.AbstractChangeable
changeEvent, listenerList 
 - 
 
- 
Constructor Summary
Constructors Constructor Description OptionDropdownEditor(StyleAttribute attribute, java.lang.Class<T> enumClass) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.JComponentgetComponent()java.lang.StringgetValue()protected voidprepareRenderer(com.inductiveautomation.plaf.ComboListCellRenderer renderer, T value, int index, boolean isSelected, boolean cellHasFocus)voidsetValue(java.lang.String value)- 
Methods inherited from class com.inductiveautomation.perspective.designer.styles.StyleAttributeEditor
getAttribute, optionToString 
- 
Methods inherited from class com.inductiveautomation.ignition.common.util.AbstractChangeable
addChangeListener, fireStateChanged, getChangeListeners, removeChangeListener 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
OptionDropdownEditor
public OptionDropdownEditor(StyleAttribute attribute, java.lang.Class<T> enumClass)
 
 - 
 
- 
Method Detail
- 
prepareRenderer
protected void prepareRenderer(com.inductiveautomation.plaf.ComboListCellRenderer renderer, T value, int index, boolean isSelected, boolean cellHasFocus) 
- 
getComponent
public javax.swing.JComponent getComponent()
- Specified by:
 getComponentin classStyleAttributeEditor
 
- 
getValue
public java.lang.String getValue()
- Specified by:
 getValuein classStyleAttributeEditor
 
- 
setValue
public void setValue(java.lang.String value)
- Specified by:
 setValuein classStyleAttributeEditor
 
 - 
 
 -