com.ebasetech.xi.api.controls
Interface BackgroundStyleProperties

All Known Subinterfaces:
AddRowButtonProperties, ButtonColumnControl, ButtonColumnProperties, ButtonControl, ButtonControlProperties, CellStyleProperties, ColumnStyleProperties, EbaseButtonControlProperties, EditorInputProperties, FieldColumnControl, FieldControl, FieldHyperlinkProperties, FieldLayout, FieldLayoutCell, FinishButtonControl, FormHeaderProperties, GridCellControl, GridControl, GroupAndPagePanelProperties, GroupAndPageTextProperties, GroupPanelControl, HorizontalMenuControl, HyperlinkControl, HyperlinkStateProperties, ImageColumnControl, MenuControl, MenuStateProperties, MessageStyleProperties, NavigationBarStyleProperties, NextPageButtonControl, PageControl, PageNavigationButtonStyle, PageNavigationPanel, PagePanelControl, PanelControl, PDFPageStyleProperties, PrevPageButtonControl, RepeatingStyleProperties, RepeatingTableControl, RepeatingTableRowControl, RestoreButtonControl, SaveButtonControl, TableAddRowCellProperties, TableCellStyleProperties, TableColumnHeaderProperties, TableControlStyleProperties, TableControlTextProperties, TableRowStyleProperties, TextControl, VerticalMenuControl

public interface BackgroundStyleProperties

The BackgroundStyleProperties interface represents common background styling properties. It is used wherever a background can be styled.

Further documentation.

Since:
V4.4

Method Summary
 java.lang.String getBackgroundColor()
          Background color.
 java.lang.String getBackgroundImage()
          URL of the background image.
 java.lang.String getBackgroundImagePosition()
          Background image position.
 java.lang.String getBackgroundImageRepeat()
          Background image repeat property.
 void setBackgroundColor(java.lang.String backgroundColor)
          Sets the background color, this is equivalent to the CSS background-color property and any valid value for this CSS property can be used.
 void setBackgroundImage(java.lang.String backgroundImage)
          Sets the URL of the background image.
 void setBackgroundImagePosition(java.lang.String backgroundImagePosition)
          Sets the background image position.
 void setBackgroundImageRepeat(java.lang.String backgroundImageRepeat)
          Sets the background image repeat property.
 

Method Detail

getBackgroundColor

java.lang.String getBackgroundColor()
Background color. This is equivalent to the CSS background-color property, and any valid value for this CSS property can be used when setting a value.

Since:
V4.4
See Also:
setBackgroundColor(String)

setBackgroundColor

void setBackgroundColor(java.lang.String backgroundColor)
Sets the background color, this is equivalent to the CSS background-color property and any valid value for this CSS property can be used. Setting this property to null removes any configured value.

Examples:

 controls.PANEL1.backgroundColor = "#808080";
 controls.TEXT1.setBackgroundColor("yellow");
 

Since:
V4.4

getBackgroundImage

java.lang.String getBackgroundImage()
URL of the background image.

Since:
V4.4
See Also:
setBackgroundImage(String)

setBackgroundImage

void setBackgroundImage(java.lang.String backgroundImage)
Sets the URL of the background image.

A URL can be either absolute or relative.

Examples:
 controls.PANEL1.backgroundImage = "http://www.ebasetech.com/images/logo.gif";
 controls.PANEL1.setBackgroundImage("images/logo.gif");
 

Since:
V4.4

getBackgroundImagePosition

java.lang.String getBackgroundImagePosition()
Background image position. If configured the value will be one of the following:

Since:
V4.4
See Also:
setBackgroundImagePosition(String)

setBackgroundImagePosition

void setBackgroundImagePosition(java.lang.String backgroundImagePosition)
Sets the background image position.

Supported values:

ValueConstant
Top CenterControlConstants.IMAGE_POSITION_TOP_CENTER
Top LeftControlConstants.IMAGE_POSITION_TOP_LEFT
Top RightControlConstants.IMAGE_POSITION_TOP_RIGHT
Center CenterControlConstants.IMAGE_POSITION_CENTER_CENTER
Center LeftControlConstants.IMAGE_POSITION_CENTER_LEFT
Center RightControlConstants.IMAGE_POSITION_CENTER_RIGHT
Bottom CenterControlConstants.IMAGE_POSITION_BOTTOM_CENTER
Bottom LeftControlConstants.IMAGE_POSITION_BOTTOM_LEFT
Bottom RightControlConstants.IMAGE_POSITION_BOTTOM_RIGHT

Setting a value of null removes any existing value for the property.

Examples:

 controls.PANEL1.backgroundImagePosition = ControlConstants.IMAGE_POSITION_BOTTOM_RIGHT;
 controls.PANEL1.setBackgroundImagePosition(ControlConstants.IMAGE_POSITION_CENTER_CENTER);
 

Since:
V4.4

getBackgroundImageRepeat

java.lang.String getBackgroundImageRepeat()
Background image repeat property. This is equivalent to the CSS background-repeat property. If configured the value will be one of the following:

Since:
V4.4
See Also:
setBackgroundImageRepeat(String)

setBackgroundImageRepeat

void setBackgroundImageRepeat(java.lang.String backgroundImageRepeat)
Sets the background image repeat property. This is equivalent to the CSS background-repeat property.

Supported values:

ValueConstant
no-repeatControlConstants.IMAGE_NO_REPEAT
repeatControlConstants.IMAGE_REPEAT
repeat-xControlConstants.IMAGE_REPEAT-X
repeat-yControlConstants.IMAGE_REPEAT-Y

Setting a value of null removes any existing value for the property.

Examples:

 controls.PANEL1.backgroundImageRepeat = ControlConstants.IMAGE_REPEAT;
 controls.PANEL1.setBackgroundImagePosition(ControlConstants.IMAGE_REPEAT-X);
 

Since:
V4.4