Package ro.sync.ecss.css
Class LabelContent
- java.lang.Object
-
- ro.sync.ecss.css.LabelContent
-
- All Implemented Interfaces:
StaticContent
@API(type=NOT_EXTENDABLE, src=PRIVATE) public class LabelContent extends java.lang.Object implements StaticContent
The content correspondent to an oxy_label function.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
WIDTH_RAW_PROPERTY
The width of the label.-
Fields inherited from interface ro.sync.ecss.css.StaticContent
CONTENT_CONTENT, COUNTER_CONTENT, COUNTERS_CONTENT, EDITOR_CONTENT, LABEL_CONTENT, LEADER_CONTENT, STRING_FUNCTION_CONTENT, TARGET_COUNTER_CONTENT, TARGET_COUNTERS_CONTENT, TEXT_CONTENT, URI_CONTENT
-
-
Constructor Summary
Constructors Constructor Description LabelContent(java.util.Map<java.lang.String,java.lang.Object> properties)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.util.Map<java.lang.String,java.lang.Object>
getProperties()
int
getType()
Gets the content type.int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
WIDTH_RAW_PROPERTY
public static final java.lang.String WIDTH_RAW_PROPERTY
The width of the label. The values are parsed values of the "width" property from CSS. For example 20em. Not intended for public use.- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public int getType()
Description copied from interface:StaticContent
Gets the content type.- Specified by:
getType
in interfaceStaticContent
- Returns:
- The content type.
- See Also:
StaticContent.getType()
-
getProperties
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
- Returns:
- Returns the properties. The keys are defined as constants in
LabelCSSConstants
.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
- See Also:
Object.hashCode()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(java.lang.Object)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
-