public interface Appearance
extends org.eclipse.emf.ecore.EObject
The following features are supported:
BootstrapPackage.getAppearance()| Modifier and Type | Method and Description |
|---|---|
Appearance |
effectiveAppearance(String path) |
org.eclipse.emf.common.util.EMap<String,org.eclipse.emf.ecore.EObject> |
getAttributes()
Returns the value of the 'Attributes' map.
|
Color |
getBackground()
Returns the value of the 'Background' attribute.
|
org.eclipse.emf.common.util.EList<Border> |
getBorder()
Returns the value of the 'Border' containment reference list.
|
org.eclipse.emf.common.util.EMap<String,Appearance> |
getChildren()
Returns the value of the 'Children' map.
|
org.eclipse.emf.common.util.EList<Float> |
getFloat()
Returns the value of the 'Float' containment reference list.
|
org.eclipse.emf.common.util.EList<Spacing> |
getMargin()
Returns the value of the 'Margin' containment reference list.
|
org.eclipse.emf.common.util.EList<Spacing> |
getPadding()
Returns the value of the 'Padding' containment reference list.
|
Text |
getText()
Returns the value of the 'Text' containment reference.
|
void |
setBackground(Color value)
Sets the value of the '
Background' attribute. |
void |
setText(Text value)
Sets the value of the '
Text' containment reference. |
Color getBackground()
setBackground(Color),
BootstrapPackage.getAppearance_Background()void setBackground(Color value)
Background' attribute.
value - the new value of the 'Background' attribute.getBackground()org.eclipse.emf.common.util.EMap<String,org.eclipse.emf.ecore.EObject> getAttributes()
String,
and the value is of type EObject,
HTML element (tag) attributes.
## Interpolation
Attribute values are interpolated, i.e. tokens in the form of ``${token name[|default value]}`` are replaced with the contextual values or default values, if any. Examples:
* ``${my-style}`` - Token without a default value.
* ``${font-weight|bold}`` - Token with a default value.
## Regular attributes
For all top-level entries except ``class``, ``style``, and ``data`` attribute value is produced by converting the value to string for scalars and to JSON string for lists and maps.
For attributes which do not start with ``data-`` a warning is issued if the value is not a scalar, i.e. a list or a map.
## Class
For class attribute its value is formed by concantenating elements using space as a separator. If elements are hierarchical then class name is formed by concatenation with a dash (``-``) as a separator.
## Data
If value of ``data`` attbibute is a map then keys of that map get concatenated with ``data`` using dash (``-``) as a separator, them same applies to nested maps. Non-map values become attribute values - scalars are converted to string, lists are converted to JSON string.
## Style
Style can be defined as a string, list or map. If style is defined as a list, all list values are concatenated with a space as a separator - it is a convent way for long unstructured definitions.
If style value is a map then the value and its contained map values are processed in the following fashion:
* Keys are concatenated with dash as a separator.
* List values are contcatenated wtih space as a separator.
BootstrapPackage.getAppearance_Attributes()org.eclipse.emf.common.util.EList<Border> getBorder()
Border.
Border configuration.
BootstrapPackage.getAppearance_Border()org.eclipse.emf.common.util.EList<Spacing> getMargin()
Spacing.
Margin configuration.
BootstrapPackage.getAppearance_Margin()org.eclipse.emf.common.util.EList<Spacing> getPadding()
Spacing.
Padding configuration.
BootstrapPackage.getAppearance_Padding()Text getText()
setText(Text),
BootstrapPackage.getAppearance_Text()void setText(Text value)
Text' containment reference.
value - the new value of the 'Text' containment reference.getText()org.eclipse.emf.common.util.EList<Float> getFloat()
Float.
Float configuration.
BootstrapPackage.getAppearance_Float()org.eclipse.emf.common.util.EMap<String,Appearance> getChildren()
String,
and the value is of type Appearance,
BootstrapPackage.getAppearance_Children()Appearance effectiveAppearance(String path)
Copyright © 2021 Nasdanika. All rights reserved.