| java.lang.Object jacareto.system.EnvironmentMember jacareto.struct.Structure
Structure | public Structure(Environment env, ReadAccessRecord record)(Code) | | Creates a new record structure of the given record. The record will be parsed to create the
structure.
Parameters: env - the environment Parameters: record - the record |
Structure | public Structure(Environment env, RootElement rootElement, ReadAccessRecord record)(Code) | | Creates a structure with a given record and root element. The structure is taken from the
root element, no record will be parsed.
Parameters: env - the environment Parameters: rootElement - the root element Parameters: record - the record |
addTreeModelListener | public void addTreeModelListener(TreeModelListener listener)(Code) | | Adds a tree model listener.
Parameters: listener - the listener to add |
clear | public void clear()(Code) | | Clears the structure.
|
clearSearchResults | public void clearSearchResults()(Code) | | Clears the search results.
|
fireCompleteStructureChange | protected void fireCompleteStructureChange()(Code) | | Fires an event which indicates that the whole structure has changed.
|
getChild | public Object getChild(Object parent, int index)(Code) | | Returns the child of parent at index index in the parent's child
array.
Parameters: parent - the parent node Parameters: index - the index of the child the child |
getChildCount | public int getChildCount(Object parent)(Code) | | Returns the number of children contained in the element parent
Parameters: parent - the parent node the number of children in parent |
getIndexOfChild | public int getIndexOfChild(Object parent, Object child)(Code) | | Returns the index of the child child in parent parent .
Parameters: parent - the parent node Parameters: child - the child node the index, or -1 if child is not a child ofparent , or if one of the nodes is null |
getRecord | public ReadAccessRecord getRecord()(Code) | | Returns the record this structure is based on.
DOCUMENT ME! |
getRootElement | public RootElement getRootElement()(Code) | | Returns the root element of the structure.
DOCUMENT ME! |
getTreePath | public TreePath getTreePath(TreeNode node)(Code) | | Returns the tree path to the given node.
Parameters: node - the node the tree path |
isLeaf | public boolean isLeaf(Object node)(Code) | | Returns whether or not this element is a leaf.
Parameters: node - the node to test DOCUMENT ME! |
rebuild | public void rebuild(RecordTokenizer tokenizer)(Code) | | Rebuilds the structure.
Parameters: tokenizer - the record's tokenizer |
recordHasChanged | public void recordHasChanged(RecordChangeEvent event)(Code) | | Called when a record change has occured.
Parameters: event - RecordChangeEvent |
removeTreeModelListener | public void removeTreeModelListener(TreeModelListener listener)(Code) | | Removes a tree model listener.
Parameters: listener - the listener to remove |
search | public int search(RE re, String searchString)(Code) | | Searches for structure (regular expression match or string comparison). If the one of its
children matches the regular expression or contains the given string, true is
return. In addition, all children which are hits are marked. Either the regular expression
is used or the searchstring. One of the two parameters should be null
Parameters: re - the regular expression Parameters: searchString - the searchString the number of hits in the structure |
setRoot | public void setRoot(RootElement root)(Code) | | Sets the rootElement.
Parameters: root - DOCUMENT ME! |
structureElementChanged | public void structureElementChanged(StructureElementEvent event)(Code) | | Called when a structure element event has occured
Parameters: event - the dispatched event |
valueForPathChanged | public void valueForPathChanged(TreePath path, Object newValue)(Code) | | Messaged when the user has altered the value for the item identified by path to
newValue .
Parameters: path - DOCUMENT ME! Parameters: newValue - DOCUMENT ME! |
|
|