Package io.guise.framework.platform.web
Class WebSelectableLabelDepictor<C extends SelectableLabel>
- 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.WebLabelDepictor<C>
-
- io.guise.framework.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 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 WebSelectableLabelDepictor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 io.guise.framework.platform.web.WebLabelDepictor
depictBody
-
Methods inherited from class io.guise.framework.platform.web.AbstractSimpleWebComponentDepictor
depictBegin, getOuterStyles
-
Methods inherited from class io.guise.framework.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 io.guise.framework.platform.AbstractComponentDepictor
depictChild, depictChildren, depictedObjectPropertyChange, getDepictedCompositeComponentListener, getErrorMessage, installed, processEvent, uninstalled
-
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, installed, isDepicted, processEvent, setDepicted, uninstalled
-
-
-
-
Method Detail
-
getColor
protected Color getColor()
Determines the color for rendering the component.This version delegates to
PresentationModel.getTextColor()
.This version uses the selected color if available and the component is selected.
- Overrides:
getColor
in classAbstractWebComponentDepictor<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 delegates to
PresentationModel.getBackgroundColor()
.This version uses the selected background color if available and the component is selected.
- Overrides:
getBackgroundColor
in classAbstractWebComponentDepictor<C extends SelectableLabel>
- Returns:
- The background color to use for this component.
- See Also:
SelectableLabel.getSelectedBackgroundColor()
-
-