org.ujac.util.table
Class GroupRow

java.lang.Object
  extended by org.ujac.util.table.BaseRow
      extended by org.ujac.util.table.DataRow
          extended by org.ujac.util.table.GroupRow
All Implemented Interfaces:
Serializable, Row, TableConstants, UjacTypes

public class GroupRow
extends DataRow

Name: GroupRow
Description: A table row for group rows.

Author:
lauerc
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.ujac.util.table.BaseRow
rowData, table
 
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
GroupRow(Table table, String type, String groupName)
          Constructs a GroupRow instance with specific attributes.
 
Method Summary
 String getGroupName()
          Getter method for the the property groupName.
protected  void readData(ObjectInputStream s)
          Reads the object's data from the given stream.
protected  void setGroupName(String groupName)
          Setter method for the the property groupName.
protected  void writeData(ObjectOutputStream s)
          Writes the object's data to the given stream.
 
Methods inherited from class org.ujac.util.table.DataRow
expandRow, getBoolean, getBoolean, getDate, getDate, getDouble, getDouble, getFloat, getFloat, getIndex, getInt, getInt, getLong, getLong, getObject, getObject, getString, getString, getTable, getTime, getTime, getTimestamp, getTimestamp, getType, removeColumn, setBoolean, setBoolean, setDate, setDate, setDouble, setDouble, setFloat, setFloat, setIndex, setInt, setInt, setLong, setLong, setObject, setObject, setString, setString, setTime, setTime, setTimestamp, setTimestamp, setType
 
Methods inherited from class org.ujac.util.table.BaseRow
asList, formatValue, formatValue, getAlign, getAlign, getFieldAlignment, getFormat, getFormat, isEndsBlock, isStartNewPage, isStartsBlock, isVisible, isVisible, setAlign, setAlign, setEndsBlock, setFormat, setFormat, setStartNewPage, setStartsBlock, setVisible, setVisible, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ujac.util.table.Row
asList, formatValue, formatValue, getAlign, getAlign, getFormat, getFormat, isEndsBlock, isStartNewPage, isStartsBlock, isVisible, isVisible, setAlign, setAlign, setEndsBlock, setFormat, setFormat, setStartNewPage, setStartsBlock, setVisible, setVisible
 

Constructor Detail

GroupRow

public GroupRow(Table table,
                String type,
                String groupName)
Constructs a GroupRow instance with specific attributes. Sets all fields invisible by default.

Parameters:
table - The table to create the row for.
type - The row type.
groupName - The group name.
Method Detail

getGroupName

public String getGroupName()
Getter method for the the property groupName.

Returns:
The current value of property groupName.

setGroupName

protected void setGroupName(String groupName)
Setter method for the the property groupName.

Parameters:
groupName - The value to set for the property groupName.

writeData

protected void writeData(ObjectOutputStream s)
                  throws IOException
Writes the object's data to the given stream.

Overrides:
writeData in class DataRow
Parameters:
s - The stream to write to
Throws:
IOException - In case the data output failed.

readData

protected void readData(ObjectInputStream s)
                 throws IOException,
                        ClassNotFoundException
Reads the object's data from the given stream.

Overrides:
readData in class DataRow
Parameters:
s - The stream to read from.
Throws:
IOException - In case the data reading failed.
ClassNotFoundException - In case the class to deserialize could not be found


Copyright © 2003-2004 UJAC.org. All Rights Reserved.