public final class UITableCellStyleHandler extends Object
It can be accessed from UIResponseContext.getTableCellStyleHandler()
.
Modifier and Type | Class and Description |
---|---|
static class |
UITableCellStyleHandler.BackgroundRepeat |
Modifier and Type | Method and Description |
---|---|
String |
getBackgroundColor()
Returns the background color set for the cell.
|
String |
getBackgroundImage()
Returns the background image set for the cell.
|
String |
getBackgroundPosition()
Returns the background position set for the cell.
|
UITableCellStyleHandler.BackgroundRepeat |
getBackgroundRepeat()
Returns the background repeat set for the cell.
|
boolean |
isEmpty()
Returns
true if a least one property (color/image/position) has been set,
false otherwise. |
boolean |
setBackgroundColor(String htmlBackgroundColor)
Sets a background color for the cell.
|
void |
setBackgroundImage(String imageURL,
UITableCellStyleHandler.BackgroundRepeat backgroundRepeat)
Sets a background image for the cell.
|
void |
setBackgroundImage(String imageURL,
UITableCellStyleHandler.BackgroundRepeat backgroundRepeat,
String backgroundPosition)
Sets a background image for the cell.
|
public boolean isEmpty()
true
if a least one property (color/image/position) has been set,
false
otherwise.public boolean setBackgroundColor(String htmlBackgroundColor)
htmlBackgroundColor
- accepts HTML hexadecimal RGB colors,
for example, light orange could be expressed as #FFDD99, FFDD99, #FD9 or FD9.true
if htmlBackgroundColor
is well formed,
otherwise returns false
.public void setBackgroundImage(String imageURL, UITableCellStyleHandler.BackgroundRepeat backgroundRepeat)
Known limitation: On Internet Explorer 8, if the cell has an inherited value, the background image will not be displayed.
imageURL
- the URL of the background image.backgroundRepeat
- the repeat mode of the background image.public void setBackgroundImage(String imageURL, UITableCellStyleHandler.BackgroundRepeat backgroundRepeat, String backgroundPosition)
Known limitation: On Internet Explorer 8, if the cell has an inherited value, the background image will not be displayed.
imageURL
- the URL of the background image.backgroundRepeat
- the repeat mode of the background image.backgroundPosition
- the CSS position of the background image
("left center" or "50% 50%" or "0px 10px" ...).public String getBackgroundColor()
public String getBackgroundImage()
public UITableCellStyleHandler.BackgroundRepeat getBackgroundRepeat()
public String getBackgroundPosition()