|
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.util.formulae.ExpressionList | +--com.klg.jclass.util.formulae.TableExpressionList
A TableExpressionList represents an examination of a rectangular range of cells stored in a JCTableDataModel
Field Summary | |
protected com.klg.jclass.util.formulae.Expression |
endColumn
The end column of this expression's range of cells in the data model |
protected com.klg.jclass.util.formulae.Expression |
endRow
The end row of this expression's range of cells in the data model |
protected Rectangle |
range
A Rectangle describing the range of cells, assuming the expressions can be computed to a final result |
protected com.klg.jclass.util.formulae.Expression |
startColumn
The start column of this expression's range of cells in the data model |
protected com.klg.jclass.util.formulae.Expression |
startRow
The start row of this expression's range of cells in the data model |
protected com.klg.jclass.util.JCTableDataModel |
tableData
The table data from which the data is to be read |
Constructor Summary | |
TableExpressionList(com.klg.jclass.util.JCTableDataModel tdm,
com.klg.jclass.util.formulae.Expression firstRow,
com.klg.jclass.util.formulae.Expression lastRow,
com.klg.jclass.util.formulae.Expression firstColumn,
com.klg.jclass.util.formulae.Expression lastColumn)
Create a table expression from a table data model and the row/column locations of a range of cells |
|
TableExpressionList(com.klg.jclass.util.JCTableDataModel tdm,
Rectangle range)
Create a table expression from a table data model and a range of cells |
Method Summary | |
Object |
clone()
Return an Expression which is a clone of this TableExpressionList (NOTE: The table values are not cloned and parametrized indices are computed) |
boolean |
contains(Object obj)
Determine if the List contain the specified element |
protected com.klg.jclass.util.formulae.Expression |
copy(boolean fixLocation)
Create a copy of this TableExpressionList (not necessarily a clone, since we may choose to use hard co-ordinates rather than parametric ones) |
boolean |
equals(Object obj)
Compare the given object and this List, given that equality implies the Lists contain the same entries in the same order. |
Object |
get(int index)
Retrieve the element at a given position in this List |
com.klg.jclass.util.formulae.Expression |
getEndColumn()
Get the last column of the range |
com.klg.jclass.util.formulae.Expression |
getEndRow()
Get the last row of the range |
Rectangle |
getRange()
Return the range of the table data being used by this expression |
com.klg.jclass.util.formulae.Expression |
getStartColumn()
Get the first column of the range |
com.klg.jclass.util.formulae.Expression |
getStartRow()
Get the first row of the range |
int |
hashCode()
Return a hash code derived from this List |
int |
indexOf(Object obj)
Find the position (first occurence) of a given object in the List. |
Iterator |
iterator()
Get an iterator over the elements in this List |
int |
lastIndexOf(Object o)
Find the position of the last occurence of a given object in the List. |
ListIterator |
listIterator(int index)
Get a ListIterator over the elements of the List beginning at the the given position in the list |
void |
setEndColumn(com.klg.jclass.util.formulae.Expression column)
Set the last column of the range |
void |
setEndRow(com.klg.jclass.util.formulae.Expression row)
Set the last row of the range |
void |
setRange(Rectangle newRange)
Set a range of cells to be accessed by this expression |
void |
setStartColumn(com.klg.jclass.util.formulae.Expression column)
Set the first column of the range |
void |
setStartRow(com.klg.jclass.util.formulae.Expression row)
Set the first row of the range |
int |
size()
Return the number of elements in this List |
List |
subList(int startIndex,
int endIndex)
Get a List which is a subsequence of this List (the ordering is the same) |
Object[] |
toArray(Object[] inArray)
Fill a given array with a view of all the elements in this List NOTE: The Iterator's ordering is used |
Methods inherited from class com.klg.jclass.util.formulae.ExpressionList |
add, add, addAll, addAll, clear, containsAll, evaluate, isEmpty, listIterator, remove, remove, removeAll, retainAll, set, toArray |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected com.klg.jclass.util.JCTableDataModel tableData
protected com.klg.jclass.util.formulae.Expression startRow
protected com.klg.jclass.util.formulae.Expression endRow
protected com.klg.jclass.util.formulae.Expression startColumn
protected com.klg.jclass.util.formulae.Expression endColumn
protected Rectangle range
Constructor Detail |
public TableExpressionList(com.klg.jclass.util.JCTableDataModel tdm, Rectangle range)
range
- The (rectangular or linear) range of cellspublic TableExpressionList(com.klg.jclass.util.JCTableDataModel tdm, com.klg.jclass.util.formulae.Expression firstRow, com.klg.jclass.util.formulae.Expression lastRow, com.klg.jclass.util.formulae.Expression firstColumn, com.klg.jclass.util.formulae.Expression lastColumn)
firstRow
- the first row to be used in the rangelastRow
- the last row to be used in the rangefirstColumn
- the first column to be used in the rangelastColumn
- the last column to be used in the rangeMethod Detail |
public Rectangle getRange()
public void setRange(Rectangle newRange)
newRange
- A range of cells in the table datapublic com.klg.jclass.util.formulae.Expression getStartColumn()
public void setStartColumn(com.klg.jclass.util.formulae.Expression column)
column
- The first column in the rangepublic com.klg.jclass.util.formulae.Expression getEndColumn()
public void setEndColumn(com.klg.jclass.util.formulae.Expression column)
column
- The last column in the rangepublic com.klg.jclass.util.formulae.Expression getStartRow()
public void setStartRow(com.klg.jclass.util.formulae.Expression row)
row
- The first row in the rangepublic com.klg.jclass.util.formulae.Expression getEndRow()
public void setEndRow(com.klg.jclass.util.formulae.Expression row)
row
- The last row in the rangepublic Object clone()
clone
in interface Expression
clone
in class ExpressionList
public boolean contains(Object obj)
contains
in interface List
contains
in class ExpressionList
obj
- The element to be searched for in this List
public boolean equals(Object obj)
equals
in interface List
equals
in class ExpressionList
obj
- the object whose equality with this List is tested
public Object get(int index)
get
in interface List
get
in class ExpressionList
index
- The desired element's position
public int hashCode()
hashCode
in interface List
hashCode
in class Object
public int indexOf(Object obj)
indexOf
in interface List
indexOf
in class ExpressionList
obj
- The object to be found in the List
public Iterator iterator()
iterator
in interface List
iterator
in class ExpressionList
public int lastIndexOf(Object o)
lastIndexOf
in interface List
lastIndexOf
in class ExpressionList
public ListIterator listIterator(int index)
listIterator
in interface List
listIterator
in class ExpressionList
index
- The position at which to initialise the ListIterator
public int size()
size
in interface List
size
in class ExpressionList
public List subList(int startIndex, int endIndex)
subList
in interface List
subList
in class ExpressionList
startIndex
- The first element of the sublistendIndex
- The element after the last element of the sublist
public Object[] toArray(Object[] inArray)
toArray
in interface List
toArray
in class ExpressionList
inArray
- The array in which to store the elements
protected com.klg.jclass.util.formulae.Expression copy(boolean fixLocation)
fixLocation
- Indicates if the row and column positions are to be
evaluated before being set
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |