com.jstatcom.ts
Class Selection

java.lang.Object
  extended by com.jstatcom.ts.Selection

public final class Selection
extends java.lang.Object

Represents a selection of the the TSSel component that is XML serializable.

Author:
Markus Kraetzig

Field Summary
static javolution.xml.XmlFormat<Selection> Selection_XML
          XML format field for (de)serialization.
 
Constructor Summary
Selection()
           
 
Method Summary
 JSCDRange getEnclosingRange()
          Gets the enclosing date range object.
 JSCNArray getSelectedIndices()
          Gets the array with the selected indices in the correct order.
 JSCDRange getSelectedRange()
          Gets the selected date range object.
 void setEnclosingRange(JSCDRange enclosingRange)
          Sets the enclosing date range.
 void setSelectedIndices(JSCNArray selectedIndices)
          Sets the array with the selected indices.
 void setSelectedRange(JSCDRange selectedRange)
          Sets the selected date range.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Selection_XML

public static final javolution.xml.XmlFormat<Selection> Selection_XML
XML format field for (de)serialization.

Constructor Detail

Selection

public Selection()
Method Detail

getSelectedIndices

public JSCNArray getSelectedIndices()
Gets the array with the selected indices in the correct order.

Returns:
array with selected indices

setSelectedIndices

public void setSelectedIndices(JSCNArray selectedIndices)
Sets the array with the selected indices.

Parameters:
selectedIndices - array with selected indices
Throws:
java.lang.IllegalArgumentException - if (selectedIndices == null)

getSelectedRange

public JSCDRange getSelectedRange()
Gets the selected date range object.

Returns:
the selected range

setSelectedRange

public void setSelectedRange(JSCDRange selectedRange)
Sets the selected date range.

Parameters:
selectedRange - date range
Throws:
java.lang.IllegalArgumentException - if (selectedRange == null)

getEnclosingRange

public JSCDRange getEnclosingRange()
Gets the enclosing date range object.

Returns:
the enclosing range

setEnclosingRange

public void setEnclosingRange(JSCDRange enclosingRange)
Sets the enclosing date range.

Parameters:
enclosingRange - date range
Throws:
java.lang.IllegalArgumentException - if (enclosingRange == null)