Package io.guise.framework.platform.web
Class WebImageBooleanSelectActionControlViewer<C extends ImageBooleanSelectActionControl>
- java.lang.Object
-
- io.guise.framework.platform.AbstractDepictor<C>
-
- io.guise.framework.platform.AbstractComponentDepictor<C>
-
- io.guise.framework.platform.web.AbstractWebComponentDepictor<C>
-
- io.guise.framework.platform.web.AbstractSimpleWebComponentDepictor<C>
-
- io.guise.framework.platform.web.AbstractWebActionControlDepictor<C>
-
- io.guise.framework.platform.web.WebLinkDepictor<C>
-
- io.guise.framework.platform.web.WebImageActionControlDepictor<C>
-
- io.guise.framework.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 aNavigateActionListener
as one of its action listeners, the generatedhref
URI will be that of the listener, and atarget
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.guise.framework.platform.AbstractComponentDepictor
AbstractComponentDepictor.DepictedCompositeComponentListener
-
Nested classes/interfaces inherited from class io.guise.framework.platform.AbstractDepictor
AbstractDepictor.DepictedPropertyChangeListener
-
-
Field Summary
-
Fields inherited from class io.guise.framework.platform.web.AbstractWebComponentDepictor
BODY_END_PATTERN, BODY_START_PATTERN
-
Fields inherited from class io.guise.framework.platform.AbstractComponentDepictor
childPropertyChangeListener
-
Fields inherited from interface io.guise.framework.platform.Depictor
GENERAL_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description WebImageBooleanSelectActionControlViewer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
depictBegin()
Begins the depiction 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 io.guise.framework.platform.web.WebImageActionControlDepictor
depictBody, depictedObjectPropertyChange, getBodyStyles, getOuterStyles, installed, uninstalled
-
Methods inherited from class io.guise.framework.platform.web.WebLinkDepictor
getNavigateActionListener, writeSupplementaryIcons
-
Methods inherited from class io.guise.framework.platform.web.AbstractWebActionControlDepictor
getBaseStyleIDs, processEvent
-
Methods inherited from class io.guise.framework.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 io.guise.framework.platform.AbstractComponentDepictor
depictChild, depictChildren, getDepictedCompositeComponentListener, getErrorMessage
-
Methods inherited from class io.guise.framework.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 io.guise.framework.platform.Depictor
getDepictedObject, getSession, isDepicted, setDepicted
-
-
-
-
Method Detail
-
getImageURI
protected java.net.URI getImageURI()
Determines the image URI to use for this component. If the delegate image is aPendingImageComponent
with a pending image, this version return thePendingImageComponent.getPendingImageURI()
value. Otherwise, this version returns the delegate image'sImageModel.getImageURI()
value.This implementation returns the selected image if the component is selected and there is a selected image.
- Overrides:
getImageURI
in classWebImageActionControlDepictor<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 returnsnull
.This implementation returns the component's rollover image.
- Overrides:
getRolloverImageURI
in classWebImageActionControlDepictor<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
Description copied from class:WebLinkDepictor
Begins the depiction process.This version renders the beginning XML element information, if there is any, leaving the beginning tag open for attributes.
This version writes common XHTML attributes.
This version writes the body ID and class attributes, along with the direction attribute.
This version renders any component info as a link title.
- Overrides:
depictBegin
in classWebLinkDepictor<C extends ImageBooleanSelectActionControl>
- Throws:
java.io.IOException
- if there is an error updating the depiction.
-
-