IBM Branch Transformation Toolkit Javadoc

com.ibm.dse.gui
Class ColumnFormatter

java.lang.Object
  extended bycom.ibm.dse.gui.ColumnFormatter
All Implemented Interfaces:
java.io.Serializable

public class ColumnFormatter
extends java.lang.Object
implements java.io.Serializable

The ColumnFormatter class is used by the SpTable to encapsulate the column properties.

See Also:
Serialized Form

Constructor Summary
ColumnFormatter(java.lang.String col, java.lang.String colName, Converter fmt, boolean man, boolean edit)
          This constructor creates a ColumnFormatter object.
ColumnFormatter(java.lang.String col, java.lang.String colName, Converter fmt, boolean man, boolean edit, boolean auto, int size)
          This constructor creates a ColumnFormatter object.
 
Method Summary
 ColumnFormatter copy()
          Returns a copy of this object.
 boolean getAutomaticSize()
          Gets the Automatic size property value.
 java.lang.String getColumn()
          Gets the column property (java.lang.String) value.
 java.lang.String getColumnName()
          Gets the columnName property (java.lang.String) value.
 Converter getConverter()
          Gets the converter property (com.ibm.dse.gui.Converter) value.
 boolean getEditable()
          Gets the editable property (boolean) value.
 boolean getMandatory()
          Gets the mandatory property (boolean) value.
 int getSize()
          Gets the size property (int) value.
 void setAutomaticSize(boolean automaticSize)
          Sets the automatic size property (boolean) value.
 void setColumn(java.lang.String column)
          Sets the column property (java.lang.String) value.
 void setColumnName(java.lang.String columnName)
          Sets the columnName property (java.lang.String) value.
 void setConverter(Converter converter)
          Sets the converter property (com.ibm.dse.gui.Converter) value.
 void setEditable(boolean editable)
          Sets the editable property (boolean) value.
 void setMandatory(boolean mandatory)
          Sets the mandatory property (boolean) value.
 void setSize(int size)
          Sets the size property (int) value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnFormatter

public ColumnFormatter(java.lang.String col,
                       java.lang.String colName,
                       Converter fmt,
                       boolean man,
                       boolean edit)
This constructor creates a ColumnFormatter object.

Parameters:
col - java.lang.String, the internal column name
colName - java.lang.String, the public column name
fmt - com.ibm.dse.gui.Converter, the Converter associated to the column
man - boolean, if the column is mandatory or not
edit - boolean, if column is editable or not

ColumnFormatter

public ColumnFormatter(java.lang.String col,
                       java.lang.String colName,
                       Converter fmt,
                       boolean man,
                       boolean edit,
                       boolean auto,
                       int size)
This constructor creates a ColumnFormatter object.

Parameters:
col - java.lang.String, the internal column name
colName - java.lang.String, the public column name
fmt - com.ibm.dse.gui.Converter, the Converter associated to the column
man - boolean, if the column is mandatory or not
edit - boolean, if the column is editable or not
auto - boolean, if the column is resizable or not
size - int,the column percent inside the table
Method Detail

copy

public ColumnFormatter copy()
Returns a copy of this object.

Returns:
com.ibm.dse.gui.ColumnFormatter

getAutomaticSize

public boolean getAutomaticSize()
Gets the Automatic size property value.

Returns:
boolean - if it is automatic size or not
See Also:
setAutomaticSize(boolean)

getColumn

public java.lang.String getColumn()
Gets the column property (java.lang.String) value.

Returns:
String - the column property value
See Also:
setColumn(java.lang.String)

getColumnName

public java.lang.String getColumnName()
Gets the columnName property (java.lang.String) value.

Returns:
String - the columnName property value
See Also:
setColumnName(java.lang.String)

getConverter

public Converter getConverter()
Gets the converter property (com.ibm.dse.gui.Converter) value.

Returns:
Converter - the converter property value
See Also:
setConverter(com.ibm.dse.gui.Converter)

getEditable

public boolean getEditable()
Gets the editable property (boolean) value.

Returns:
boolean - the editable property value
See Also:
setEditable(boolean)

getMandatory

public boolean getMandatory()
Gets the mandatory property (boolean) value.

Returns:
boolean - the mandatory property value
See Also:
setMandatory(boolean)

getSize

public int getSize()
Gets the size property (int) value.

Returns:
int - the size property value
See Also:
setSize(int)

setAutomaticSize

public void setAutomaticSize(boolean automaticSize)
Sets the automatic size property (boolean) value.

Parameters:
automaticSize - boolean, the new value for the property
See Also:
getAutomaticSize()

setColumn

public void setColumn(java.lang.String column)
Sets the column property (java.lang.String) value.

Parameters:
column - String, the new value for the property
See Also:
getColumn()

setColumnName

public void setColumnName(java.lang.String columnName)
Sets the columnName property (java.lang.String) value.

Parameters:
columnName - String, the new value for the property
See Also:
getColumnName()

setConverter

public void setConverter(Converter converter)
Sets the converter property (com.ibm.dse.gui.Converter) value.

Parameters:
converter - Converter, the new value for the property
See Also:
getConverter()

setEditable

public void setEditable(boolean editable)
Sets the editable property (boolean) value.

Parameters:
editable - boolean, the new value for the property
See Also:
getEditable()

setMandatory

public void setMandatory(boolean mandatory)
Sets the mandatory property (boolean) value.

Parameters:
mandatory - boolean, the new value for the property
See Also:
getMandatory()

setSize

public void setSize(int size)
Sets the size property (int) value.

Parameters:
size - int, the new value for the property
See Also:
getSize()

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005