Class CheckBoxEditorPlugIn
java.lang.Object
de.bsvrz.pat.sysbed.dataEditor.plugins.DataEditorPlugIn
de.bsvrz.pat.sysbed.dataEditor.plugins.CheckBoxEditorPlugIn
- All Implemented Interfaces:
java.lang.Comparable<DataEditorPlugIn>
public class CheckBoxEditorPlugIn extends DataEditorPlugIn
Darstellung eines JaNein-Attributs als Checkbox
-
Field Summary
Fields inherited from class de.bsvrz.pat.sysbed.dataEditor.plugins.DataEditorPlugIn
_backgroundUndefinedValue, _connection, _debug, _defaultValueString, _registry, _undefinedString -
Constructor Summary
Constructors Constructor Description CheckBoxEditorPlugIn() -
Method Summary
Modifier and Type Method Description voidcheckBoxModified(de.bsvrz.dav.daf.main.Data data, javax.swing.JCheckBox checkBox, boolean update)javax.swing.BoxcreateComponent(de.bsvrz.dav.daf.main.Data data, boolean editable, java.util.List<javax.swing.JButton> additionalButtons)Diese Methode erstellt aus dem übergebenen Data-Objekt eine Komponente zur Darstellung in der Oberflächejavax.swing.JComponentcreateValueBox(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.booleansupportsData(de.bsvrz.dav.daf.main.Data data)Gibttruezurück, wenn dieses PlugIn das übergebene Data-Objekt unterstützt.Methods inherited from class de.bsvrz.pat.sysbed.dataEditor.plugins.DataEditorPlugIn
compareTo, getByteArray, isByteAttributeType, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
CheckBoxEditorPlugIn
public CheckBoxEditorPlugIn()
-
-
Method Details
-
createComponent
public javax.swing.Box createComponent(de.bsvrz.dav.daf.main.Data data, boolean editable, java.util.List<javax.swing.JButton> additionalButtons)Description copied from class:DataEditorPlugInDiese Methode erstellt aus dem übergebenen Data-Objekt eine Komponente zur Darstellung in der Oberfläche- Specified by:
createComponentin classDataEditorPlugIn- Parameters:
data- Datumeditable- Ist das Data-Objekt editierbar?additionalButtons- Zusätzliche Buttons die im Element eingefügt werden sollen (z.B. bei Array-Elementen die Buttons zum Verdoppeln und Löschen)- Returns:
- Box, die das Element darstellt.
-
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
-
supportsData
public boolean supportsData(de.bsvrz.dav.daf.main.Data data)Description copied from class:DataEditorPlugInGibttruezurück, wenn dieses PlugIn das übergebene Data-Objekt unterstützt. Ein PlugIn, was Array-Daten darstellt wird bspw. keinen Plain-Textwert unterstützen.- Specified by:
supportsDatain classDataEditorPlugIn- Parameters:
data- Datum- Returns:
true, wenn dieses PlugIn das übergebene Data-Objekt unterstützt, sonstfalse
-
createValueBox
public javax.swing.JComponent 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
-
checkBoxModified
public void checkBoxModified(de.bsvrz.dav.daf.main.Data data, javax.swing.JCheckBox checkBox, boolean update)
-