|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--java.util.Vector | +--com.klg.jclass.table.JCSeries
SeriesModel
defines the interface required by classes that can
store row/column based properties (for example: editors, renderers, styles).
Field Summary | |
protected int |
last_index
The index of the last found cell. |
Fields inherited from class java.util.Vector |
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
JCSeries()
Creates an empty series with no default. |
|
JCSeries(Object value)
Create a new series with the specified default. |
Method Summary | |
Collection |
getCellRanges(Object value)
Returns a Vector 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 Vector 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 |
moveColumns(int start_column,
int num_columns,
int destination)
Adjusts the series after moving columns. |
void |
moveRows(int start_row,
int num_rows,
int destination)
Adjusts the series after moving rows. |
void |
remapColumns(int[] new_positions)
Reorders columns after the column mapping changes. |
void |
remapRows(int[] new_positions)
Reorders rows after the row mapping changes. |
protected void |
remove(int row,
int column)
Removes the item if the cell was found. |
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. |
void |
shiftColumn(int start_column,
int num_columns,
int direction)
Adjusts the series after adding or deleting columns. |
void |
shiftRow(int start_row,
int num_rows,
int direction)
Adjusts the series after adding or deleting rows. |
void |
swapColumns(int column1,
int column2)
Adjusts the series based on two columns swapping position. |
void |
swapRows(int row1,
int row2)
Adjusts the series based on two rows swapping position. |
Methods inherited from class java.util.Vector |
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
Methods inherited from class java.util.AbstractList |
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
iterator, listIterator, listIterator |
Field Detail |
protected int last_index
Constructor Detail |
public JCSeries()
public JCSeries(Object value)
value
- Method Detail |
public Object getDefault()
getDefault
in interface SeriesModel
public void setDefault(Object value)
setDefault
in interface SeriesModel
value
- public Collection getUniqueValues()
JCTable
.
getUniqueValues
in interface SeriesModel
JCTable
public Collection getCellRanges(Object value)
JCCellRanges
that contain the given object.
getCellRanges
in interface SeriesModel
value
-
JCCellRanges
public List getSeriesValues()
getSeriesValues
in interface SeriesModel
public Object getValue(int row, int column)
getValue
in interface SeriesModel
column
- row
-
public boolean setValue(int row, int column, Object value)
setValue
in interface SeriesModel
column
- row
- value
-
true
if the series was changed after adding the valuepublic boolean setValue(int start_row, int start_column, int end_row, int end_column, Object value)
setValue
in interface SeriesModel
end_column
- end_row
- start_column
- start_row
- value
-
true
if the series was changed after adding the valuepublic boolean setValue(com.klg.jclass.table.JCCellRange cr, Object value)
setValue
in interface SeriesModel
cr
- value
-
true
if the series was changed after adding the valueprotected void remove(int row, int column)
column
- row
- public void moveColumns(int start_column, int num_columns, int destination)
moveColumns
in interface Moveable
destination
- num_columns
- start_column
- public void moveRows(int start_row, int num_rows, int destination)
moveRows
in interface Moveable
destination
- num_rows
- start_row
- public void remapColumns(int[] new_positions)
remapColumns
in interface Moveable
new_positions
- public void remapRows(int[] new_positions)
remapRows
in interface Moveable
new_positions
- public void shiftColumn(int start_column, int num_columns, int direction)
shiftColumn
in interface Moveable
start_column
- the start positionnum_columns
- the number of columnsdirection
- use +1
for insert and -1
for deletepublic void shiftRow(int start_row, int num_rows, int direction)
shiftRow
in interface Moveable
start_row
- the start positionnum_rows
- the number of rowsdirection
- use +1
for insert and -1
for deletepublic void swapColumns(int column1, int column2)
swapColumns
in interface Moveable
column1
- column2
- public void swapRows(int row1, int row2)
swapRows
in interface Moveable
row1
- row2
-
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |