public static class TreeListConfig.Column extends java.lang.Object implements Printable, java.io.Externalizable
Modifier and Type | Class and Description |
---|---|
static class |
TreeListConfig.Column.DataType
Column value type constants (only character and icon types are supported)
|
static class |
TreeListConfig.Column.Sorting
Column sort types
|
Modifier and Type | Field and Description |
---|---|
byte |
align |
static byte |
ALIGN_DEFAULT
Column horizontal value alignment constants
|
static byte |
ALIGN_LEFT |
static byte |
ALIGN_MIDDLE |
static byte |
ALIGN_RIGHT |
ColorRgb |
bgColor |
java.lang.String |
caption |
TreeListConfig.Column.DataType |
dataType |
ColorRgb |
fgColor |
int |
position
The column position, can only be changed at the client side.
|
TreeListConfig.Column.Sorting |
sort
Column sort type: one of NONE, ASCENDING or DESCENDING
|
boolean |
visible
Column is not hidden
|
int |
width
Column width in pixels
|
Constructor and Description |
---|
Column()
Default ctor.
|
Column(java.lang.String caption,
TreeListConfig.Column.DataType dataType,
int width,
byte align,
ColorRgb bgColor,
ColorRgb fgColor,
boolean visible,
int position,
TreeListConfig.Column.Sorting sort)
Ctor.
|
Column(java.lang.String caption,
TreeListConfig.Column.DataType dataType,
int width,
byte align,
ColorRgb bgColor,
ColorRgb fgColor,
int position,
TreeListConfig.Column.Sorting sort)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
print(PrintHelper printer)
Add class-specific fields to the helper.
|
void |
readExternal(java.io.ObjectInput in)
Replacement for the default object reading method.
|
void |
writeExternal(java.io.ObjectOutput out)
Replacement for the default object writing method.
|
public byte align
public ColorRgb bgColor
public java.lang.String caption
public TreeListConfig.Column.DataType dataType
public ColorRgb fgColor
public int position
public TreeListConfig.Column.Sorting sort
public boolean visible
public int width
public static final byte ALIGN_DEFAULT
public static final byte ALIGN_LEFT
public static final byte ALIGN_MIDDLE
public static final byte ALIGN_RIGHT
public Column()
public Column(java.lang.String caption, TreeListConfig.Column.DataType dataType, int width, byte align, ColorRgb bgColor, ColorRgb fgColor, boolean visible, int position, TreeListConfig.Column.Sorting sort)
caption
- Column caption.dataType
- Data type.width
- Column width.align
- Horizontal value alignment.bgColor
- Column background color.fgColor
- Column foreground color.visible
- Column visibility flag.position
- the column position in visible column ordersort
- the column sort typepublic Column(java.lang.String caption, TreeListConfig.Column.DataType dataType, int width, byte align, ColorRgb bgColor, ColorRgb fgColor, int position, TreeListConfig.Column.Sorting sort)
caption
- Column caption.dataType
- Data type.width
- Column width.align
- Horizontal value alignment.bgColor
- Column background color.fgColor
- Column foreground color.position
- the column position in visible column ordersort
- the column sort typepublic void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- The input source from which fields will be restored.java.io.IOException
- In case of I/O errors.java.lang.ClassNotFoundException
- If payload can't be instantiated.public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- The output destination to which fields will be saved.java.io.IOException
- In case of I/O errors.public void print(PrintHelper printer)