com.guiseframework.platform.web
Class WebImageBooleanSelectActionControlViewer<C extends ImageBooleanSelectActionControl>
java.lang.Object
com.guiseframework.platform.AbstractDepictor<C>
com.guiseframework.platform.AbstractComponentDepictor<C>
com.guiseframework.platform.web.AbstractWebComponentDepictor<C>
com.guiseframework.platform.web.AbstractSimpleWebComponentDepictor<C>
com.guiseframework.platform.web.AbstractWebActionControlDepictor<C>
com.guiseframework.platform.web.WebLinkDepictor<C>
com.guiseframework.platform.web.WebImageActionControlDepictor<C>
com.guiseframework.platform.web.WebImageBooleanSelectActionControlViewer<C>
- Type Parameters:
C - The type of component being depicted.
- All Implemented Interfaces:
- ComponentDepictor<C>, Depictor<C>, WebComponentDepictor<C>, WebDepictor<C>
public class WebImageBooleanSelectActionControlViewer<C extends ImageBooleanSelectActionControl>
- extends WebImageActionControlDepictor<C>
Strategy for rendering an image select action control as an XHTML <img> inside a <a> element.
If a link has a NavigateActionListener as one of its action listeners, the generated href URI will be that of the listener,
and a target attribute will be set of the listener specifies a viewport ID.
This view uses the following attributes which are not in XHTML:
guise:originalSrc
guise:rolloverSrc
- Author:
- Garret Wilson
|
Method Summary |
protected void |
depictBegin()
Begins the rendering process. |
protected java.net.URI |
getImageURI()
Determines the image URI to use for this component. |
protected java.net.URI |
getRolloverImageURI()
Determines the rollover image URI to use for this component. |
| Methods inherited from class com.guiseframework.platform.web.AbstractWebComponentDepictor |
addFlowStyleIDs, decorateID, depict, depictEnd, getBackgroundColor, getBodyStyleIDs, getColor, getDepictContext, getDepictName, getLabelStyles, getLabelStyles, getLabelStyles, getLocalName, getNamespaceURI, 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 |
WebImageBooleanSelectActionControlViewer
public WebImageBooleanSelectActionControlViewer()
getImageURI
protected java.net.URI getImageURI()
- Determines the image URI to use for this component.
This implementation returns the selected image if the component is selected and there is a selected image.
- Overrides:
getImageURI in class WebImageActionControlDepictor<C extends ImageBooleanSelectActionControl>
- Returns:
- The image to use for the component, or
null if there should not be an image. - See Also:
ImageModel.getImageURI(),
AbstractBooleanSelectActionControl.isSelected(),
ImageBooleanSelectActionControl.getRolloverImageURI()
getRolloverImageURI
protected java.net.URI getRolloverImageURI()
- Determines the rollover image URI to use for this component.
This implementation returns the component's rollover image.
- Overrides:
getRolloverImageURI in class WebImageActionControlDepictor<C extends ImageBooleanSelectActionControl>
- Returns:
- The rollover image to use for the component, or
null if there should be no rollover image. - See Also:
ImageBooleanSelectActionControl.getRolloverImageURI()
depictBegin
protected void depictBegin()
throws java.io.IOException
- Begins the rendering process.
- Overrides:
depictBegin in class WebLinkDepictor<C extends ImageBooleanSelectActionControl>
- Throws:
java.io.IOException - if there is an error rendering the component.
Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.