|
Calendar Component v5.1 www.calendarcomponent.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.imagine.component.calendar.skins.styles.CalendarSkinStyle
Define the style of a skin. Applying a style on a skin will change some of the properties (colors, fonts, etc) of that skin.
Also a style may obtain dynamic values for some of the calendar skin properties.
A dynamic value is obtained only in the case when a fixed value is not available. So the function
getDynamicalCalendarSkinProperty(calendarSkin, calendarProperty) will be called only for the CalendarSkin properties
which have null values.
By default the function getDynamicalCalendarSkinProperty(calendarSkin, calendarProperty) is calling calendarSkinStyleAdapter.getDynamicalCalendarSkinProperty(calendarSkin, calendarProperty).
The CalendarSkinStyleAdapter class customizes only the font properties.
If it is wanted to be obtained dynamic values for colors and images it must be created a class which extends
CalendarSkinStyleAdapter and set this class to the CalendarSkinStyle using the setCalendarSkinStyleAdapter(calendarSkinStyleAdapter) function.
Please also read the documentation of CalendarSkinStyleAdapter class for more information.
| Constructor Summary | |
CalendarSkinStyle()
|
|
| Method Summary | |
abstract void |
applyStyle(CalendarSkin calendarSkin)
Applies this style on the specified skin. |
CalendarSkinStyleAdapter |
getCalendarSkinStyleAdapter()
Get the adapter object used for obtaining dynamical information based on the current component. |
java.lang.Object |
getDynamicalCalendarSkinProperty(CalendarSkin calendarSkin,
CalendarProperty calendarProperty)
This function will be called from CalendarSkin class every time when a value for a CalendarSkin property is not found in the CalendarSkin. |
abstract java.lang.String |
getName()
Get the name of the style. |
void |
setCalendarSkinStyleAdapter(CalendarSkinStyleAdapter calendarSkinStyleAdapter)
Set the adapter object used for obtaining dynamical information based on the current component. |
java.lang.String |
toString()
A string representation of this style. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CalendarSkinStyle()
| Method Detail |
public abstract void applyStyle(CalendarSkin calendarSkin)
throws CalendarPropertyException
calendarSkin - The calendarSkin on which the style is applied.
CalendarPropertyException
public java.lang.Object getDynamicalCalendarSkinProperty(CalendarSkin calendarSkin,
CalendarProperty calendarProperty)
calendarSkin - The calendarSkin object associatedcalendarProperty - The CalendarProperty for which it is wanted to be obtained the value.
public abstract java.lang.String getName()
public java.lang.String toString()
public CalendarSkinStyleAdapter getCalendarSkinStyleAdapter()
public void setCalendarSkinStyleAdapter(CalendarSkinStyleAdapter calendarSkinStyleAdapter)
calendarSkinStyleAdapter - the adapter object used for obtaining dynamical information based on the current component.
|
Calendar Component v5.1 www.calendarcomponent.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||