org.apache.ecs
Class Style
java.lang.Object
|
+--org.apache.ecs.Element
|
+--org.apache.ecs.ElementAttributes
|
+--org.apache.ecs.ConcreteElement
|
+--org.apache.ecs.MultiPartElement
|
+--org.apache.ecs.Style
- public class Style
- extends MultiPartElement
This class creates a <Style> tag.
- Version:
- $Id: Style.java,v 1.4 1999/05/14 23:40:38 jonbolt Exp $
- Author:
- Stephan Nagy, Jon S. Stevens
Field Summary |
static java.lang.String |
css
type=text/css |
static java.lang.String |
CSS
type=text/css |
Constructor Summary |
Style()
Basic constructor. |
Style(java.lang.String type)
Basic constructor. |
Style(java.lang.String type,
Element element)
Basic constructor. |
Style(java.lang.String type,
java.lang.String element)
Basic constructor. |
Method Summary |
(package private) void |
()
Private initialization routine. |
Style |
addElement(Element element)
Adds an Element to the element. |
Style |
addElement(java.lang.String element)
Adds an Element to the element. |
Style |
removeElement(java.lang.String hashcode)
Removes an Element from the element. |
Style |
setMedia(java.lang.String media)
Sets the MEDIA="" attribute |
Style |
setType(java.lang.String type)
Sets the TYPE="" attribute |
Methods inherited from class org.apache.ecs.ConcreteElement |
addElementToRegistry,
addElementToRegistry,
addElementToRegistry,
addElementToRegistry,
addElementToRegistry,
addElementToRegistry,
addElementToRegistry,
addElementToRegistry,
output,
output,
registryHasElement,
registryHasElement,
removeElementFromRegistry,
removeElementFromRegistry |
Methods inherited from class org.apache.ecs.ElementAttributes |
addAttribute,
clone,
getAttributeFilter,
getAttributeFilterState,
getEndModifier,
getEndModifierDefined,
getStartModifier,
getStartModifierDefined,
hasAttribute,
removeAttribute,
removeEndModifier,
removeStartModifier,
setAttributeFilter,
setAttributeFilterState,
setClass,
setDir,
setEndModifier,
setEndModifierDefined,
setID,
setLang,
setModifier,
setModifier,
setStartModifier,
setStartModifierDefined,
setStyle,
setTitle |
Methods inherited from class org.apache.ecs.Element |
alterCase,
getCase,
getCodeSet,
getElementHashEntry,
getElementType,
getFilter,
getFilterState,
getNeedClosingTag,
getTagPosition,
getVersion,
setCase,
setCodeSet,
setElementType,
setFilter,
setFilterState,
setNeedClosingTag,
setTagPosition,
toString,
toString |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
CSS
public static final java.lang.String CSS
- type=text/css
css
public static final java.lang.String css
- type=text/css
Style
public Style()
- Basic constructor.
Style
public Style(java.lang.String type)
- Basic constructor.
- Parameters:
type
- the TYPE="" attribute
Style
public Style(java.lang.String type,
Element element)
- Basic constructor.
- Parameters:
type
- the TYPE="" attributeelement
- Adds an Element to the element.
Style
public Style(java.lang.String type,
java.lang.String element)
- Basic constructor.
- Parameters:
type
- the TYPE="" attributeelement
- Adds an Element to the element.
void ()
- Private initialization routine.
- Overrides:
- in class MultiPartElement
setType
public Style setType(java.lang.String type)
- Sets the TYPE="" attribute
- Parameters:
type
- the TYPE="" attribute
setMedia
public Style setMedia(java.lang.String media)
- Sets the MEDIA="" attribute
- Parameters:
media
- the MEDIA="" attribute
addElement
public Style addElement(Element element)
- Adds an Element to the element.
- Parameters:
element
- Adds an Element to the element.
addElement
public Style addElement(java.lang.String element)
- Adds an Element to the element.
- Parameters:
element
- Adds an Element to the element.
removeElement
public Style removeElement(java.lang.String hashcode)
- Removes an Element from the element.
- Parameters:
hashcode
- the name of the element to be removed.