Package overit.geocall.ecs
Class Icon
java.lang.Object
overit.geocall.ecs.ComposedElement
overit.geocall.ecs.Icon
- All Implemented Interfaces:
Serializable,Cloneable,org.apache.ecs.Element,org.apache.ecs.ElementRegistry
- Direct Known Subclasses:
IconHD
This class manages the Icon and all it's properties.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected intprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected intprotected Stringprotected intprotected Stringstatic final Stringstatic final shortstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final shortstatic final shortstatic final shortstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final intstatic final intstatic final intprotected Stringstatic final Stringstatic final Stringstatic final Stringstatic final 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 TypeMethodDescriptionvoidcompose()protected voidprotected voidReturns the base namegetCopy()Returns a copy of the IconReturns the disabled srcReturns the enabled srcReturns the extensionintReturns the heightGets not standard attributesgetPath()Returns the pathgetSrc()Returns the srcintgetState()Returns the stateintgetWidth()Returns the widthprotected final voidbooleanReturns if is enabledvoidSets the alignvoidSets the alt attribute for the iconvoidsetHeight(int height) Sets the heightvoidSets the idvoidSets the namevoidsetNonStandardAttributes(String attributes) Sets not standard attributessetOnClick(String onclick) Sets the name of the event that is called on clickvoidsetState(int state) Sets the statevoidSets the style attribute for the iconvoidSets the titlevoidsetWidth(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
-
x
- See Also:
-
up
- See Also:
-
upup
- See Also:
-
down
- See Also:
-
downdown
- See Also:
-
left
- See Also:
-
leftleft
- See Also:
-
right
- See Also:
-
rightright
- See Also:
-
opendown
- See Also:
-
closeup
- See Also:
-
grid
- See Also:
-
undo
- See Also:
-
STATE_ENABLED
public static final int STATE_ENABLED- See Also:
-
STATE_NORMAL
public static final int STATE_NORMAL- See Also:
-
STATE_RO
public static final int STATE_RO- See Also:
-
STATE_FORBIDDEN
public static final int STATE_FORBIDDEN- See Also:
-
_icon
-
_officon
-
_path
-
_basename
-
_extension
-
_onclick
-
_width
protected int _width -
_height
protected int _height -
_align
-
_id
-
_title
-
_name
-
altIcon
-
style
-
_nonStandardAttributes
-
_state
protected int _state -
INFER_ALFA
public static final short INFER_ALFA- See Also:
-
INFER_ALFASIZE
public static final short INFER_ALFASIZE- See Also:
-
INFER_ALFAXxY
public static final short INFER_ALFAXxY- See Also:
-
CSS16
public static final short CSS16- See Also:
-
-
Constructor Details
-
Icon
protected Icon() -
Icon
-
Icon
-
-
Method Details
-
infer
-
setOnClick
Sets the name of the event that is called on click- Parameters:
onclick- String containing the name of the event- Returns:
- The Icon
-
setID
Sets the id- Parameters:
id- The id to set
-
setTitle
Sets the title- Parameters:
title- The title to set
-
setAlt
Sets the alt attribute for the icon- Parameters:
alt- The alt attribute for the icon
-
setStyle
Sets the style attribute for the icon- Parameters:
s- The style attribute for the icon
-
setName
Sets the name- Parameters:
name- The name to set
-
setAlign
Sets the align- Parameters:
align- The align to set
-
setState
public void setState(int state) Sets the state- Parameters:
state- The state to set
-
setNonStandardAttributes
Sets not standard attributes- Parameters:
attributes- String containing not standard attributes
-
getNonStandardAttributes
Gets not standard attributes- Returns:
- String containing not standard attributes
-
getState
public int getState()Returns the state- Returns:
- The state
-
isEnabled
public boolean isEnabled()Returns if is enabled- Returns:
- A boolean indicating if is enabled
-
compose
public void compose()- Specified by:
composein classComposedElement
-
composeImage
protected void composeImage() -
composeCss
protected void composeCss() -
getBasename
Returns the base name- Returns:
- The base name
-
getPath
Returns the path- Returns:
- The path
-
getExtension
Returns the extension- Returns:
- The extension
-
getWidth
public int getWidth()Returns the width- Returns:
- The width
-
getHeight
public int getHeight()Returns the height- Returns:
- The height
-
setWidth
public void setWidth(int width) Sets the width- Parameters:
width- The width to set
-
setHeight
public void setHeight(int height) Sets the height- Parameters:
height- The height to set
-
getCopy
Returns a copy of the Icon- Returns:
- A copy of the Icon
-
getSrc
Returns the src- Returns:
- The src
-
getEnabledSrc
Returns the enabled src- Returns:
- The enabled src
-
getDisabledSrc
Returns the disabled src- Returns:
- The disabled src
-