public interface GridBrowserModel extends AttributeSupport
| Modifier and Type | Method and Description |
|---|---|
com.technia.tvc.gridbrowser.def.GridBrowserDef |
getDef()
Returns the
definition that controls the behavior
of this instance. |
com.technia.tvc.gridbrowser.model.GridDimension |
getDimension()
Returns the
dimension for this grid. |
Element |
getElementFor(TableData row,
TableData col) |
com.technia.tvc.gridbrowser.model.GridPosition |
getElementPosition(Element element)
Returns the position of an element within the grid.
|
java.util.Iterator<Element> |
getElements()
Returns the
elements, from left->right, top->bottom. |
java.util.Iterator<Element> |
getElementsAtSameIntersection(Element e)
Returns the elements, which shares the same intersection point.
|
java.util.Iterator<Element> |
getElementsWithSameConnectionId(Element e)
Returns all the elements, which has the same connection id as the
specified element
|
Element |
getElementWithId(long id)
Returns the
element that has the specified id. |
GridAxes |
getGridAxes()
Returns the
GridAxes instance, which holds the data on the row
and col axis. |
com.technia.tvc.gridbrowser.model.Intersection |
getIntersection(Element e) |
void |
invalidate()
This method can be used to invalidate the grid and force a revalidation
by calling
validate(Environment). |
boolean |
isValid()
This method returns true if the grid is valid.
|
void |
validate(Environment env)
This method should be called to validate the grid when the isValid()
returns false.
|
getAttribute, getAttributeNames, removeAttribute, setAttributecom.technia.tvc.gridbrowser.model.GridDimension getDimension()
dimension for this grid.com.technia.tvc.gridbrowser.def.GridBrowserDef getDef()
definition that controls the behavior
of this instance.java.util.Iterator<Element> getElementsAtSameIntersection(Element e)
e - The elementjava.util.Iterator<Element> getElementsWithSameConnectionId(Element e)
e - The elementElement getElementWithId(long id)
com.technia.tvc.gridbrowser.model.Intersection getIntersection(Element e)
java.util.Iterator<Element> getElements()
elements, from left->right, top->bottom.void validate(Environment env) throws TVCException
TVCExceptionboolean isValid()
throws TVCException
TVCExceptionvoid invalidate()
validate(Environment).GridAxes getGridAxes()
GridAxes instance, which holds the data on the row
and col axis.com.technia.tvc.gridbrowser.model.GridPosition getElementPosition(Element element)
element - The elementpositionCopyright ? Technia AB. All Rights Reserved.