com.guiseframework.platform.web
Class WebSelectableLabelDepictor<C extends SelectableLabel>

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.WebLabelDepictor<C>
                      extended by com.guiseframework.platform.web.WebSelectableLabelDepictor<C>
Type Parameters:
C - The type of component being depicted.
All Implemented Interfaces:
ComponentDepictor<C>, Depictor<C>, WebComponentDepictor<C>, WebDepictor<C>

public class WebSelectableLabelDepictor<C extends SelectableLabel>
extends WebLabelDepictor<C>

Strategy for rendering a label component that is selectable.

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
WebSelectableLabelDepictor()
           
 
Method Summary
protected  Color getBackgroundColor()
          Determines the background color for rendering the component.
protected  Color getColor()
          Determines the color for rendering the component.
 
Methods inherited from class com.guiseframework.platform.web.WebLabelDepictor
depictBody
 
Methods inherited from class com.guiseframework.platform.web.AbstractSimpleWebComponentDepictor
depictBegin, getOuterStyles
 
Methods inherited from class com.guiseframework.platform.web.AbstractWebComponentDepictor
addFlowStyleIDs, decorateID, depict, depictEnd, getBaseStyleIDs, getBodyStyleIDs, getBodyStyles, 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, depictedObjectPropertyChange, getDepictedCompositeComponentListener, getErrorMessage, installed, processEvent, uninstalled
 
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, installed, isDepicted, processEvent, setDepicted, uninstalled
 

Constructor Detail

WebSelectableLabelDepictor

public WebSelectableLabelDepictor()
Method Detail

getColor

protected Color getColor()
Determines the color for rendering the component. This version uses the selected color if available and the component is selected.

Overrides:
getColor in class AbstractWebComponentDepictor<C extends SelectableLabel>
Returns:
The color to use for this component.
See Also:
SelectableLabel.getSelectedBackgroundColor()

getBackgroundColor

protected Color getBackgroundColor()
Determines the background color for rendering the component. This version uses the selected background color if available and the component is selected.

Overrides:
getBackgroundColor in class AbstractWebComponentDepictor<C extends SelectableLabel>
Returns:
The background color to use for this component.
See Also:
SelectableLabel.getSelectedBackgroundColor()


Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.