com.guiseframework.platform.web
Class WebImageBooleanSelectActionControlViewer<C extends ImageBooleanSelectActionControl>

java.lang.Object
  extended by com.guiseframework.platform.AbstractDepictor<C>
      extended by com.guiseframework.platform.AbstractComponentDepictor<C>
          extended by com.guiseframework.platform.web.AbstractWebComponentDepictor<C>
              extended by com.guiseframework.platform.web.AbstractSimpleWebComponentDepictor<C>
                  extended by com.guiseframework.platform.web.AbstractWebActionControlDepictor<C>
                      extended by com.guiseframework.platform.web.WebLinkDepictor<C>
                          extended by com.guiseframework.platform.web.WebImageActionControlDepictor<C>
                              extended by 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:

Author:
Garret Wilson

Nested Class Summary
 
Nested classes/interfaces inherited from class com.guiseframework.platform.AbstractComponentDepictor
AbstractComponentDepictor.DepictedCompositeComponentListener
 
Nested classes/interfaces inherited from class com.guiseframework.platform.AbstractDepictor
AbstractDepictor.DepictedPropertyChangeListener
 
Field Summary
 
Fields inherited from class com.guiseframework.platform.web.AbstractWebComponentDepictor
BODY_END_PATTERN, BODY_START_PATTERN
 
Fields inherited from class com.guiseframework.platform.AbstractComponentDepictor
childPropertyChangeListener
 
Fields inherited from interface com.guiseframework.platform.Depictor
GENERAL_PROPERTY
 
Constructor Summary
WebImageBooleanSelectActionControlViewer()
           
 
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.WebImageActionControlDepictor
depictBody, depictedObjectPropertyChange, getBodyStyles, getOuterStyles, installed, uninstalled
 
Methods inherited from class com.guiseframework.platform.web.WebLinkDepictor
getNavigateActionListener, writeSupplementaryIcons
 
Methods inherited from class com.guiseframework.platform.web.AbstractWebActionControlDepictor
getBaseStyleIDs, processEvent
 
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 com.guiseframework.platform.AbstractComponentDepictor
depictChild, depictChildren, getDepictedCompositeComponentListener, getErrorMessage
 
Methods inherited from class com.guiseframework.platform.AbstractDepictor
getDepictedObject, getDepictedPropertyChangeListener, getIgnoredProperties, getModifiedProperties, getSession, isDepicted, setDepicted, setPropertyModified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.guiseframework.platform.Depictor
getDepictedObject, getSession, isDepicted, setDepicted
 

Constructor Detail

WebImageBooleanSelectActionControlViewer

public WebImageBooleanSelectActionControlViewer()
Method Detail

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.