|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.patterns.listdata.www.ColumnDefinition
public class ColumnDefinition
Class describing one column of a list of items. This is based on the horizontal layour of the list when items are in the rows and columns contain individual attributes of the items. You can of course layour the list of items differently and this class will be then used as a description of one of the attributes in the list
| Field Summary | |
|---|---|
static java.lang.String[] |
BOOLEAN_TEXTS_DISENABLED
Possible values of boolean representation. |
static java.lang.String[] |
BOOLEAN_TEXTS_NOYES
Possible values of boolean representation. |
| Constructor Summary | |
|---|---|
ColumnDefinition(java.lang.String strColumnName,
java.lang.String strColumnTooltip,
int iColumnDataType,
double dColumnWidth)
Constructor |
|
ColumnDefinition(java.lang.String strColumnName,
java.lang.String strColumnTooltip,
java.lang.String[] arrColumnBooleanValues,
double dColumnWidth)
Constructor |
|
| Method Summary | |
|---|---|
java.lang.String |
getColumnBooleanValueNames(java.lang.String strSeparator)
Method returns string values for boolean column. |
java.lang.String[] |
getColumnBooleanValues()
Get string representation of boolean values to use for this columns. |
int |
getColumnDataType()
|
java.lang.String |
getColumnName()
|
java.lang.String |
getColumnTooltip()
|
double |
getColumnWidth()
|
boolean |
isColumnMandatory()
Check if the column has to be displayed when displaying list of items or not. |
void |
setColumnMandatory(boolean isColumnMandatory)
Specify if the column has to be displayed when displaying list of items or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String[] BOOLEAN_TEXTS_DISENABLED
public static final java.lang.String[] BOOLEAN_TEXTS_NOYES
| Constructor Detail |
|---|
public ColumnDefinition(java.lang.String strColumnName,
java.lang.String strColumnTooltip,
int iColumnDataType,
double dColumnWidth)
strColumnName - - column heading namestrColumnTooltip - - column tooltipiColumnDataType - - type of data displayed in this column, one of the
DataCondition.VALUE_TYPE_XYZ constantsdColumnWidth - - width of the column heading as a relative number
compared to the width of other columns. 0 is valid
value and means that the columns shouldn't be
displayed
public ColumnDefinition(java.lang.String strColumnName,
java.lang.String strColumnTooltip,
java.lang.String[] arrColumnBooleanValues,
double dColumnWidth)
strColumnName - - column heading namestrColumnTooltip - - column tooltiparrColumnBooleanValues - - array of boolean values that will be used
to display booleans values in this column
assuming that the column data type is
boolean. Index 0 represents value for false
and index 1 represents value for true.
Provide are common use values in form of
BOOLEAN_TEXTS_XYZ contantsdColumnWidth - - width of the column heading as a relative number
compared to the width of other columns. 0 is valid
value and means that the columns shouldn't be
displayed| Method Detail |
|---|
public double getColumnWidth()
public java.lang.String getColumnName()
public int getColumnDataType()
public java.lang.String getColumnTooltip()
public java.lang.String[] getColumnBooleanValues()
public java.lang.String getColumnBooleanValueNames(java.lang.String strSeparator)
strSeparator - - separator the values will be separated by
public boolean isColumnMandatory()
public void setColumnMandatory(boolean isColumnMandatory)
isColumnMandatory - - true if the column is mandatory false otherwise
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||