|
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 | +--com.sssw.rt.tview.AgoColumnText | +--com.sssw.rt.tview.AgoColumnHierarchy
This class is used to define the format properties of a hierarchical column.
Fields inherited from class com.sssw.rt.tview.AgoColumnText |
MULTILINE |
Constructor Summary | |
AgoColumnHierarchy(int width,
boolean visible,
boolean transparent,
Color backgroundColor,
int borderType)
AgoColumnHierarchy constructor. |
Method Summary | |
boolean |
getCollapseExpandOnDoubleClick()
Determine if the collapse/expand on doubleclick property is active. |
boolean |
getEnableCollapseExpandControl()
Determines whether the collapse/expand indicator ("twistie") is enabled or not. |
int |
getImageHeight()
Gets the image height, in pixels. |
int |
getImageWidth()
Gets the image width, in pixels. |
int |
getIndentPixels()
Gets the amount, in pixels, by which the image is indented in each successive level of the hierarchy. |
int |
getLeftMargin()
Get the left margin. |
boolean |
getShowCollapseExpandControl()
Determines whether the collapse/expand indicator ("twistie") is being displayed or not. |
boolean |
getShowHorizontalRule()
Gets the show horizontal rule property. |
void |
setCollapseExpandOnDoubleClick(boolean collapseexpand)
Sets the collapse/expand on double-click property. |
void |
setEnableCollapseExpandControl(boolean collapseexpandcontrol)
Specifies whether the collapse/expand indicator ("twistie") is to be enabled or not |
void |
setImageHeight(int imageheight)
Sets the image height. |
void |
setImageName(String imagename)
Specifies the name of the property which specifies the image to be used in this column. |
void |
setImageWidth(int imagewidth)
Sets the image width. |
void |
setIndentPixels(int indentpixels)
Sets the amount, in pixels, by which the image is indented in each successive level of the hierarchy. |
void |
setLeftMargin(int margin)
Set the left margin. |
void |
setShowCollapseExpandControl(boolean collapseexpandcontrol)
Specifies whether the collapse/expand indicator ("twistie") is to be displayed or not |
void |
setShowHorizontalRule(boolean horizontalrule)
Sets the show horizontal rule property. |
Methods inherited from class com.sssw.rt.tview.AgoColumnText |
applyFormat,
getAdjustWidthForContent,
getColor,
getColumnName,
getDatatype,
getFontIdentifier,
getFormatPattern,
getFormatStyle,
getMaxPointSize,
getMinPointSize,
getPropertyName,
initColumnTextHeader,
initColumnTextProperty,
setAdjustWidthForContent,
setColor,
setColumnName,
setFontIdentifier,
setFormatPattern,
setFormatStyle,
setMaxPointSize,
setMinPointSize,
setPropertyName |
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 |
Constructor Detail |
public AgoColumnHierarchy(int width, boolean visible, boolean transparent, Color backgroundColor, int borderType)
width
- the column width, in pixelsvisible
- true means column is visibletransparent
- true means column is transparentColor
- background color of columnborderType
- border type
For the borderType
parameter, see the setBorderType method.
AgoColumnHierarchy colHier = new AgoColumnHierarchy( 100, // width in pixels true, // visible false, // not transparent Color.white, // background color BORDER_3D); // border type
AgoColumnBase.setBorderType(int borderType)
Method Detail |
public void setImageName(String imagename)
imagename
- name of the property whose value is the filename of the image// set the property from which the image filename is to be retrieved - // in this case, the property "Image" should have as its value the image filename colHier.setImageName("Image");
public int getLeftMargin()
AgoColumnHierarchy.setLeftMargin(int margin)
public void setLeftMargin(int margin)
margin
- AgoColumnHierarchy.getLeftMargin()
public int getImageWidth()
int imgWidth = colHier.getImageWidth();
AgoColumnHierarchy.setImageWidth(int imagewidth)
public void setImageWidth(int imagewidth)
imagewidth
- image width, in pixel units.colHier.setImageWodth(20);
AgoColumnHierarchy.getImageWidth()
public int getImageHeight()
int imgHeight = colHier.getImageHeight();
AgoColumnHierarchy.setImageHeight(int imageheight)
public void setImageHeight(int imageheight)
imageheight
- image height, in pixels.colHier.setImageHeight(50);
AgoColumnHierarchy.getImageHeight()
public int getIndentPixels()
int imgIndent = colHier.getIndentPixels();
AgoColumnHierarchy.setIndentPixels(int indentpixels)
public void setIndentPixels(int indentpixels)
indentpixels
- Indent per level, in pixelscolHier.setIndentPixels(20);
AgoColumnHierarchy.getIndentPixels()
public boolean getShowCollapseExpandControl()
If true means the "twistie" control is being displayed.
boolean twistieShowing = colHier.getShowCollapseExpandControl();
AgoColumnHierarchy.getEnableCollapseExpandControl()
,
AgoColumnHierarchy.setShowCollapseExpandControl(boolean collapseexpandcontrol)
public void setShowCollapseExpandControl(boolean collapseexpandcontrol)
collapseexpandcontrol
- If set to true the "twistie" control is displayed.colHier.setShowCollapseExpandControl(true);
AgoColumnHierarchy.getShowCollapseExpandControl()
,
AgoColumnHierarchy.getEnableCollapseExpandControl()
,
AgoColumnHierarchy.setEnableCollapseExpandControl(boolean collapseexpandcontrol)
public boolean getEnableCollapseExpandControl()
boolean twistieActive = colHier.getEnableCollapseExpandControl();
AgoColumnHierarchy.getShowCollapseExpandControl()
,
AgoColumnHierarchy.setEnableCollapseExpandControl(boolean collapseexpandcontrol)
public void setEnableCollapseExpandControl(boolean collapseexpandcontrol)
collapseexpandcontrol
- If set to true the "twistie" control is displayed.colHier.setEnableCollapseExpandControl(true);
AgoColumnHierarchy.getEnableCollapseExpandControl()
,
AgoColumnHierarchy.getShowCollapseExpandControl()
,
AgoColumnHierarchy.setShowCollapseExpandControl(boolean collapseexpandcontrol)
public boolean getShowHorizontalRule()
If true a horizontal line is displayed from the end of the text to the end of the cell.
boolean showingRule = colHier.getShowHorizontalRule();
AgoColumnHierarchy.setShowHorizontalRule(boolean horizontalrule)
public void setShowHorizontalRule(boolean horizontalrule)
horizontalrule
- If set to true, a horizontal line is displayed from the end of the text to the end of the cell.colHier.setShowHorizontalRule(true);
AgoColumnHierarchy.getShowHorizontalRule()
public boolean getCollapseExpandOnDoubleClick()
If true, column expands (shows children) or collapses (hides children) on double-click by user.
boolean willCollapse = colHier.getCollapseExpandOnDoubleClick();
AgoColumnHierarchy.setCollapseExpandOnDoubleClick(boolean collapseexpand)
public void setCollapseExpandOnDoubleClick(boolean collapseexpand)
collapseexpand
- If set to true the column expands/collapses on double-click by user.colHier.setCollapseExpandOnDoubleClick(false);
AgoColumnHierarchy.getCollapseExpandOnDoubleClick()
|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |