com.ebasetech.xi.api.controls
Interface CellStyleProperties

All Superinterfaces:
BackgroundStyleProperties, BorderStyleProperties, PaddingStyleProperties, TextStyleProperties
All Known Subinterfaces:
ButtonColumnControl, ColumnStyleProperties, FieldColumnControl, ImageColumnControl

public interface CellStyleProperties
extends TextStyleProperties, BackgroundStyleProperties, BorderStyleProperties, PaddingStyleProperties

Table Cell properties.

Since:
V4.4

Method Summary
 java.lang.String getHAlign()
          Horizontal alignment of table cell content.
 java.lang.String getVAlign()
          Vertical alignment of table cell content.
 java.lang.String getWidth()
          Width of the table column.
 void setHAlign(java.lang.String hAlign)
          Sets the horizontal alignment of table cell content.
 void setVAlign(java.lang.String vAlign)
          Sets the vertical alignment of table cell content.
 void setWidth(java.lang.String width)
          Sets the width of the table column.
 
Methods inherited from interface com.ebasetech.xi.api.controls.TextStyleProperties
getLineHeight, getTextBold, getTextColor, getTextDecoration, getTextFont, getTextItalic, getTextSize, setLineHeight, setTextBold, setTextColor, setTextDecoration, setTextFont, setTextItalic, setTextSize
 
Methods inherited from interface com.ebasetech.xi.api.controls.BackgroundStyleProperties
getBackgroundColor, getBackgroundImage, getBackgroundImagePosition, getBackgroundImageRepeat, setBackgroundColor, setBackgroundImage, setBackgroundImagePosition, setBackgroundImageRepeat
 
Methods inherited from interface com.ebasetech.xi.api.controls.BorderStyleProperties
getBorderColor, getBorderRadius, getBorderStyle, getBorderWidth, getBottomBorderWidth, getLeftBorderWidth, getRightBorderWidth, getTopBorderWidth, setBorderColor, setBorderRadius, setBorderStyle, setBorderWidth, setBottomBorderWidth, setLeftBorderWidth, setRightBorderWidth, setTopBorderWidth
 
Methods inherited from interface com.ebasetech.xi.api.controls.PaddingStyleProperties
getAllPadding, getBottomPadding, getLeftPadding, getRightPadding, getTopPadding, setAllPadding, setBottomPadding, setLeftPadding, setRightPadding, setTopPadding
 

Method Detail

getWidth

java.lang.String getWidth()
Width of the table column. See setWidth(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 table column. It is recommended that the same width unit is used for all columns within a table.

Any valid value for the CSS width property can be specified e.g. 300px

Since:
V4.4

getHAlign

java.lang.String getHAlign()
Horizontal alignment of table cell content. See setHAlign(String) for details of supported values when setting this property.

Since:
V4.4

setHAlign

void setHAlign(java.lang.String hAlign)
Sets the horizontal alignment of table cell content.

Supported values:

ValueConstant
CenterControlConstants.HORIZONTAL_ALIGNMENT_CENTER
LeftControlConstants.HORIZONTAL_ALIGNMENT_LEFT
RightControlConstants.HORIZONTAL_ALIGNMENT_RIGHT

Example:

 controls.FIELDCOLUMN1.setHAlign(ControlConstants.HORIZONTAL_ALIGNMENT_CENTER);
 

Since:
V4.4

getVAlign

java.lang.String getVAlign()
Vertical alignment of table cell content. See setVAlign(String) for details of supported values when setting this property.

Since:
V4.4

setVAlign

void setVAlign(java.lang.String vAlign)
Sets the vertical alignment of table cell content.

Supported values:

ValueConstant
CenterControlConstants.VERTICAL_ALIGNMENT_CENTER
TopControlConstants.VERTICAL_ALIGNMENT_TOP
BottomControlConstants.VERTICAL_ALIGNMENT_BOTTOM

Example:

 controls.FIELDCOLUMN1.setVAlign(ControlConstants.VERTICAL_ALIGNMENT_TOP);
 

Since:
V4.4