|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.report.lens.AbstractTableLens
public abstract class AbstractTableLens
The AbstractTableLens class provides default implementations for most of the methods defined in the TableLens interface. It allows a TableLens object to be created without the need to implement every methods. The AbstractTableLens has three abstract methods that subclass must implement: getRowCount(), getColCount(), and getObject().
The default implementation of AbstractTableLens provides a very plain look of the tabular data, without use of any special color, font, or borders. The user of the AbstractTableLens may choose to leave the default setting of the AbstractTableLens, and combine it with a table style class. In this case the new class acts only as the data provider, while the style class provides the visual styling of the table. Alternatively, the user of AbstractTableLens may selectively overriden the methods to define the look and feel directly in the class definition.
| Field Summary | |
|---|---|
protected TableDataDescriptor |
descriptor
|
protected boolean |
isLeftAlign
|
| Fields inherited from interface inetsoft.report.TableLens |
|---|
BREAK_BORDER, NULL |
| Fields inherited from interface inetsoft.uql.XTable |
|---|
EOT |
| Constructor Summary | |
|---|---|
AbstractTableLens()
Constructor. |
|
| Method Summary | |
|---|---|
void |
addChangeListener(TableChangeListener listener)
Add table change listener to the filtered table. |
Object |
clone()
Clone the AbstractTableLens. |
boolean |
containsDrill()
Check if contains drill. |
boolean |
containsFormat()
Check if contains format. |
void |
dispose()
Dispose the table to clear up temporary resources. |
int |
findColumnByIdentifier(String identifier)
Find the column by identifier. |
protected void |
fireChangeEvent()
Fire change event when filtered table changed. |
int |
getAlignment(int r,
int c)
Return the per cell alignment. |
Color |
getBackground(int r,
int c)
Return the per cell background color. |
boolean |
getBoolean(int r,
int c)
Get the boolean value in one row. |
byte |
getByte(int r,
int c)
Get the byte value in one row. |
int |
getColBorder(int r,
int c)
Return the style for right border of the specified row. |
Color |
getColBorderColor(int r,
int c)
Return the color for drawing the column border lines. |
Class |
getColType(int col)
Get the current column content type. |
String |
getColumnIdentifier(int col)
Get the column identifier of a column. |
int |
getColWidth(int col)
Get the current column width setting. |
Format |
getDefaultFormat(int row,
int col)
Return the per cell format. |
TableDataDescriptor |
getDescriptor()
Get internal table data descriptor which contains table structural infos. |
double |
getDouble(int r,
int c)
Get the double value in one row. |
float |
getFloat(int r,
int c)
Get the float value in one row. |
Font |
getFont(int r,
int c)
Return the per cell font. |
Color |
getForeground(int r,
int c)
Return the per cell foreground color. |
int |
getHeaderColCount()
Return the number of columns on the left of the table to be treated as header columns. |
int |
getHeaderRowCount()
Return the number of rows on the top of the table to be treated as header rows. |
Insets |
getInsets(int r,
int c)
Return the cell gap space. |
int |
getInt(int r,
int c)
Get the int value in one row. |
long |
getLong(int r,
int c)
Get the long value in one row. |
int |
getRowBorder(int r,
int c)
Return the style for bottom border of the specified cell. |
Color |
getRowBorderColor(int r,
int c)
Return the color for drawing the row border lines. |
int |
getRowHeight(int row)
Get the current row heights setting. |
short |
getShort(int r,
int c)
Get the short value in one row. |
Dimension |
getSpan(int r,
int c)
Return the spanning setting for the cell. |
int |
getTrailerColCount()
Return the number of columns on the right of the table to be treated as tail columns. |
int |
getTrailerRowCount()
Return the number of rows on the bottom of the table to be treated as tail rows. |
XDrillInfo |
getXDrillInfo(int row,
int col)
Get drill info with the specified row and col. |
boolean |
isLineWrap(int r,
int c)
Return the per cell line wrap mode. |
boolean |
isNull(int r,
int c)
Check if the value at one cell is null. |
boolean |
isPrimitive(int col)
Check if is primitive. |
boolean |
moreRows(int row)
Check if there are more rows. |
void |
removeChangeListener(TableChangeListener listener)
Remove table change listener from the filtered table. |
void |
setColumnIdentifier(int col,
String identifier)
Set the column identifier of a column. |
void |
setLeftAlign(boolean isLeft)
Set is left align true or false. |
void |
setLocal(Locale loc)
Set the locale. |
void |
setObject(int r,
int c,
Object v)
Set the cell value. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface inetsoft.uql.XTable |
|---|
getColCount, getObject, getRowCount |
| Field Detail |
|---|
protected boolean isLeftAlign
protected TableDataDescriptor descriptor
| Constructor Detail |
|---|
public AbstractTableLens()
| Method Detail |
|---|
public void setObject(int r,
int c,
Object v)
setObject in interface XTabler - row number.c - column number.v - cell value.public TableDataDescriptor getDescriptor()
getDescriptor in interface TableLensgetDescriptor in interface XTable
public final XDrillInfo getXDrillInfo(int row,
int col)
getXDrillInfo in interface TableLensrow - row number.col - column number.
public void addChangeListener(TableChangeListener listener)
addChangeListener in interface TableLenslistener - the specified TableChangeListenerpublic void removeChangeListener(TableChangeListener listener)
removeChangeListener in interface TableLenslistener - the specified TableChangeListener to be removedpublic Object clone()
clone in class Objectprotected void fireChangeEvent()
public boolean moreRows(int row)
moreRows in interface XTablerow - row number.
public int getHeaderRowCount()
getHeaderRowCount in interface XTablepublic int getHeaderColCount()
getHeaderColCount in interface XTablepublic int getTrailerRowCount()
getTrailerRowCount in interface XTablepublic int getTrailerColCount()
getTrailerColCount in interface XTablepublic int getRowHeight(int row)
getRowHeight in interface TableLenspublic int getColWidth(int col)
getColWidth in interface TableLenspublic Class getColType(int col)
getColType in interface XTablecol - column number.
public Color getRowBorderColor(int r,
int c)
getRowBorderColor in interface TableLensr - row number.c - column number.
public Color getColBorderColor(int r,
int c)
getColBorderColor in interface TableLensr - row number.c - column number.
public int getRowBorder(int r,
int c)
getRowBorder in interface TableLensr - row number.c - column number.
public int getColBorder(int r,
int c)
getColBorder in interface TableLensr - row number.c - column number.
public Insets getInsets(int r,
int c)
getInsets in interface TableLensr - row number.c - column number.
public Dimension getSpan(int r,
int c)
getSpan in interface TableLensr - row number.c - column number.
public int getAlignment(int r,
int c)
getAlignment in interface TableLensr - row number.c - column number.
public Font getFont(int r,
int c)
getFont in interface TableLensr - row number.c - column number.
public boolean isLineWrap(int r,
int c)
isLineWrap in interface TableLensr - row number.c - column number.
public Color getForeground(int r,
int c)
getForeground in interface TableLensr - row number.c - column number.
public Color getBackground(int r,
int c)
getBackground in interface TableLensr - row number.c - column number.
public final Format getDefaultFormat(int row,
int col)
getDefaultFormat in interface TableLensrow - row number.col - column number.
public void setLocal(Locale loc)
public final boolean containsFormat()
containsFormat in interface TableLenspublic final boolean containsDrill()
containsDrill in interface TableLenspublic void dispose()
dispose in interface XTablepublic String getColumnIdentifier(int col)
getColumnIdentifier in interface XTablecol - the specified column index.
public void setColumnIdentifier(int col,
String identifier)
setColumnIdentifier in interface XTablecol - the specified column index.identifier - the column indentifier of the column. The identifier
might be different from the column name, for it may contain more
locating information than the column name.public final int findColumnByIdentifier(String identifier)
public boolean isNull(int r,
int c)
isNull in interface XTabler - the specified row index.c - column number.
public boolean isPrimitive(int col)
isPrimitive in interface XTable
public double getDouble(int r,
int c)
getDouble in interface XTabler - the specified row index.c - column number.
public float getFloat(int r,
int c)
getFloat in interface XTabler - the specified row index.c - column number.
public long getLong(int r,
int c)
getLong in interface XTabler - the specified row index.c - column number.
public int getInt(int r,
int c)
getInt in interface XTabler - the specified row index.c - column number.
public short getShort(int r,
int c)
getShort in interface XTabler - the specified row index.c - column number.
public byte getByte(int r,
int c)
getByte in interface XTabler - the specified row index.c - column number.
public boolean getBoolean(int r,
int c)
getBoolean in interface XTabler - the specified row index.c - column number.
public void setLeftAlign(boolean isLeft)
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||