|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.editor.widgets.AbstractUserInputWidget sk.uniba.euromath.editor.widgets.NamespaceSelector
public class NamespaceSelector
Allows user to select a namespace from list of known namespaces (defined in the config file).
Field Summary | |
---|---|
protected Composite |
composite
All controls are placed here. |
protected ValidityMessages |
lastMessages
Last messages. |
protected Label |
namespaceDesc
Description of the namespace. |
protected Combo |
namespaceSelector
The namespace selector combobox. |
Fields inherited from class sk.uniba.euromath.editor.widgets.AbstractUserInputWidget |
---|
listeners, msgListeners |
Constructor Summary | |
---|---|
NamespaceSelector(Composite parent)
Constructs new instance of the widget. |
Method Summary | |
---|---|
protected void |
checkErrors()
Check data for errors. |
String |
getChosenNamespace()
Returns chosen namespace. |
String |
getChosenNamespaceInternal()
Returns chosen namespace. |
Composite |
getComposite()
Returns composite that is encapsulated in this object. |
ValidityMessages |
getMessages()
Checks if data contained in the widget are correct. |
protected sk.uniba.euromath.config.bind.NamespaceType |
getSelected()
Returns selected namespace. |
String |
getState()
Returns the state of this widget. |
Class<?> |
getStateClass()
Returns the class of the state that the widget accepts. |
void |
setState(Object model)
Sets new state for the widget. |
protected void |
updateDisplay()
Updates displayed information. |
Methods inherited from class sk.uniba.euromath.editor.widgets.AbstractUserInputWidget |
---|
addMessageListener, addModifyListener, allowModifyEvent, fireDataModified, removeMessageListener, removeModifyListener, suppressModifyEvent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Composite composite
protected final Combo namespaceSelector
protected final Label namespaceDesc
protected ValidityMessages lastMessages
Constructor Detail |
---|
public NamespaceSelector(Composite parent)
parent
- parent composite, where to place widget.Method Detail |
---|
protected void updateDisplay()
protected sk.uniba.euromath.config.bind.NamespaceType getSelected()
null
.public Composite getComposite()
IUserInputWidget
public String getChosenNamespace()
null
if no namespace is
selected.public String getChosenNamespaceInternal()
public ValidityMessages getMessages()
IUserInputWidget
null
if data is correct, or instance of
ValidityMessages
if there is error, warning or info
message.protected void checkErrors()
public String getState()
IUserInputWidget
public Class<?> getStateClass()
IUserInputWidget
null
.public void setState(Object model)
IUserInputWidget
model
- the model to set. You may use the construct
setModel(getModel())
to reflect changes made in the model.
Please note that nearly all widgets rejects null
value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |