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.JTextFieldcreateComponent(de.bsvrz.dav.daf.main.Data data)javax.swing.JTextFieldcreateValueBox(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 intgetPriority()Gibt die Priorität zurück.protected static voidtextBoxAttributeModified(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.StringtoString()-
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
-
-
-
-
Method Detail
-
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:DataEditorPlugInErstellt eine Komponente, die nur den Inhalt dieses Datums erhält (ohne Überschrift und Beschriftung)- Specified by:
createValueBoxin 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)
-
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-
-
getPriority
protected int getPriority()
Description copied from class:DataEditorPlugInGibt 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:
getPriorityin classDataEditorPlugIn- Returns:
- die Priorität
-
toString
public java.lang.String toString()
- Overrides:
toStringin classDataEditorPlugIn
-
-