|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujac.util.table.BaseRow
org.ujac.util.table.HeaderRow
public class HeaderRow
Name: HeaderRow
Description: A class holding title row data.
| Field Summary |
|---|
| Fields inherited from class org.ujac.util.table.BaseRow |
|---|
rowData, table |
| Constructor Summary | |
|---|---|
protected |
HeaderRow(Table table)
Constructs a HeaderRow instance with specific attributes. |
| Method Summary | |
|---|---|
boolean |
getBoolean(int columnIdx)
Gets the boolean value from the given row. |
boolean |
getBoolean(String columnName)
Gets the boolean value from the given row. |
Date |
getDate(int columnIdx)
Gets the Date value from the given row. |
Date |
getDate(String columnName)
Gets the Date value from the given row. |
double |
getDouble(int columnIdx)
Gets the double value from the given row. |
double |
getDouble(String columnName)
Gets the double value from the given row. |
protected int |
getFieldAlignment(LayoutHints lh)
Gets the field alignment. |
float |
getFloat(int columnIdx)
Gets the float value from the given row. |
float |
getFloat(String columnName)
Gets the float value from the given row. |
int |
getIndex()
Gets the colum index. |
int |
getInt(int columnIdx)
Gets the integer value from the given row. |
int |
getInt(String columnName)
Gets the int value from the given row. |
long |
getLong(int columnIdx)
Gets the long value from the given row. |
long |
getLong(String columnName)
Gets the long value from the given row. |
Object |
getObject(int columnIdx)
Gets the Object value from the given row. |
Object |
getObject(String columnName)
Gets the Object value from the given row. |
String |
getString(int columnIdx)
Gets the String value from the given row. |
String |
getString(String columnName)
Gets the String value from the given row. |
Date |
getTime(int columnIdx)
Gets the Time value from the given row. |
Date |
getTime(String columnName)
Gets the Time value from the given row. |
Date |
getTimestamp(int columnIdx)
Gets the Timestamp value from the given row. |
Date |
getTimestamp(String columnName)
Gets the Timestamp value from the given row. |
String |
getType()
Gets the row type. |
void |
setBoolean(int columnIdx,
boolean value)
Sets the boolean value at the given row. |
void |
setBoolean(String columnName,
boolean value)
Sets the boolean value at the given row. |
void |
setDate(int columnIdx,
Date value)
Sets the Date value at the given row. |
void |
setDate(String columnName,
Date value)
Sets the Date value at the given row. |
void |
setDouble(int columnIdx,
double value)
Sets the double value at the given row. |
void |
setDouble(String columnName,
double value)
Sets the double value at the given row. |
void |
setFloat(int columnIdx,
float value)
Sets the float value at the given row. |
void |
setFloat(String columnName,
float value)
Sets the float value at the given row. |
void |
setInt(int columnIdx,
int value)
Sets the integer value at the given row. |
void |
setInt(String columnName,
int value)
Sets the int value at the given row. |
void |
setLong(int columnIdx,
long value)
Sets the long value at the given row. |
void |
setLong(String columnName,
long value)
Sets the long value at the given row. |
void |
setObject(int columnIdx,
Object value)
Sets the Object value at the given row. |
void |
setObject(String columnName,
Object value)
Sets the Object value at the given row. |
void |
setString(int columnIdx,
String value)
Sets the String value at the given row. |
void |
setString(String columnName,
String value)
Sets the String value at the given row. |
void |
setTime(int columnIdx,
Date value)
Sets the Time value at the given row. |
void |
setTime(String columnName,
Date value)
Sets the Time value at the given row. |
void |
setTimestamp(int columnIdx,
Date value)
Sets the Timestamp value at the given row. |
void |
setTimestamp(String columnName,
Date value)
Sets the Timestamp value at the given row. |
| Methods inherited from class org.ujac.util.table.BaseRow |
|---|
asList, expandRow, formatValue, formatValue, getAlign, getAlign, getFormat, getFormat, getTable, isEndsBlock, isStartNewPage, isStartsBlock, isVisible, isVisible, readData, setAlign, setAlign, setEndsBlock, setFormat, setFormat, setStartNewPage, setStartsBlock, setVisible, setVisible, toString, writeData |
| 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, getTable, isEndsBlock, isStartNewPage, isStartsBlock, isVisible, isVisible, setAlign, setAlign, setEndsBlock, setFormat, setFormat, setStartNewPage, setStartsBlock, setVisible, setVisible |
| Constructor Detail |
|---|
protected HeaderRow(Table table)
table - The table which contains this row.| Method Detail |
|---|
public String getType()
Row
getType in interface RowRow.getType()public int getIndex()
Row
getIndex in interface RowRow.getIndex()
public String getString(String columnName)
throws ColumnNotDefinedException,
TypeMismatchException
Row
getString in interface RowcolumnName - The name of the desired column.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.getString(java.lang.String)
public String getString(int columnIdx)
throws ColumnNotDefinedException,
TypeMismatchException
Row
getString in interface RowcolumnIdx - The index of the desired column.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.getString(int)
public void setString(String columnName,
String value)
throws ColumnNotDefinedException,
TypeMismatchException
Row
setString in interface RowcolumnName - The name of the desired column.value - The new value.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the date conversion failed.Row.setString(java.lang.String, java.lang.String)
public void setString(int columnIdx,
String value)
throws ColumnNotDefinedException,
TypeMismatchException
Row
setString in interface RowcolumnIdx - The index of the desired column.value - The new value.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.setString(int, java.lang.String)
public int getInt(String columnName)
throws ColumnNotDefinedException,
TypeMismatchException
Row
getInt in interface RowcolumnName - The name of the desired column.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.getInt(java.lang.String)
public int getInt(int columnIdx)
throws ColumnNotDefinedException,
TypeMismatchException
Row
getInt in interface RowcolumnIdx - The index of the desired column.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.getInt(int)
public void setInt(String columnName,
int value)
throws ColumnNotDefinedException,
TypeMismatchException
Row
setInt in interface RowcolumnName - The name of the desired column.value - The new value.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.setInt(java.lang.String, int)
public void setInt(int columnIdx,
int value)
throws ColumnNotDefinedException,
TypeMismatchException
Row
setInt in interface RowcolumnIdx - The index of the desired column.value - The new value.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.setInt(int, int)
public long getLong(String columnName)
throws ColumnNotDefinedException,
TypeMismatchException
Row
getLong in interface RowcolumnName - The name of the desired column.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.getLong(java.lang.String)
public long getLong(int columnIdx)
throws ColumnNotDefinedException,
TypeMismatchException
Row
getLong in interface RowcolumnIdx - The index of the desired column.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.getLong(int)
public void setLong(String columnName,
long value)
throws ColumnNotDefinedException,
TypeMismatchException
Row
setLong in interface RowcolumnName - The name of the desired column.value - The new value.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.setLong(java.lang.String, long)
public void setLong(int columnIdx,
long value)
throws ColumnNotDefinedException,
TypeMismatchException
Row
setLong in interface RowcolumnIdx - The index of the desired column.value - The new value.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.setLong(int, long)
public float getFloat(String columnName)
throws ColumnNotDefinedException,
TypeMismatchException
Row
getFloat in interface RowcolumnName - The name of the desired column.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the float conversion failed.Row.getFloat(java.lang.String)
public float getFloat(int columnIdx)
throws ColumnNotDefinedException,
TypeMismatchException
Row
getFloat in interface RowcolumnIdx - The index of the desired column.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the float conversion failed.Row.getFloat(int)
public void setFloat(String columnName,
float value)
throws ColumnNotDefinedException,
TypeMismatchException
Row
setFloat in interface RowcolumnName - The name of the desired column.value - The new value.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the float conversion failed.Row.setFloat(java.lang.String, float)
public void setFloat(int columnIdx,
float value)
throws ColumnNotDefinedException,
TypeMismatchException
Row
setFloat in interface RowcolumnIdx - The index of the desired column.value - The new value.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the float conversion failed.Row.setFloat(int, float)
public double getDouble(String columnName)
throws ColumnNotDefinedException,
TypeMismatchException
Row
getDouble in interface RowcolumnName - The name of the desired column.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.getDouble(java.lang.String)
public double getDouble(int columnIdx)
throws ColumnNotDefinedException,
TypeMismatchException
Row
getDouble in interface RowcolumnIdx - The index of the desired column.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.getDouble(int)
public void setDouble(String columnName,
double value)
throws ColumnNotDefinedException,
TypeMismatchException
Row
setDouble in interface RowcolumnName - The name of the desired column.value - The new value.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.setDouble(java.lang.String, double)
public void setDouble(int columnIdx,
double value)
throws ColumnNotDefinedException,
TypeMismatchException
Row
setDouble in interface RowcolumnIdx - The index of the desired column.value - The new value.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.setDouble(int, double)
public boolean getBoolean(String columnName)
throws ColumnNotDefinedException,
TypeMismatchException
Row
getBoolean in interface RowcolumnName - The name of the desired column.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.getBoolean(java.lang.String)
public boolean getBoolean(int columnIdx)
throws ColumnNotDefinedException,
TypeMismatchException
Row
getBoolean in interface RowcolumnIdx - The index of the desired column.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.getBoolean(int)
public void setBoolean(String columnName,
boolean value)
throws ColumnNotDefinedException,
TypeMismatchException
Row
setBoolean in interface RowcolumnName - The name of the desired column.value - The new value.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.setBoolean(java.lang.String, boolean)
public void setBoolean(int columnIdx,
boolean value)
throws ColumnNotDefinedException,
TypeMismatchException
Row
setBoolean in interface RowcolumnIdx - The index of the desired column.value - The new value.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.setBoolean(int, boolean)
public Date getDate(String columnName)
throws ColumnNotDefinedException,
TypeMismatchException
Row
getDate in interface RowcolumnName - The name of the desired column.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.getDate(java.lang.String)
public Date getDate(int columnIdx)
throws ColumnNotDefinedException,
TypeMismatchException
Row
getDate in interface RowcolumnIdx - The index of the desired column.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.getDate(int)
public void setDate(String columnName,
Date value)
throws ColumnNotDefinedException,
TypeMismatchException
Row
setDate in interface RowcolumnName - The name of the desired column.value - The new value.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.setDate(java.lang.String, java.util.Date)
public void setDate(int columnIdx,
Date value)
throws ColumnNotDefinedException,
TypeMismatchException
Row
setDate in interface RowcolumnIdx - The index of the desired column.value - The new value.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.setDate(int, java.util.Date)
public Date getTime(String columnName)
throws ColumnNotDefinedException,
TypeMismatchException
Row
getTime in interface RowcolumnName - The name of the desired column.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.getTime(java.lang.String)
public Date getTime(int columnIdx)
throws ColumnNotDefinedException,
TypeMismatchException
Row
getTime in interface RowcolumnIdx - The index of the desired column.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.getTime(int)
public void setTime(String columnName,
Date value)
throws ColumnNotDefinedException,
TypeMismatchException
Row
setTime in interface RowcolumnName - The name of the desired column.value - The new value.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.setTime(java.lang.String, java.util.Date)
public void setTime(int columnIdx,
Date value)
throws ColumnNotDefinedException,
TypeMismatchException
Row
setTime in interface RowcolumnIdx - The index of the desired column.value - The new value.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.setTime(int, java.util.Date)
public Date getTimestamp(String columnName)
throws ColumnNotDefinedException,
TypeMismatchException
Row
getTimestamp in interface RowcolumnName - The name of the desired column.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.getTimestamp(java.lang.String)
public Date getTimestamp(int columnIdx)
throws ColumnNotDefinedException,
TypeMismatchException
Row
getTimestamp in interface RowcolumnIdx - The index of the desired column.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.getTimestamp(int)
public void setTimestamp(String columnName,
Date value)
throws ColumnNotDefinedException,
TypeMismatchException
Row
setTimestamp in interface RowcolumnName - The name of the desired column.value - The new value.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.setTimestamp(java.lang.String, java.util.Date)
public void setTimestamp(int columnIdx,
Date value)
throws ColumnNotDefinedException,
TypeMismatchException
Row
setTimestamp in interface RowcolumnIdx - The index of the desired column.value - The new value.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.setTimestamp(int, java.util.Date)
public Object getObject(String columnName)
throws ColumnNotDefinedException
Row
getObject in interface RowcolumnName - The name of the desired column.
ColumnNotDefinedException - In case the requested column does not exist.Row.getObject(java.lang.String)
public Object getObject(int columnIdx)
throws ColumnNotDefinedException
Row
getObject in interface RowcolumnIdx - The index of the desired column.
ColumnNotDefinedException - In case the requested column does not exist.Row.getObject(int)
public void setObject(String columnName,
Object value)
throws ColumnNotDefinedException,
TypeMismatchException
Row
setObject in interface RowcolumnName - The name of the desired column.value - The new value.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.setObject(java.lang.String, java.lang.Object)
public void setObject(int columnIdx,
Object value)
throws ColumnNotDefinedException,
TypeMismatchException
Row
setObject in interface RowcolumnIdx - The index of the desired column.value - The new value.
ColumnNotDefinedException - In case the requested column does not exist.
TypeMismatchException - In case the data conversion failed.Row.setObject(int, java.lang.Object)protected int getFieldAlignment(LayoutHints lh)
getFieldAlignment in class BaseRowlh - The layout hints.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||