|
Oracle Fusion Middleware Java API Reference for Oracle ADF Faces 11g Release 2 (11.1.2.0.0) E17488-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.adf.view.rich.util.InstanceStyles
oracle.adf.view.rich.util.CalendarActivityRamp
public final class CalendarActivityRamp
CalendarActivityRamp is a subclass of InstanceStyles Class that takes a color ramp and returns the appropriate styles for the calendar skinning keys passed in.
In many calendars each provider uses different colors, for example owner calendar activities are blue, holiday calendar activities are red, and boss calendar activities are green. However a 'blue' calendar doesn't use a single shade of blue, instead it uses a blue color ramp, some areas are medium, light, or dark blue. A calendarActivityRamp provides styles for a ramp.
CalendarActivityRamp can be used with the activityStyles attribute on the calendar component.
Nested Class Summary | |
---|---|
static class |
CalendarActivityRamp.RampKey |
Constructor Summary | |
---|---|
CalendarActivityRamp(java.awt.Color veryDarkColor, java.awt.Color darkColor, java.awt.Color mediumColor) |
Method Summary | |
---|---|
static CalendarActivityRamp |
getActivityRamp(CalendarActivityRamp.RampKey key) Return a CalendarActivityRamp object based on a key name. |
static CalendarActivityRamp |
getActivityRamp(java.awt.Color representativeColor) Return a CalendarActivityRamp object based on the representative color. |
java.lang.String |
getInlineStyle(java.lang.String skinningKey) |
static java.util.List<java.awt.Color> |
getRampColorKeys() Each time this method is called the internal list is cloned, so cache the return value if possible |
java.awt.Color |
getRepresentativeColor() this color represents the ramp as a whole and could be used to show in a provider 'legend' area or passed to an inputColor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CalendarActivityRamp(java.awt.Color veryDarkColor, java.awt.Color darkColor, java.awt.Color mediumColor)
veryDarkColor
- - very dark color in rampdarkColor
- - dark color in rampmediumColor
- - medium color in rampMethod Detail |
---|
public static java.util.List<java.awt.Color> getRampColorKeys()
public static CalendarActivityRamp getActivityRamp(CalendarActivityRamp.RampKey key)
key
- the key to use to find a CalendarActivityRamp objectpublic static CalendarActivityRamp getActivityRamp(java.awt.Color representativeColor)
representativeColor
- the key to use to find a CalendarActivityRamp objectpublic java.lang.String getInlineStyle(java.lang.String skinningKey)
getInlineStyle
in class InstanceStyles
skinningKey
- publicly documented skinning key, for example "af|inputText"public java.awt.Color getRepresentativeColor()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Faces 11g Release 2 (11.1.2.0.0) E17488-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |