embedCONTROLCore
Classes | Public Member Functions | List of all members
com.thecoderscorner.embedcontrol.core.controlmgr.color.ConditionalColoring Interface Reference
Inheritance diagram for com.thecoderscorner.embedcontrol.core.controlmgr.color.ConditionalColoring:
com.thecoderscorner.embedcontrol.core.controlmgr.color.NullConditionalColoring

Classes

enum  ColorComponentType
 

Public Member Functions

PortableColor foregroundFor (RenderingStatus status, ColorComponentType compType)
 
PortableColor backgroundFor (RenderingStatus status, ColorComponentType compType)
 

Detailed Description

Represents the color of a control, both background and foreground. The color can change depending on the current state and component type, for example when it recently updated or if an error occurred, the full list of possibilities is in the enum.


Class Documentation

◆ com::thecoderscorner::embedcontrol::core::controlmgr::color::ConditionalColoring::ColorComponentType

enum com::thecoderscorner::embedcontrol::core::controlmgr::color::ConditionalColoring::ColorComponentType

Indicates the current drawing mode of this conditional color

Enumerator
BUTTON
CUSTOM
DIALOG
ERROR
HIGHLIGHT
PENDING
TEXT_FIELD

Member Function Documentation

◆ backgroundFor()

PortableColor com.thecoderscorner.embedcontrol.core.controlmgr.color.ConditionalColoring.backgroundFor ( RenderingStatus  status,
ColorComponentType  compType 
)

Gets the background color associated with the current state or compType.

Parameters
statusthe current rendering status
compTypethe type of color to select
Returns
the color associated with the state for background

Implemented in com.thecoderscorner.embedcontrol.core.controlmgr.color.NullConditionalColoring.

◆ foregroundFor()

PortableColor com.thecoderscorner.embedcontrol.core.controlmgr.color.ConditionalColoring.foregroundFor ( RenderingStatus  status,
ColorComponentType  compType 
)

Gets the foreground color associated with the current state or compType.

Parameters
statusthe current rendering status
compTypethe type of color to select
Returns
the color associated with the state for foreground

Implemented in com.thecoderscorner.embedcontrol.core.controlmgr.color.NullConditionalColoring.


The documentation for this interface was generated from the following file: