|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.report.TableDataPath
public class TableDataPath
Table data path contains the structual infos of a table row/col/cell. It contains infos like type, data type, etc.
| Field Summary | |
|---|---|
static int |
CALENDAR_TITLE
Calendar title. |
static int |
DETAIL
Table detail row/col/cell. |
static int |
GRAND_TOTAL
Table grand total row/col/cell. |
static int |
GROUP_HEADER
Table group header row/col/cell. |
static int |
HEADER
Table header row/col/cell. |
static int |
MONTH_CALENDAR
Month calendar. |
static int |
OBJECT
Object. |
static int |
SUMMARY
Table summary row/col/cell. |
static int |
SUMMARY_HEADER
Table summary header row/col/cell. |
static int |
TITLE
Title. |
static int |
TRAILER
Table trailer row/col/cell. |
static int |
UNKNOWN
Unknown. |
static int |
YEAR_CALENDAR
Year calendar. |
| Constructor Summary | |
|---|---|
TableDataPath()
Create a default table data path. |
|
TableDataPath(int level,
int type)
Create a row table data path. |
|
TableDataPath(int level,
int type,
int index)
Create a row table data path. |
|
TableDataPath(int level,
int type,
String dtype,
String[] path)
Create a cell table data path. |
|
TableDataPath(int level,
int type,
String dtype,
String[] path,
boolean row,
boolean col)
Create a table data path. |
|
TableDataPath(String header)
Create a col table data path. |
|
| Method Summary | |
|---|---|
Object |
clone()
Clone the table data path. |
Object |
clone(String[] arr)
Clone the table data path. |
boolean |
equals(Object obj)
Check if equals another object. |
int |
getColIndex()
Get the col index of this data path. |
String |
getDataType()
Get data type of the table data path. |
int |
getIndex()
Get the row index of this data path. |
int |
getLevel()
Get table data path level, which is useful for nested table. |
String[] |
getPath()
Get path of the table data path. |
int |
getType()
Get table data path type, which is one of the types defined in TableDataPath like HEADER, GROUP_TOTAL, etc. |
int |
hashCode()
Get hash code of the table data path for map. |
boolean |
isCell()
Check if is a cell table data path. |
boolean |
isCol()
Check if is a col table data path. |
boolean |
isRow()
Check if is a row table data path. |
boolean |
isSpecial()
Check if this table data path is special. |
boolean |
parseData(DataInputStream input)
Parse data from an InputStream. |
void |
parseXML(Element tag)
Method to parse an xml segment. |
void |
setColIndex(int cidx)
Set the col index to this data path. |
String |
toString()
Return the string representaion. |
void |
writeData(DataOutputStream output)
Write data to a DataOutputStream. |
void |
writeXML(PrintWriter writer)
Write the xml segment to print writer. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int HEADER
public static final int DETAIL
public static final int TRAILER
public static final int GROUP_HEADER
public static final int SUMMARY
public static final int SUMMARY_HEADER
public static final int GRAND_TOTAL
public static final int UNKNOWN
public static final int TITLE
public static final int CALENDAR_TITLE
public static final int YEAR_CALENDAR
public static final int MONTH_CALENDAR
public static final int OBJECT
| Constructor Detail |
|---|
public TableDataPath()
public TableDataPath(String header)
header - the specified column header
public TableDataPath(int level,
int type)
level - the specified table data path leveltype - the specified table data path type
public TableDataPath(int level,
int type,
int index)
level - the specified table data path leveltype - the specified table data path typeindex - row index.
public TableDataPath(int level,
int type,
String dtype,
String[] path)
level - the specified table data path leveltype - the specified table data path typedtype - the specified data type, which is defined in XSchemapath - of the table data path from root to leaf as a string array
public TableDataPath(int level,
int type,
String dtype,
String[] path,
boolean row,
boolean col)
level - the specified table data path leveltype - the specified table data path typedtype - the specified data type, which is defined in XSchemapath - of the table data path from root to leaf as a string array| Method Detail |
|---|
public boolean isRow()
public boolean isCol()
public boolean isCell()
public boolean isSpecial()
public int getLevel()
public int getIndex()
public int getColIndex()
public void setColIndex(int cidx)
cidx - col index the specified column index.public int getType()
public String getDataType()
public String[] getPath()
public void writeData(DataOutputStream output)
throws IOException
writeData in interface inetsoft.util.DataSerializableoutput - the destination DataOutputStream.
IOExceptionpublic boolean parseData(DataInputStream input)
parseData in interface inetsoft.util.DataSerializableinput - the source DataInputStream.
public void writeXML(PrintWriter writer)
writeXML in interface inetsoft.util.XMLSerializablewriter - the destination print writer.
public void parseXML(Element tag)
throws Exception
parseXML in interface inetsoft.util.XMLSerializabletag - the specified xml element
Exceptionpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic Object clone()
clone in class Objectpublic Object clone(String[] arr)
|
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 | ||||||||