public interface GridControl extends ContainerControl, BackgroundStyleProperties, BorderStyleProperties, MarginStyleProperties, TextStyleProperties
Modifier and Type | Method and Description |
---|---|
BorderStyleProperties |
getCellBorder()
Border properties for each cell.
|
java.lang.String |
getColumnWidths()
A comma separated list of column width percentages in the form 20%,20%,40%,20%.
|
java.lang.String |
getGridClass()
Returns the list of CSS classes applied to the table grid.
|
java.lang.String |
getGridStyle()
Returns the inline CSS style applied to the table grid.
|
java.lang.String |
getHeight()
Grid Control height.
|
java.lang.String |
getWidth()
Grid Control width.
|
void |
setColumnWidths(java.lang.String columnWidths)
Sets the widths for the grid columns.
|
void |
setGridClass(java.lang.String gridClass)
Sets one or more CSS classes to be applied to the table grid.
|
void |
setGridStyle(java.lang.String gridStyle)
Sets the inline CSS style to be applied to the table grid.
|
void |
setHeight(java.lang.String height)
Sets the panel height, and is equivalent to the CSS height property and any valid value for this CSS property can be used.
|
void |
setWidth(java.lang.String width)
Sets the width of the Grid Control.
|
getChildControls
addCssClass, getAll, getCssClass, getErrorMsgClass, getErrorMsgStyle, getInfoMsgClass, getInfoMsgStyle, getLayoutCell, getNextSiblingControl, getPage, getParentControl, getPreviousSiblingControl, getStyle, getWarningMsgClass, getWarningMsgStyle, hasModifier, hide, isContainer, isDisplayOnly, isDisplayOnlyIncludingParents, isEventField, isHidden, isInheritMsg, isLocalMsg, isNewLine, isShowing, refresh, removeCssClass, requestFocus, setCssClass, setDisplayOnly, setErrorMsgClass, setErrorMsgStyle, setHidden, setInfoMsgClass, setInfoMsgStyle, setNewLine, setStyle, setWarningMsgClass, setWarningMsgStyle, show
getElementName, getElementType
addErrorMessage, addErrorMessage, addErrorMessage, addErrorMessage, addErrorMessage, addErrorMessageText, addErrorMessageText, addErrorMessageText, addInfoMessage, addInfoMessage, addInfoMessageText, addInfoMessageText, addInfoMessageText, addWarningMessage, addWarningMessage, addWarningMessage, addWarningMessage, addWarningMessage, addWarningMessageText, addWarningMessageText, addWarningMessageText, existErrorMessages, existInfoMessages, existMessages, existWarningMessages
getBackgroundColor, getBackgroundImage, getBackgroundImagePosition, getBackgroundImageRepeat, setBackgroundColor, setBackgroundImage, setBackgroundImagePosition, setBackgroundImageRepeat
getBorderColor, getBorderRadius, getBorderStyle, getBorderWidth, getBottomBorderWidth, getLeftBorderWidth, getRightBorderWidth, getTopBorderWidth, setBorderColor, setBorderRadius, setBorderStyle, setBorderWidth, setBottomBorderWidth, setLeftBorderWidth, setRightBorderWidth, setTopBorderWidth
getAllMargin, getBottomMargin, getLeftMargin, getRightMargin, getTopMargin, setAllMargin, setBottomMargin, setLeftMargin, setRightMargin, setTopMargin
getLineHeight, getTextBold, getTextColor, getTextDecoration, getTextFont, getTextItalic, getTextSize, setLineHeight, setTextBold, setTextColor, setTextDecoration, setTextFont, setTextItalic, setTextSize
java.lang.String getGridClass()
cssClass
property in preference to this property to style a grid.
These classes are configured in the designer using the Advanced Properties button within the Grid Control Styling Assistant.
Control.getCssClass()
,
setGridClass(String)
void setGridClass(java.lang.String gridClass)
cssClass
property in preference to this property to style a grid.
These classes are configured in the designer using the Advanced Properties button within the Grid Control Styling Assistant.
Control.setCssClass(String)
java.lang.String getGridStyle()
style
property in preference to this property to style a grid.
This inline style is configured in the designer using the Advanced Properties button within the Grid Control Styling Assistant.
setGridStyle(String)
,
Control.getStyle()
void setGridStyle(java.lang.String gridStyle)
This inline style is configured in the designer using the Advanced Properties button within the Grid Control Styling Assistant.
java.lang.String getWidth()
setWidth(String)
for details of supported values when setting this property.void setWidth(java.lang.String width)
Supported values:
Value | Description |
---|---|
A specific value | As per the CSS width property e.g. 300px |
Child | The minimum value: this results in the Grid Control being just as wide as it needs to be to accommodate its children. |
The width setting will be ignored if the parent container layout specifies a horizontal cell alignment of fill (this applies to Horizontal Box, Vertical Box and Column layouts).
Warning: when a specific value is set, any padding, border or margins will be in addition to the specified value and can cause the Grid Control to "break out" of its parent space.
Examples:
controls.GRIDCONTROL1.width = "300px"; controls.GRIDCONTROL1.width = "50%"; controls.GRIDCONTROL1.setWidth("Child");
java.lang.String getHeight()
setHeight(String)
void setHeight(java.lang.String height)
null
removes any existing value.
Examples:
controls.GRIDCONTROL1.height = "50px"; controls.GRIDCONTROL1.setHeight("100px");
BorderStyleProperties getCellBorder()
java.lang.String getColumnWidths()
void setColumnWidths(java.lang.String columnWidths)