|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Column
protected void setName(String name)
name
- The new column name.public boolean isKey()
isKey
in interface Column
public Column setKey(boolean key)
setKey
in interface Column
key
- The key flag to set.
public int getType()
getType
in interface Column
public void setType(int type)
setType
in interface Column
type
- The new column type.public String getAlias()
getAlias
in interface Column
public Column setAlias(String alias)
setAlias
in interface Column
alias
- The new column alias.
public Format getFormat()
getFormat
in interface Column
public Column setFormat(Format format)
setFormat
in interface Column
format
- The new column format.
public Column setFormat(String format)
setFormat
in interface Column
format
- The format string to use.
public int getIndex()
getIndex
in interface Column
public Column setIndex(int index)
setIndex
in interface Column
index
- The new column index.
public int getDataIndex()
getDataIndex
in interface Column
public Column setDataIndex(int dataIndex)
setDataIndex
in interface Column
dataIndex
- The new data index.
public LayoutHints getLayoutHints()
getLayoutHints
in interface Column
public Column setLayoutHints(LayoutHints layoutHints)
setLayoutHints
in interface Column
layoutHints
- The layout hints to set.
public String getTypeName()
getTypeName
in interface Column
public String toString()
toString
in class Object
Object.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 |