public class ComboBoxEditorPlugIn extends PlainEditorPlugIn
GTM-Editor-Plugin, dass für Integer-Attribute (ggf. mit Zustandswerten) zuständig ist und als Editor eine ComboBox darstellt. Für bestimmte Anwendungsfälle ist diese Klasse ableitbar
_backgroundUndefinedValue, _connection, _debug, _defaultValueString, _registry, _undefinedString
Constructor and Description |
---|
ComboBoxEditorPlugIn() |
Modifier and Type | Method and Description |
---|---|
protected void |
addComboItems(Data data,
javax.swing.JComboBox<java.lang.String> comboBox) |
protected void |
comboBoxAttributeModified(javax.swing.JComboBox<java.lang.String> comboBox,
javax.swing.JLabel suffixBox,
Data data,
boolean update) |
javax.swing.JComponent |
createValueBox(Data data,
boolean editable,
java.util.Collection<javax.swing.JButton> additionalButtons,
javax.swing.JLabel suffixBox)
Erstellt eine Komponente, die nur den Inhalt dieses Datums erhält (ohne Überschrift und Beschriftung)
|
protected int |
getPriority()
Gibt die Priorität zurück.
|
boolean |
supportsData(Data data)
Gibt true zurück, wenn dieses PlugIn das übergebene Data-Objekt unterstützt.
|
java.lang.String |
toString() |
createComponent
compareTo, getByteArray, isByteAttributeType
public javax.swing.JComponent createValueBox(Data data, boolean editable, java.util.Collection<javax.swing.JButton> additionalButtons, javax.swing.JLabel suffixBox)
DataEditorPlugIn
Erstellt eine Komponente, die nur den Inhalt dieses Datums erhält (ohne Überschrift und Beschriftung)
createValueBox
in class DataEditorPlugIn
data
- Datumeditable
- Soll die Komponente editierbar sein?additionalButtons
- Liste, in die zusätzliche Buttons eingefügt werdensuffixBox
- Optional: Ein JLabel, dass den Suffix (also z.B. die Einheit) des Datums übergeben bekommt (oder null)protected void addComboItems(Data data, javax.swing.JComboBox<java.lang.String> comboBox)
protected void comboBoxAttributeModified(javax.swing.JComboBox<java.lang.String> comboBox, javax.swing.JLabel suffixBox, Data data, boolean update)
public boolean supportsData(Data data)
DataEditorPlugIn
Gibt true zurück, wenn dieses PlugIn das übergebene Data-Objekt unterstützt. Ein PlugIn, was Array-Daten darstellt wird bspw. keinen Plain-Textwert unterstützen.
supportsData
in class PlainEditorPlugIn
data
- Datumprotected int getPriority()
DataEditorPlugIn
Gibt die Priorität zurück. Wenn mehrere PlugIns ein Datum unterstützen wird standardmäßig das PlugIn mit der höchsten Priorität ausgewählt.
getPriority
in class DataEditorPlugIn
public java.lang.String toString()
toString
in class DataEditorPlugIn