Oxygen XML Editor 15.0 Author API

ro.sync.ecss.css.functions
Interface LabelCSSConstants


@API(type=EXTENDABLE,
     src=PUBLIC)
public interface LabelCSSConstants

Processed arguments of the oxy_label function.


Field Summary
static java.lang.String BACKGROUND_COLOR_PROPERTY
          A background color for the label.
static java.lang.String BASE_SYSTEM_ID
          Base system id to be used to resolve imports from STYLES_PROPERTY.
static java.lang.String COLOR_PROPERTY
          A foreground color for the text.
static java.lang.String STYLES_PROPERTY
          Possibility to specify CSS rules for this label.
static java.lang.String TEXT_ALIGN_PROPERTY
          The alignment of the label.
static java.lang.String TEXT_PROPERTY
          The text that will be displayed as a label.
static java.lang.String WIDTH_PROPERTY
          The width of the label.
 

Field Detail

TEXT_PROPERTY

static final java.lang.String TEXT_PROPERTY
The text that will be displayed as a label. A string value.

See Also:
Constant Field Values

WIDTH_PROPERTY

static final java.lang.String WIDTH_PROPERTY
The width of the label. An RelativeLength.

See Also:
Constant Field Values

TEXT_ALIGN_PROPERTY

static final java.lang.String TEXT_ALIGN_PROPERTY
The alignment of the label. A string value: left, right or center.

See Also:
Constant Field Values

COLOR_PROPERTY

static final java.lang.String COLOR_PROPERTY
A foreground color for the text. A Color.

See Also:
Constant Field Values

BACKGROUND_COLOR_PROPERTY

static final java.lang.String BACKGROUND_COLOR_PROPERTY
A background color for the label. A Color.

See Also:
Constant Field Values

STYLES_PROPERTY

static final java.lang.String STYLES_PROPERTY

Possibility to specify CSS rules for this label.

Example: * { text-align:right; color:red; }

The selectors are ignored, all rules are considered to match.

You can also specify as CSS something like: @import 'label_styles.css'; Relative imports will be resolved relative to BASE_SYSTEM_ID. This approach is useful to easily reuse the same styles for more oxy_labels.

See Also:
Constant Field Values

BASE_SYSTEM_ID

static final java.lang.String BASE_SYSTEM_ID
Base system id to be used to resolve imports from STYLES_PROPERTY. This normally is the system ID of the CSS file in which the oxy_label was encountered.

See Also:
Constant Field Values

Oxygen XML Editor 15.0 Author API

© Copyright SyncRO Soft SRL 2002 - 2013. All rights reserved.