|
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 | +--com.klg.jclass.table.data.AbstractDataSource | +--com.klg.jclass.table.data.AbstractVectorDataSource
The AbstractVectorDataSource
abstract class implements the
TableDataModel
interface and support for block moves, insertions
and deletions to Vector.
Field Summary |
Fields inherited from class com.klg.jclass.table.data.AbstractDataSource |
listeners |
Constructor Summary | |
AbstractVectorDataSource()
|
Method Summary | |
protected static Vector |
createVector()
Default constructor, constructs a vector with initial capacity of 1 and a growth capacityIncrement of 10. |
protected static Vector |
createVector(int initialCapacity)
Constructs a vector with the specified initial size and a capacityIncrement of 10 |
protected static Vector |
createVector(int initialCapacity,
int capacityIncrement)
Constructs an empty vector with the specified initial capacity and capacity increment. |
protected static Vector |
createVector(Object[] array)
Creates a JCVector using an array of objects. |
protected static Vector |
createVector(Vector vector)
Creates a new Vector instance from a Vector. |
protected static void |
removeElementsAt(Vector vector,
int index,
int length)
Deletes a block starting at the specified index. |
protected static void |
setElementAt(Vector vector,
int index,
Object value)
Sets the element at the specified index to be the specified object. |
protected static void |
strip(Vector vector)
Trims null values from the end. |
Methods inherited from class com.klg.jclass.table.data.AbstractDataSource |
addTableDataListener, dispose, fireColumnChanged, fireColumnLabelChanged, fireColumnsAdded, fireColumnsDeleted, fireColumnsMoved, fireDataReset, fireNumColumnsChanged, fireNumRowsChanged, fireRowChanged, fireRowDeleted, fireRowLabelChanged, fireRowsAdded, fireRowsMoved, fireTableDataEvent, fireValueChanged, hasListeners, removeTableDataListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.klg.jclass.util.JCTableDataModel |
getNumColumns, getNumRows, getTableColumnLabel, getTableDataItem, getTableRowLabel |
Constructor Detail |
public AbstractVectorDataSource()
Method Detail |
protected static Vector createVector()
protected static Vector createVector(int initialCapacity)
initialCapacity
- initial size of vectorprotected static Vector createVector(int initialCapacity, int capacityIncrement)
initialCapacity
- the initial capacity of the vector.capacityIncrement
- the amount by which the capacity is
increased when the vector overflows. If 0, the capacity of the vector is
doubled each time it needs to grow.protected static Vector createVector(Vector vector)
vector
- instance to be recreated.protected static Vector createVector(Object[] array)
array
- array to use as the source for this vectorprotected static final void removeElementsAt(Vector vector, int index, int length)
index
- the element to removelength
- the number of elements to deleteprotected static void setElementAt(Vector vector, int index, Object value)
index
- the specified indexvalue
- the value set to the elementprotected static final void strip(Vector vector)
Vector.trimToSize()
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |