|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBrowseInputOption
edu.bonn.xulu.gui.DataPoolInputOption
edu.bonn.xulu.gui.ObjectOrModelInputOption
public class ObjectOrModelInputOption
Diese Klasse stellt eine Eingabe-Option fuer einen MultipleOptionPane
-Dialog
dar, in der ein Daten-Objekt aus dem Xulu-Datenpool
oder ein Modell aus dem Xulu-Modell-Manager
eingegeben werden kann. Hierzu besteht fuer den Anwender die Moeglichkeit,
ueber einen Browse-Dialog aus allen vorhandenen Datenpool-Objekten -und
Modellen auszuwaehlen.
Zur Zeit ist die manuelle Eingabe eines Objekts in das Textfeld der Eingabe-Option
gesperrt (es kann nur gebrowsed werden). Die Methode convertFromString(String)
muss noch implementiert werden.
Field Summary | |
---|---|
protected XuluModellingPlatform |
appl
Speichert die Xulu-Applikation. |
Fields inherited from class edu.bonn.xulu.gui.DataPoolInputOption |
---|
dataPool |
Constructor Summary | |
---|---|
ObjectOrModelInputOption(XuluModellingPlatform appl,
String label,
boolean inputNeeded,
Object defValue)
Erzeugt einen neu Input-Option |
Method Summary | |
---|---|
Object |
convertFromString(String objectStr)
Noch nicht implementiert Parst eine textuellen Angabe und liefert ein entsprechendes Objekt aus dem Datenpool oder Modell-Manager. |
String |
convertToString(Object object)
Liefert die textuelle Bezeichnung zu einem Datenpool-Objekt, bzw. |
Object |
performBrowse(Object defValue)
Fuehrt die Browse-Aktion aus, wenn der Anwender auf den entsprechenden Button der Eingabe-Option klickt. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected XuluModellingPlatform appl
Constructor Detail |
---|
public ObjectOrModelInputOption(XuluModellingPlatform appl, String label, boolean inputNeeded, Object defValue)
appl
- Xulu-Applikation die die Datenbasis (Xulu-Objekte und Modelle) bereitstelltlabel
- Beschreibung der Eingabe-OptioninputNeeded
- bestimmt, ob eine Eingabe erforderlich (oder optional) istdefValue
- Standardwert fuer die Eingabe-OptionMethod Detail |
---|
public Object performBrowse(Object defValue)
performBrowse
in class DataPoolInputOption
defValue
- Standard-Auswahl fuer den Browse-Dialog (wird nicht genutzt!)
null
wenn der Browse-Dialog abgebrochen wurdeTreeSelectionDialog
public Object convertFromString(String objectStr)
convertFromString
in class DataPoolInputOption
objectStr
- String, der das Datenpool-Objekt (bzw. Modell) identifiziert.
UnsupportedOperationException
- bei jedem Aufrufpublic String convertToString(Object object)
convertToString
in class DataPoolInputOption
object
- Datenpool-Objekt oder Xulu-Modell
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |