DimDom v0.8.2

org.alltimeflashdreamer.dimdom
Class DimDomNodeImpl.ValueObject

java.lang.Object
  |
  +--org.alltimeflashdreamer.dimdom.DimDomNodeImpl.ValueObject
Enclosing class:
DimDomNodeImpl

class DimDomNodeImpl.ValueObject
extends Object

The ValueObject class is abled to store data in the supported formats of DimDom, i.e. a simple String, a String[], a String[] with selection index, a String[][], a String[][] with selection row and a String[][] with selection index (row/col).
Note: Each instance may store only one of the possibilities listed above!


Method Summary
(package private)  String getNextValue()
          Returns the next value to add to the underlying node or null, if no more values are stored.
(package private)  String[] getNextValueRow()
          Returns the next value row to add to the underlying node or null, if no more values are stored.
(package private)  int getSelectedColumn()
          Returns the index of the selected column, if a selection in a 2D value field is set, else -1.
(package private)  int getSelectedRow()
          Returns the index of the selected row, if a selection in a 1D or 2D value list/field is set, else -1.
(package private)  boolean hasMoreValues()
          Returns whether there are more values to add to the underlying node.
(package private)  boolean hasSelection()
          Returns whether a value was selected or not.
(package private)  boolean isSingleValue()
          Returns whether the current element receives a single value or not.
(package private)  boolean isValueField()
          Returns whether the current element receives a two-dimensional list of values or not.
(package private)  boolean isValueList()
          Returns whether the current element receives a one-dimensional list of values or not.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasSelection

boolean hasSelection()
Returns whether a value was selected or not.
Returns:
is a data entry selected?

isSingleValue

boolean isSingleValue()
Returns whether the current element receives a single value or not.
Returns:
one single value?

isValueList

boolean isValueList()
Returns whether the current element receives a one-dimensional list of values or not.
Returns:
a value list?

isValueField

boolean isValueField()
Returns whether the current element receives a two-dimensional list of values or not.
Returns:
a value field?

getSelectedRow

int getSelectedRow()
Returns the index of the selected row, if a selection in a 1D or 2D value list/field is set, else -1.
Returns:
a valid index or -1

getSelectedColumn

int getSelectedColumn()
Returns the index of the selected column, if a selection in a 2D value field is set, else -1.
Returns:
a valid index or -1

hasMoreValues

boolean hasMoreValues()
Returns whether there are more values to add to the underlying node.
Returns:
are there more values?

getNextValue

String getNextValue()
Returns the next value to add to the underlying node or null, if no more values are stored.
Returns:
next value (as String) or null

getNextValueRow

String[] getNextValueRow()
Returns the next value row to add to the underlying node or null, if no more values are stored.
Returns:
next value list (as String[]) or null

Copyright (c) 2001/02 by Florian Steinsiepe