Interface GridControl
- All Superinterfaces:
BackgroundStyleProperties,BorderStyleProperties,ContainerControl,Control,Element,EventOwner,MarginStyleProperties,MessageContainer,java.io.Serializable,TextStyleProperties,WebFormEventOwner
public interface GridControl extends ContainerControl, BackgroundStyleProperties, BorderStyleProperties, MarginStyleProperties, TextStyleProperties
-
Method Summary
Modifier and Type Method Description BorderStylePropertiesgetCellBorder()Border properties for each cell.java.lang.StringgetColumnWidths()A comma separated list of column width percentages in the form 20%,20%,40%,20%.java.lang.StringgetGridClass()Returns the list of CSS classes applied to the table grid.java.lang.StringgetGridStyle()Returns the inline CSS style applied to the table grid.java.lang.StringgetHeight()Grid Control height.java.lang.StringgetWidth()Grid Control width.voidsetColumnWidths(java.lang.String columnWidths)Sets the widths for the grid columns.voidsetGridClass(java.lang.String gridClass)Sets one or more CSS classes to be applied to the table grid.voidsetGridStyle(java.lang.String gridStyle)Sets the inline CSS style to be applied to the table grid.voidsetHeight(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.voidsetWidth(java.lang.String width)Sets the width of the Grid Control.Methods inherited from interface com.ebasetech.xi.api.controls.BackgroundStyleProperties
getBackgroundColor, getBackgroundImage, getBackgroundImagePosition, getBackgroundImageRepeat, setBackgroundColor, setBackgroundImage, setBackgroundImagePosition, setBackgroundImageRepeatMethods inherited from interface com.ebasetech.xi.api.controls.BorderStyleProperties
getBorderColor, getBorderRadius, getBorderStyle, getBorderWidth, getBottomBorderWidth, getLeftBorderWidth, getRightBorderWidth, getTopBorderWidth, setBorderColor, setBorderRadius, setBorderStyle, setBorderWidth, setBottomBorderWidth, setLeftBorderWidth, setRightBorderWidth, setTopBorderWidthMethods inherited from interface com.ebasetech.xi.api.controls.ContainerControl
getChildControlsMethods inherited from interface com.ebasetech.xi.api.controls.Control
addCssClass, getAll, getCssClass, getErrorMsgClass, getErrorMsgStyle, getInfoMsgClass, getInfoMsgStyle, getLayoutCell, getNextSiblingControl, getPage, getParentControl, getPreviousSiblingControl, getRootHtmlElementProperties, 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, showMethods inherited from interface com.ebasetech.xi.api.Element
getElementName, getElementTypeMethods inherited from interface com.ebasetech.xi.api.controls.MarginStyleProperties
getAllMargin, getBottomMargin, getLeftMargin, getRightMargin, getTopMargin, setAllMargin, setBottomMargin, setLeftMargin, setRightMargin, setTopMarginMethods inherited from interface com.ebasetech.xi.api.MessageContainer
addErrorMessage, addErrorMessage, addErrorMessage, addErrorMessage, addErrorMessage, addErrorMessageText, addErrorMessageText, addErrorMessageText, addInfoMessage, addInfoMessage, addInfoMessageText, addInfoMessageText, addInfoMessageText, addWarningMessage, addWarningMessage, addWarningMessage, addWarningMessage, addWarningMessage, addWarningMessageText, addWarningMessageText, addWarningMessageText, existErrorMessages, existInfoMessages, existMessages, existWarningMessagesMethods inherited from interface com.ebasetech.xi.api.controls.TextStyleProperties
getLineHeight, getTextBold, getTextColor, getTextDecoration, getTextFont, getTextItalic, getTextSize, setLineHeight, setTextBold, setTextColor, setTextDecoration, setTextFont, setTextItalic, setTextSize
-
Method Details
-
getGridClass
java.lang.String getGridClass()Returns the list of CSS classes applied to the table grid. Use thecssClassproperty 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.
- Since:
- V4.4
- See Also:
Control.getCssClass(),setGridClass(String)
-
setGridClass
void setGridClass(java.lang.String gridClass)Sets one or more CSS classes to be applied to the table grid. Multiple classes are specified by using a space between the class names, as per the HTML class parameter. Use thecssClassproperty 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.
- Since:
- V4.4
- See Also:
Control.setCssClass(String)
-
getGridStyle
java.lang.String getGridStyle()Returns the inline CSS style applied to the table grid. Use thestyleproperty 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.
- Since:
- V4.4
- See Also:
setGridStyle(String),Control.getStyle()
-
setGridStyle
void setGridStyle(java.lang.String gridStyle)Sets the inline CSS style to be applied to the table grid. Style is entered as for the HTML style parameter.This inline style is configured in the designer using the Advanced Properties button within the Grid Control Styling Assistant.
- Since:
- V4.4
-
getWidth
java.lang.String getWidth()Grid Control width. SeesetWidth(String)for details of supported values when setting this property.- Since:
- V4.4
-
setWidth
void setWidth(java.lang.String width)Sets the width of the Grid Control.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");- Since:
- V4.4
-
getHeight
java.lang.String getHeight()Grid Control height. This is equivalent to the CSS height property, and any valid value for this CSS property can be used when setting a value.- Since:
- V4.4
- See Also:
setHeight(String)
-
setHeight
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. Setting this property tonullremoves any existing value.Examples:
controls.GRIDCONTROL1.height = "50px"; controls.GRIDCONTROL1.setHeight("100px");- Since:
- V4.4
-
getCellBorder
BorderStyleProperties getCellBorder()Border properties for each cell.- Since:
- V4.4
-
getColumnWidths
java.lang.String getColumnWidths()A comma separated list of column width percentages in the form 20%,20%,40%,20%.- Since:
- V4.4
-
setColumnWidths
void setColumnWidths(java.lang.String columnWidths)Sets the widths for the grid columns. This is specified as a comma separated list of column width percentages in the form 20%,20%,40%,20%, where a width for all columns is required.- Since:
- V4.4
-