Package org.basex.gui.view
Class ViewData
java.lang.Object
org.basex.gui.view.ViewData
This class assembles some database access methods which are used
in the same way by different visualizations. If more specific database
access is needed, it is advisable to directly work on the
Data
class.- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanleaf(GUIOptions opts, Data data, int pre) Checks if the specified node is a text node.static byte[]namedText(GUIOptions opts, Data data, int pre) Returns the name of the specified node or a standard text representation.static intReturns the name id of the specified node.static intReturns the parent for the specified node.static byte[]Returns path for the specified pre value.static intReturns the size for the specified node.static intReturns the size id of the specified node.static byte[]Returns textual contents for the specified node.
-
Method Details
-
leaf
Checks if the specified node is a text node.- Parameters:
opts- gui optionsdata- data referencepre- pre value- Returns:
- result of check
-
path
Returns path for the specified pre value.- Parameters:
data- data referencepre- pre value- Returns:
- current path
-
text
Returns textual contents for the specified node.- Parameters:
data- data referencepre- pre value- Returns:
- text
-
namedText
Returns the name of the specified node or a standard text representation.- Parameters:
opts- gui optionsdata- data referencepre- pre value- Returns:
- name
-
nameID
Returns the name id of the specified node.- Parameters:
data- data reference- Returns:
- name id
-
sizeID
Returns the size id of the specified node.- Parameters:
data- data reference- Returns:
- name id
-
parent
Returns the parent for the specified node.- Parameters:
data- data referencepre- child node- Returns:
- parent node
-
size
Returns the size for the specified node.- Parameters:
data- data referencepre- child node- Returns:
- parent node
-