|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sssw.rt.tview.AgoColumnBase
Abstract base class for all AgcView and AgcViewDownloadable column objects.
You cannot instantiate an AgoColumnBase, but might use one when you want to obtain a column from an AgoBandFormat and do not know the column's type. You can then cast the column format object that you obtain to the appropriate column type.
AgoColumnHierarchy
,
AgoColumnImage
,
AgoColumnSpacer
,
AgoColumnText
,
AgoColumnTextEditor
Constructor Summary | |
AgoColumnBase()
|
Method Summary | |
int |
getAlignment()
Returns a symbolic constant that represents the way in which the column's contents are aligned. |
Color |
getBackgroundColor()
Returns the Color object which describes the column's background color. |
int |
getBorderType()
Returns the constant that specifies the column's border type. |
int |
getDisplayWidth()
Returns the column's display width in pixels. |
boolean |
getHidden()
Determines whether or not the column is visible to the user. |
boolean |
getResizable()
Returns the resizable property. |
boolean |
getSelectable()
Returns true if the column can be selected by the user. |
boolean |
getTransparent()
Returns the column's transparency property. |
boolean |
getVisible()
Determines whether or not the column is visible to the user. |
int |
getWidth()
Returns the column width (in pixels). |
boolean |
isWidthFixed()
Returns the flag which specifies that the column width is fixed |
void |
setAlignment(int alignment)
Sets the alignment for the contents of the column. |
void |
setBackgroundColor(Color backgroundcolor)
Sets the background color of the column. |
void |
setBorderType(int borderType)
Sets the column's border type. |
void |
setFixedWidth(int width)
Sets the width. |
void |
setHidden(boolean hidden)
Sets the "hidden" property for the column. |
void |
setProportionalWidth(int width)
Sets the width. |
void |
setProportionalWidth(int width,
int min,
int max)
Sets the width. |
void |
setResizable(boolean resizable)
Specifies whether the user can resize the column. |
void |
setSelectable(boolean selectable)
Sets the selectable option for the column. |
void |
setTransparent(boolean transparent)
Sets the column's transparency property. |
void |
setVisible(boolean visible)
Sets the "visible" property for the column. |
void |
setWidth(int width)
Sets the column width in pixels. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public AgoColumnBase()
Method Detail |
public boolean getHidden()
boolean isHidden = colFmt.getHidden();
AgoColumnBase.setHidden(boolean hidden)
public void setHidden(boolean hidden)
hidden
- specifies the column's hidden property. Setting it to true hides the column.colFmt.setHidden(true);
AgoColumnBase.getHidden()
public void setVisible(boolean visible)
hidden
- specifies the column's hidden property. Setting it to true hides the column.colFmt.setVisible(true);
AgoColumnBase.getVisible()
public boolean getVisible()
boolean isVisible = colFmt.getVisible();
AgoColumnBase.setVisible(boolean hidden)
public int getWidth()
int width; width = colFmt.getWidth();
AgoColumnBase.setWidth(int width)
public void setWidth(int width)
width
- column width, in pixels.int width; width = fldsetWidth.getValue(); colFmt.setWidth(width);
public void setFixedWidth(int width)
width
- column width, in pixels.int width; width = fldsetWidth.getValue(); colFmt.setFixedWidth(width);
public void setProportionalWidth(int width)
width
- column width, in pixels.int width; width = fldsetWidth.getValue(); colFmt.setProportionalWidth(width);
public void setProportionalWidth(int width, int min, int max)
width
- column width, in pixels.
min minimum column width, in pixels.
max maximum column width, in pixels.int width; width = fldsetWidth.getValue(); colFmt.setProportionalWidth(width, -1, -1);
public boolean isWidthFixed()
public int getDisplayWidth()
int width; width = colFmt.getDisplayWidth();
public final int getAlignment()
For the return values, see the list of Column Alignment Values.
int alignment; alignment = colFmt.getAlignment();
AgoColumnBase.setAlignment(int alignment)
public final void setAlignment(int alignment)
alignment
- the alignment constant. The table below describes the options for this value.colFmt.setAlignment(AgoColumnBase.ALIGN_TOP);
ALIGN_TOP | Align contents at top of the column. Use with any column type. | |
ALIGN_LEFT | Align contents at left in the column. Use with objects of type AgoColumnBase. | |
ALIGN_TOP_LEFT | Align contents at top left of the column. Use with objects of type AgoColumnBase. | |
ALIGN_CENTER | Center contents horizontally in the column. Use with objects of type AgoColumnBase. | |
ALIGN_RIGHT | Align contents at right in the column. Use with objects of type AgoColumnBase. | |
ALIGN_VERT_CENTER | Center contents vertically within the column. Use with objects of type AgoColumnBase. | |
ALIGN_BOTTOM | Align contents at bottom of the column. Use with objects of type AgoColumnBase. | |
MULTILINE | Allow multiple lines of text. Use with objects of type AgoColumnText only. | |
WORDBREAK | Allow text to be hyphenated. Use with objects of type AgoColumnText only. |
AgoColumnBase.getAlignment()
public boolean getSelectable()
boolean selectable; selectable = colFmt.getSelectable();
AgoColumnBase.setSelectable(boolean selectable)
public void setSelectable(boolean selectable)
selectable
- boolean that specifies whether the user can select the column. When set to true, the user can select the column.If you change this value at runtime, you must also call AgcView.setAgoViewFormat(). The setAgoViewFormat() method repaints the view which makes any changes to the band or column formats visible to the user.
column1.setSelectable(true);
AgoColumnBase.getSelectable()
public boolean getTransparent()
boolean transparent; transparent=colFmt.getTransparent();
AgoColumnBase.setTransparent(boolean transparent)
public void setTransparent(boolean transparent)
transparent
- set to true to make the column transparent (visible).boolean transparent; colFmt.setTransparent(true);
AgoColumnBase.getTransparent()
public Color getBackgroundColor()
This example illustrates how to obtain the background Color of a column.
Color bgColor; bgColor = columnFmt.getBackgroundColor();
AgoColumnBase.setBackgroundColor(Color backgroundcolor)
public void setBackgroundColor(Color backgroundcolor)
backgroundcolor
- the background color as defined in java.awt.Color
.The column must be transparent (setTransparent(false)) for the background color to show.
The following example illustrates how to set the background color on a column using one of the Color constants:
columnFmt.setBackgroundColor(Color.white);This example illustrates how to create a new Color and then use it to set the background color:
Color col = new Color(247, 247, 222); columnFmt.setBackgroundColor(col);
AgoColumnBase.getBackgroundColor()
public int getBorderType()
For the borderType
parameter, see the setBorderType method.
int borderType; border = colFmt.getBorderType();
AgoColumnBase.setBorderType(int borderType)
public void setBorderType(int borderType)
bordertype
- the symbolic constant that specifies the desired border.
The table below lists the valid border types.BORDER_NONE | No visible border |
BORDER_LINE | A single line border |
BORDER_3D | A 3 dimensional border |
colFmt.setBorderType(AgoColumnBase.BORDER_3D);
AgoColumnBase.getBorderType()
public void setResizable(boolean resizable)
resizable
- when set to true allows the user to resize the column.boolean resizable; colFmt.setResizable(true);
AgoColumnBase.getResizable()
public boolean getResizable()
boolean resizable; resizable=colFmt.getResizable();
AgoColumnBase.setResizable(boolean resizable)
|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |