|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.uniba.euromath.editor.widgets.AbstractUserInputWidget
sk.uniba.euromath.editor.widgets.MultiWidget
public class MultiWidget
Encapsulates multiple widgets into one.
The widget's model is a List containing models of all child widgets,
in the same order as in the getWidgets() list. You may override this
behaviour to return some composition bean or the like.
| Field Summary | |
|---|---|
protected Composite |
parent
composite where all widgets are placed |
protected List<? extends IUserInputWidget> |
widgets
list of all encapsulated widgets. |
| Fields inherited from class sk.uniba.euromath.editor.widgets.AbstractUserInputWidget |
|---|
listeners, msgListeners |
| Constructor Summary | |
|---|---|
MultiWidget(Composite parent,
List<? extends IUserInputWidget> widgets)
Creates the encapsulator. |
|
| Method Summary | |
|---|---|
Composite |
getComposite()
Returns composite that is encapsulated in this object. |
ValidityMessages |
getMessages()
Checks if data contained in the widget are correct. |
List<Object> |
getState()
Returns the state of this widget. |
Class<?> |
getStateClass()
Returns the class of the state that the widget accepts. |
List<? extends IUserInputWidget> |
getWidgets()
Returns a list of widgets provided to the constructor. |
void |
setState(Object model)
Sets new state for the widget. |
| 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 parent
protected final List<? extends IUserInputWidget> widgets
| Constructor Detail |
|---|
public MultiWidget(Composite parent,
List<? extends IUserInputWidget> widgets)
parent - composite where all widgets are already placedwidgets - list of all encapsulated widgets.| Method Detail |
|---|
public final List<? extends IUserInputWidget> getWidgets()
public final Composite getComposite()
IUserInputWidget
public ValidityMessages getMessages()
IUserInputWidget
null if data is correct, or instance of
ValidityMessages if there is error, warning or info
message.public List<Object> 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 | |||||||||