|
||||||||||
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.EntityList
public class EntityList
Shows list of entities.
Field Summary | |
---|---|
protected String |
_entityName
Entity name is stored here. |
protected Composite |
composite
Here all controls will be placed. |
protected sk.baka.ikslibs.ref.EntityManager |
entityManager
The entity manager. |
protected List<? extends String> |
entityNames
Entity names list we can select an item from. |
protected Combo |
entitySelector
Combo with all entities. |
protected ValidityMessages |
lastMessages
Messages from last data retrieval. |
Fields inherited from class sk.uniba.euromath.editor.widgets.AbstractUserInputWidget |
---|
listeners, msgListeners |
Constructor Summary | |
---|---|
EntityList(Composite parent,
sk.baka.ikslibs.ref.EntityManager entityManager,
List<? extends String> entityNames)
Constructs the instance. |
Method Summary | |
---|---|
protected void |
fillData()
Fills _entityName from the controls, setting
null and an error message if no entity is selected. |
Composite |
getComposite()
Returns composite that is encapsulated in this object. |
String |
getEntityName()
Returns actually selected entity name. |
ValidityMessages |
getMessages()
Checks if data contained in the widget are correct. |
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. |
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 List<? extends String> entityNames
protected final sk.baka.ikslibs.ref.EntityManager entityManager
protected final Combo entitySelector
protected String _entityName
protected ValidityMessages lastMessages
Constructor Detail |
---|
public EntityList(Composite parent, sk.baka.ikslibs.ref.EntityManager entityManager, List<? extends String> entityNames)
parent
- the parent component.entityManager
- an entity manager for the document.entityNames
- the list of entities that can be picked from.Method Detail |
---|
public Composite getComposite()
IUserInputWidget
protected void fillData()
_entityName
from the controls, setting
null
and an error message if no entity is selected. The
combobox must not yet be disposed.
public String getEntityName()
null
if no entity is selected.public ValidityMessages getMessages()
IUserInputWidget
null
if data is correct, or instance of
ValidityMessages
if there is error, warning or info
message.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 |