|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.adempiere.webui.component.ZkCssHelper
public final class ZkCssHelper
Utility function to support ZK functions. Provides functionsfor manipulating the CSS style for ZK components.
| Field Summary | |
|---|---|
static String |
STYLE_BACKGROUND_COLOR
CSS style property for background color. |
static String |
STYLE_COLOR
CSS style property for color. |
static String |
STYLE_TEXT_ALIGN_CENTER
Centre text alignment CSS style property and value. |
static String |
STYLE_TEXT_ALIGN_LEFT
Left text alignment CSS style property and value. |
static String |
STYLE_TEXT_ALIGN_RIGHT
Right text alignment CSS style property and value. |
| Method Summary | |
|---|---|
static void |
appendStyle(HtmlBasedComponent component,
String style)
Adds a new CSS style to component. |
static void |
appendStyleBackgroundColor(HtmlBasedComponent component,
Color color)
Adds a CSS background color style to component. |
static void |
appendStyleColor(HtmlBasedComponent component,
Color color)
Adds a CSS color style to component. |
static String |
createHexColorString(Color color)
Obtains the string description of the RGB components of a color. |
static void |
setStyleBackgroundColor(HtmlBasedComponent component,
Color color)
Sets CSS background color style for component. |
static void |
setStyleColor(HtmlBasedComponent component,
Color color)
Sets CSS color style for component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String STYLE_TEXT_ALIGN_LEFT
public static final String STYLE_TEXT_ALIGN_RIGHT
public static final String STYLE_TEXT_ALIGN_CENTER
public static final String STYLE_COLOR
public static final String STYLE_BACKGROUND_COLOR
| Method Detail |
|---|
public static String createHexColorString(Color color)
color.
The returned string is suitable for using in CSS styles.
The red, green and blue components are formatted as hexadecimal characters.
Each component is in the range 00 to FF.
The entire string is therefore
a 6 character string ranging from "000000" to "FFFFFF".
color - The color for which the string is to be created
public static void appendStyle(HtmlBasedComponent component,
String style)
component.
The ";" prefix is not required.
component - the HTML based ZK component whose CSS style is to be modifiedstyle - CSS style string to append to current style#setStyle(String)
public static void appendStyleColor(HtmlBasedComponent component,
Color color)
component.
The current style of the component is retained.
component - the HTML based ZK component whose CSS style is to be modifiedcolor - the color to be setappendStyleBackgroundColor(HtmlBasedComponent, Color),
setStyleColor(HtmlBasedComponent, Color)
public static void setStyleColor(HtmlBasedComponent component,
Color color)
component.
Previous styles are removed.
component - the HTML based ZK component whose CSS style is to be modifiedcolor - the color to be setsetStyleBackgroundColor(HtmlBasedComponent, Color),
appendStyleColor(HtmlBasedComponent, Color)
public static void appendStyleBackgroundColor(HtmlBasedComponent component,
Color color)
component.
The current style of the component is retained.
component - the HTML based ZK component whose CSS style is to be modifiedcolor - the color to be set#appendStyleBackColor(HtmlBasedComponent, Color),
setStyleBackgroundColor(HtmlBasedComponent, Color)
public static void setStyleBackgroundColor(HtmlBasedComponent component,
Color color)
component.
Previous styles are removed.
component - the HTML based ZK component whose CSS style is to be modifiedcolor - the color to be setappendStyleBackgroundColor(HtmlBasedComponent, Color),
setStyleColor(HtmlBasedComponent, Color)
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||