com.sssw.rt.tview
Class AgoColumnSpacer
java.lang.Object
|
+--com.sssw.rt.tview.AgoColumnBase
|
+--com.sssw.rt.tview.AgoColumnSpacer
- public final class AgoColumnSpacer
- extends AgoColumnBase
AgoColumnSpacer objects are a special kind of column format.
They let you insert columns (with no data) of a fixed width. You can use them
to define the look and feel of a view by adding space between columns containing data or images.
AgoColumnSpacer objects are particularly useful when you want to define unequal column spacing.
Constructor Summary |
AgoColumnSpacer(int width,
boolean visible,
boolean transparent,
Color backgroundColor,
int borderType)
|
Methods inherited from class com.sssw.rt.tview.AgoColumnBase |
getAlignment,
getBackgroundColor,
getBorderType,
getDisplayWidth,
getHidden,
getResizable,
getSelectable,
getTransparent,
getVisible,
getWidth,
isWidthFixed,
setAlignment,
setBackgroundColor,
setBorderType,
setFixedWidth,
setHidden,
setProportionalWidth,
setProportionalWidth,
setResizable,
setSelectable,
setTransparent,
setVisible,
setWidth |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
AgoColumnSpacer
public AgoColumnSpacer(int width,
boolean visible,
boolean transparent,
Color backgroundColor,
int borderType)
- Parameters:
width
- width of visible column, in pixelsvisible
- true means column is hiddentransparent
- true means column is transparentbackgroundColor
- background color of visible columnborderType
- border type of visible column. For borderType
values, see the setBorderType() method- Usage:
You can dynamically change the initial property settings for the AgoColumnSpacer using the set...() and get...() methods of the same name; however,
you must call the AgcView.setAgoViewFormat()
to repaint the view and make your changes visible.
- Example:
AgoColumnSpacer colSpc = new AgoColumnSpacer(100, // width in pixels
true, // visible
false, // not transparent
Color.white, // background color
AgoColumnSpacer.BORDER_NONE); // border type
- See Also:
AgoColumnBase.setBorderType(int borderType)