|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthok.model.ConstraintModel
public class ConstraintModel
The ConstraintModel is the model of the TableViewer of the WizardView
. It contains
the rows (ConstraintRow) of the table and the listeners that wish to be
informed of changes in the model.
Field Summary | |
---|---|
static java.lang.String |
INIT_VALUE_CONCEPT
The default value of the concept constraint part of a ConstraintRow. |
static java.lang.String |
INIT_VALUE_PREDICATE
The default value of the predicate constraint part of a ConstraintRow. |
Constructor Summary | |
---|---|
ConstraintModel()
|
Method Summary | |
---|---|
void |
addChangeListener(IConstraintViewer viewer)
Adds a listener to the model. |
void |
addConstraint()
Adds a new ConstraintRow to the collection of constraints. |
void |
constraintChanged(ConstraintRow constraint)
Informs the listener of a change of the model. |
java.util.Vector<ConstraintRow> |
getConstraints()
Returns the collection of constraints |
boolean |
isEmpty()
Checks if the model contains elements. |
void |
removeChangeListener(IConstraintViewer viewer)
Removes a listener from the model. |
void |
removeConstraint(ConstraintRow constraint)
Removes a ConstraintRow from the collection of constraints. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String INIT_VALUE_CONCEPT
public static final java.lang.String INIT_VALUE_PREDICATE
Constructor Detail |
---|
public ConstraintModel()
Method Detail |
---|
public java.util.Vector<ConstraintRow> getConstraints()
public void addConstraint()
public void removeConstraint(ConstraintRow constraint)
constraint
- the SparqlConstraintrow to remove.public void constraintChanged(ConstraintRow constraint)
constraint
- the ConstraintRow that has changed.public void removeChangeListener(IConstraintViewer viewer)
viewer
- the listener to remove.public void addChangeListener(IConstraintViewer viewer)
viewer
- the listner to add.public boolean isEmpty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |