S
- the entity selector typeF
- the field typepublic abstract class Field<F extends AbstractParameter,S extends EntitySelector<F>> extends Observable
Constructor and Description |
---|
Field(F definition,
SchemaSpaceID ssid,
org.eclipse.swt.widgets.Composite parent,
Set<EntityDefinition> candidates,
Cell initialCell)
Create a field
|
Modifier and Type | Method and Description |
---|---|
protected void |
addSelector(S selector)
Add a selector
|
protected abstract S |
createEntitySelector(SchemaSpaceID ssid,
F field,
org.eclipse.swt.widgets.Composite parent)
Create an entity selector
|
void |
fillEntities(com.google.common.collect.ListMultimap<String,Entity> target)
Fill the given map with the field's entities
|
SchemaSpaceID |
getSchemaSpace()
Get the schema space
|
protected List<S> |
getSelectors()
Get the selectors associated with the field
|
boolean |
isValid()
Determines if the field is valid in its current configuration
|
protected void |
removeSelector(S selector)
Remove a selector
|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
public Field(F definition, SchemaSpaceID ssid, org.eclipse.swt.widgets.Composite parent, Set<EntityDefinition> candidates, Cell initialCell)
definition
- the field definitionssid
- the schema spaceparent
- the parent compositecandidates
- the entity candidatesinitialCell
- the initial cellprotected abstract S createEntitySelector(SchemaSpaceID ssid, F field, org.eclipse.swt.widgets.Composite parent)
ssid
- the schema spacefield
- the field definitionparent
- the parent compositeprotected List<S> getSelectors()
protected void addSelector(S selector)
selector
- the entity selector to addprotected void removeSelector(S selector)
selector
- the entity selector to removepublic SchemaSpaceID getSchemaSpace()
public boolean isValid()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a