JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table
Interface SeriesModel

All Superinterfaces:
Moveable
All Known Subinterfaces:
ComponentModel
All Known Implementing Classes:
ComponentHandler, JCSeries

public interface SeriesModel
extends Moveable

SeriesModel defines the interface required by classes that can store row/column based properties (for example, editors, renderers, styles). Moving series storage to an interface definition allows better control over sparse or dense property setting.


Method Summary
 Collection getCellRanges(Object value)
          Returns a Collection of JCCellRanges that contain the given object.
 Object getDefault()
          Gets the default member value.
 List getSeriesValues()
          Returns an iterator for an ordered set of series values.
 Collection getUniqueValues()
          Returns a Collection of unique objects used in JCTable.
 Object getValue(int row, int column)
          Returns the value at the specified cell, or within the cell's row or column.
 void setDefault(Object value)
          Creates or sets the default member to the specified value.
 boolean setValue(int start_row, int start_column, int end_row, int end_column, Object value)
          Sets a range of cells to the value.
 boolean setValue(int row, int column, Object value)
          Sets the specified cell to the value.
 boolean setValue(com.klg.jclass.table.JCCellRange cr, Object value)
          Sets the cell range to the value.
 
Methods inherited from interface com.klg.jclass.table.Moveable
moveColumns, moveRows, remapColumns, remapRows, shiftColumn, shiftRow, swapColumns, swapRows
 

Method Detail

getDefault

public Object getDefault()
Gets the default member value. The default value is always equivalent to the (ALL, ALL) cell position.


setDefault

public void setDefault(Object value)
Creates or sets the default member to the specified value. The default value is always equivalent to the (ALL, ALL) cell position.


getValue

public Object getValue(int row,
                       int column)
Returns the value at the specified cell, or within the cell's row or column.

Returns:
null if the series is empty.

setValue

public boolean setValue(int row,
                        int column,
                        Object value)
Sets the specified cell to the value.

Returns:
true if the series was changed after adding the value.

setValue

public boolean setValue(int start_row,
                        int start_column,
                        int end_row,
                        int end_column,
                        Object value)
Sets a range of cells to the value.

Returns:
true if the series was changed after adding the value.

setValue

public boolean setValue(com.klg.jclass.table.JCCellRange cr,
                        Object value)
Sets the cell range to the value.

Returns:
true if the series was changed after adding the value.

getUniqueValues

public Collection getUniqueValues()
Returns a Collection of unique objects used in JCTable.

Returns:
a Collection of unique instances of objects in the series.

getCellRanges

public Collection getCellRanges(Object value)
Returns a Collection of JCCellRanges that contain the given object.

Returns:
a Collection of JCCellRanges objects that as set to the given value.

getSeriesValues

public List getSeriesValues()
Returns an iterator for an ordered set of series values.


Copyright © 2004 Quest Software Inc..
All rights reserved.