Class TextEditorPlugIn
java.lang.Object
de.bsvrz.pat.sysbed.dataEditor.plugins.DataEditorPlugIn
de.bsvrz.pat.sysbed.dataEditor.plugins.PlainEditorPlugIn
de.bsvrz.pat.sysbed.dataEditor.plugins.TextEditorPlugIn
- All Implemented Interfaces:
java.lang.Comparable<DataEditorPlugIn>
- Direct Known Subclasses:
ReferenceEditorPlugIn
public class TextEditorPlugIn extends PlainEditorPlugIn
GTM-Editor-Plugin, dass für einfache Textwerte zuständig ist
-
Field Summary
Fields inherited from class de.bsvrz.pat.sysbed.dataEditor.plugins.DataEditorPlugIn
_backgroundUndefinedValue, _connection, _debug, _defaultValueString, _registry, _undefinedString
-
Constructor Summary
Constructors Constructor Description TextEditorPlugIn()
-
Method Summary
Modifier and Type Method Description protected javax.swing.JTextField
createComponent(de.bsvrz.dav.daf.main.Data data)
javax.swing.JTextField
createValueBox(de.bsvrz.dav.daf.main.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.protected static void
textBoxAttributeModified(javax.swing.text.JTextComponent textBox, javax.swing.JLabel suffixBox, de.bsvrz.dav.daf.main.Data data, boolean update)
Überprüft, ob der eingegebene Wert auch ein zulässiger Wert ist.java.lang.String
toString()
Methods inherited from class de.bsvrz.pat.sysbed.dataEditor.plugins.PlainEditorPlugIn
createComponent, supportsData
Methods inherited from class de.bsvrz.pat.sysbed.dataEditor.plugins.DataEditorPlugIn
compareTo, getByteArray, isByteAttributeType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
TextEditorPlugIn
public TextEditorPlugIn()
-
-
Method Details
-
textBoxAttributeModified
protected static void textBoxAttributeModified(javax.swing.text.JTextComponent textBox, javax.swing.JLabel suffixBox, de.bsvrz.dav.daf.main.Data data, boolean update)Überprüft, ob der eingegebene Wert auch ein zulässiger Wert ist.- Parameters:
textBox
- Komponente, wo der neue Wert eingegeben wurdesuffixBox
- das Feld mit dem Suffixdata
- die modifizierten Datenupdate
-
-
createValueBox
public javax.swing.JTextField createValueBox(de.bsvrz.dav.daf.main.Data data, boolean editable, java.util.Collection<javax.swing.JButton> additionalButtons, javax.swing.JLabel suffixBox)Description copied from class:DataEditorPlugIn
Erstellt eine Komponente, die nur den Inhalt dieses Datums erhält (ohne Überschrift und Beschriftung)- Specified by:
createValueBox
in classDataEditorPlugIn
- Parameters:
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)- Returns:
- Komponente für Inhalt
-
createComponent
protected javax.swing.JTextField createComponent(de.bsvrz.dav.daf.main.Data data) -
getPriority
protected int getPriority()Description copied from class: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.- Specified by:
getPriority
in classDataEditorPlugIn
- Returns:
- die Priorität
-
toString
public java.lang.String toString()- Overrides:
toString
in classDataEditorPlugIn
-