Package overit.geocall.ecs
Class Depiction
java.lang.Object
overit.geocall.ecs.ComposedElement
overit.geocall.ecs.Depiction
- All Implemented Interfaces:
org.apache.ecs.Element,org.apache.ecs.ElementRegistry
Class that manages a Depiction, used in the TaskBar and TaskBarPage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected Stringprotected Stringprotected StringFields inherited from class overit.geocall.ecs.ComposedElement
_osOut, _pw, _pwOutFields inherited from interface org.apache.ecs.Element
CENTER, LEFT, LOWERCASE, MIXEDCASE, RIGHT, UPPERCASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(String name, String value) Adds an attributeprotected voidcompose()booleanisEmpty()Returnstrueif is empty,falseotherwisevoidSets the cssvoidsetHeight(int height) Sets the heightvoidSets the stylevoidsetWidth(int width) Sets the widthMethods inherited from class overit.geocall.ecs.ComposedElement
addElementToRegistry, addElementToRegistry, createEndTag, createStartTag, getBeginEndModifier, getBeginEndModifierDefined, getBeginStartModifier, getBeginStartModifierDefined, getCase, getCodeSet, getElementType, getEndEndModifier, getEndEndModifierDefined, getEndStartModifier, getEndStartModifierDefined, getEndTagChar, getFilterState, getNeedClosingTag, getNeedLineBreak, getPrettyPrint, getStartTagChar, getTabLevel, getTagPosition, getTagText, getVersion, out, out, outAttribute, outListAttribute, outListAttribute, outOn, outOut, output, output, registryHasElement, registryHasElement, removeBeginEndModifier, removeBeginStartModifier, removeElementFromRegistry, removeElementFromRegistry, removeEndEndModifier, removeEndStartModifier, setBeginEndModifier, setBeginModifier, setBeginModifier, setBeginStartModifier, setCase, setCodeSet, setElementType, setEndEndModifier, setEndModifier, setEndModifier, setEndStartModifier, setEndTagChar, setFilterState, setNeedClosingTag, setPrettyPrint, setStartTagChar, setTabLevel, setTagPosition, setTagText, toString, toString
-
Field Details
-
initials
-
color
protected int color -
css
-
style
-
attributes
-
-
Constructor Details
-
Depiction
Creates a new Depiction- Parameters:
image- The imagewords- List of words
-
-
Method Details
-
addAttribute
Adds an attribute- Parameters:
name- name of the key with which the specified value is to be associatedvalue- value to be associated with the specified key
-
setCss
Sets the css- Parameters:
css- String containing the css
-
setStyle
Sets the style- Parameters:
style- String containing the style
-
setWidth
public void setWidth(int width) Sets the width- Parameters:
width- The width
-
setHeight
public void setHeight(int height) Sets the height- Parameters:
height- The height
-
isEmpty
public boolean isEmpty()Returnstrueif is empty,falseotherwise- Returns:
trueif is empty,falseotherwise
-
compose
protected void compose()- Specified by:
composein classComposedElement
-