|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujac.util.table.DefaultColumn
public class DefaultColumn
Name: DefaultColumn
Description: Default column implementation.
| Field Summary |
|---|
| Fields inherited from interface org.ujac.util.table.TableConstants |
|---|
DEFAULT_DATE_FORMAT, DEFAULT_DOUBLE_FORMAT, DEFAULT_INTEGER_FORMAT, DEFAULT_TIME_FORMAT, DEFAULT_TIMESTAMP_FORMAT, ROW_TYPE_FOOTER, ROW_TYPE_GROUP, ROW_TYPE_GROUP_TITLE, ROW_TYPE_HEADER, ROW_TYPE_NORMAL |
| Fields inherited from interface org.ujac.util.UjacTypes |
|---|
TYPE_BOOLEAN, TYPE_DATE, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INT, TYPE_LONG, TYPE_NAME_BOOLEAN, TYPE_NAME_DATE, TYPE_NAME_DOUBLE, TYPE_NAME_FLOAT, TYPE_NAME_INT, TYPE_NAME_LONG, TYPE_NAME_OBJECT, TYPE_NAME_SHORT, TYPE_NAME_STRING, TYPE_NAME_TABLE, TYPE_NAME_TIME, TYPE_NAME_TIMESTAMP, TYPE_OBJECT, TYPE_SHORT, TYPE_STRING, TYPE_TABLE, TYPE_TIME, TYPE_TIMESTAMP |
| Constructor Summary | |
|---|---|
protected |
DefaultColumn(Table table,
String name,
boolean key,
int type)
Constructs a DefaultColumn instance with specific arguments. |
protected |
DefaultColumn(Table table,
String name,
int type)
Constructs a DefaultColumn instance with specific arguments. |
| Method Summary | |
|---|---|
String |
getAlias()
Gets the column alias. |
int |
getDataIndex()
Gets the data index. |
Format |
getFormat()
Gets the colum format. |
int |
getIndex()
Gets the colum index. |
LayoutHints |
getLayoutHints()
Gets the layout hints. |
String |
getName()
Gets the colum name. |
int |
getType()
Gets the colum name. |
String |
getTypeName()
Gets the name of the column type. |
boolean |
isKey()
Tells wheter this column defines a key value or not. |
protected void |
readData(ObjectInputStream s)
Reads the object's data from the given stream. |
Column |
setAlias(String alias)
Sets the colum alias. |
Column |
setDataIndex(int dataIndex)
Sets the data index. |
Column |
setFormat(Format format)
Sets the colum format. |
Column |
setFormat(String format)
Sets the colum format. |
Column |
setIndex(int index)
Sets the colum index. |
Column |
setKey(boolean key)
Sets the key flag. |
Column |
setLayoutHints(LayoutHints layoutHints)
Sets the layout hints. |
protected void |
setName(String name)
Sets the colum name. |
void |
setType(int type)
Sets the colum type. |
String |
toString()
|
protected void |
writeData(ObjectOutputStream s)
Writes the object's data to the given stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected DefaultColumn(Table table,
String name,
int type)
table - The column's table.name - The column name.type - The column type.
protected DefaultColumn(Table table,
String name,
boolean key,
int type)
table - The column's table.name - The column name.key - Tells whether or not the column defines a key value.type - The column type.| Method Detail |
|---|
public String getName()
getName in interface Columnprotected void setName(String name)
name - The new column name.public boolean isKey()
isKey in interface Columnpublic Column setKey(boolean key)
setKey in interface Columnkey - The key flag to set.
public int getType()
getType in interface Columnpublic void setType(int type)
setType in interface Columntype - The new column type.public String getAlias()
getAlias in interface Columnpublic Column setAlias(String alias)
setAlias in interface Columnalias - The new column alias.
public Format getFormat()
getFormat in interface Columnpublic Column setFormat(Format format)
setFormat in interface Columnformat - The new column format.
public Column setFormat(String format)
setFormat in interface Columnformat - The format string to use.
public int getIndex()
getIndex in interface Columnpublic Column setIndex(int index)
setIndex in interface Columnindex - The new column index.
public int getDataIndex()
getDataIndex in interface Columnpublic Column setDataIndex(int dataIndex)
setDataIndex in interface ColumndataIndex - The new data index.
public LayoutHints getLayoutHints()
getLayoutHints in interface Columnpublic Column setLayoutHints(LayoutHints layoutHints)
setLayoutHints in interface ColumnlayoutHints - The layout hints to set.
public String getTypeName()
getTypeName in interface Columnpublic String toString()
toString in class ObjectObject.toString()
protected void writeData(ObjectOutputStream s)
throws IOException
s - The stream to write to
IOException - In case the data output failed.
protected void readData(ObjectInputStream s)
throws IOException,
ClassNotFoundException
s - The stream to read from.
IOException - In case the data reading failed.
ClassNotFoundException - In case the class to deserialize could not be found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||