com.guiseframework.platform.web
Class AbstractWebMenuDepictor<C extends Menu>
java.lang.Object
com.guiseframework.platform.AbstractDepictor<C>
com.guiseframework.platform.AbstractComponentDepictor<C>
com.guiseframework.platform.web.AbstractWebComponentDepictor<C>
com.guiseframework.platform.web.AbstractWebLayoutComponentDepictor<C>
com.guiseframework.platform.web.AbstractWebMenuDepictor<C>
- Type Parameters:
C - The type of component being depicted.
- All Implemented Interfaces:
- ComponentDepictor<C>, Depictor<C>, WebComponentDepictor<C>, WebDepictor<C>
- Direct Known Subclasses:
- WebAccordionMenuDepictor, WebDropMenuDepictor
public abstract class AbstractWebMenuDepictor<C extends Menu>
- extends AbstractWebLayoutComponentDepictor<C>
Abstract strategy for rendering a menu.
- Author:
- Garret Wilson
|
Constructor Summary |
AbstractWebMenuDepictor()
Default constructor with no element representation. |
AbstractWebMenuDepictor(java.net.URI namespaceURI,
java.lang.String localName)
Element namespace and local name constructor that doesn't create an empty element, even if there is no content. |
AbstractWebMenuDepictor(java.net.URI namespaceURI,
java.lang.String localName,
boolean isEmptyElementAllowed)
Element namespace and local name constructor. |
|
Method Summary |
protected java.util.Set<java.lang.String> |
getBaseStyleIDs(java.lang.String prefix,
java.lang.String suffix)
Retrieves the base style IDs for the given component. |
void |
processEvent(PlatformEvent event)
Processes an event from the platform. |
| Methods inherited from class com.guiseframework.platform.web.AbstractWebComponentDepictor |
addFlowStyleIDs, decorateID, depict, depictBegin, depictBody, depictEnd, getBackgroundColor, getBodyStyleIDs, getBodyStyles, getColor, getDepictContext, getDepictName, getLabelStyles, getLabelStyles, getLabelStyles, getLocalName, getNamespaceURI, getOuterStyles, getPlatform, hasLabelContent, hasLabelContent, hasLabelContent, hasLabelContent, isEmptyElementAllowed, isMouseListener, writeBodyIDClassAttributes, writeClassAttribute, writeDirectionAttribute, writeDirectionAttribute, writeErrorMessage, writeFloatClear, writeIDAttribute, writeIDClassAttributes, writeLabel, writeLabelContent, writeLabelContent, writeLabelContent, writeLabelContent, writeLabelContent, writeLabelContent, writeParameterInputs, writeStyleAttribute, writeText |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractWebMenuDepictor
public AbstractWebMenuDepictor()
- Default constructor with no element representation.
AbstractWebMenuDepictor
public AbstractWebMenuDepictor(java.net.URI namespaceURI,
java.lang.String localName)
- Element namespace and local name constructor that doesn't create an empty element, even if there is no content.
- Parameters:
namespaceURI - The URI of the XML namespace of the element, or null if there is no namespace.localName - The local name of the element with no prefix, or null if this component should not be rendered as an element.
AbstractWebMenuDepictor
public AbstractWebMenuDepictor(java.net.URI namespaceURI,
java.lang.String localName,
boolean isEmptyElementAllowed)
- Element namespace and local name constructor.
- Parameters:
namespaceURI - The URI of the XML namespace of the element, or null if there is no namespace.localName - The local name of the element with no prefix, or null if this component should not be rendered as an element.isEmptyElementAllowed - Whether an empty element can be created if there is no content.
processEvent
public void processEvent(PlatformEvent event)
- Processes an event from the platform.
- Specified by:
processEvent in interface Depictor<C extends Menu>- Overrides:
processEvent in class AbstractComponentDepictor<C extends Menu>
- Parameters:
event - The event to be processed.
- Throws:
java.lang.IllegalArgumentException - if the given event is a relevant DepictEvent with a source of a different depicted object.
getBaseStyleIDs
protected java.util.Set<java.lang.String> getBaseStyleIDs(java.lang.String prefix,
java.lang.String suffix)
- Retrieves the base style IDs for the given component.
This version adds attributes based upon the menu axis and orientation, as well as whether the menu is open and/or in a rollover state.
- Overrides:
getBaseStyleIDs in class AbstractWebComponentDepictor<C extends Menu>
- Parameters:
prefix - The prefix that needs to be added to each, or null if there is no prefix to add.suffix - The suffix that needs to be added to each, or null if there is no suffix to add.
- Returns:
- The base style IDs for the component.
- See Also:
AbstractWebComponentDepictor.addFlowStyleIDs(Set, com.guiseframework.component.layout.Flow),
GuiseCSSStyleConstants.OPEN_CLASS,
GuiseCSSStyleConstants.ROLLOVER_CLASS
Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.