|
pseudo.clnd.Calendar.clnd.Calendar()
|
| |
clnd.Calendar constructor. You never use the constructor to create this component.
|
| |
| Parameters |
None |
| Returns |
Nothing
|
| Example |
None
|
|
|
pseudo.clnd.Calendar.create(pOwner:MovieClip, strName:String, nDepth:Number):pseudo.clnd.Calendar
|
| |
Use this static function to create new Calendar on the specified movie clip. Never use constructor directly to do it.
|
| |
| Parameters |
pOwner The movie clip on which the new Calendar will be drawn.
strName The new Calendar instance name.
nDepth The new Calendar instance depth. |
| Returns |
The reference to new Calendar instance
|
| Example |
//Get instance of the look and feel
var look:Object = pseudo.look.AquaLook.getInstance();
//create an instance of Calendar class
var calendar = pseudo.clnd.Calendar.create(_root, "calendar", 1);
calendar.setLook(look);
//Add listener to calendar "changed event"
calendar.addListener("changed", this, onChanged);
calendar.showWeeks();
//Patern for the text displayed at the calendar title
var pattern = "%B %Y";
calendar.showTitle(pseudo.clnd.TitlePanel, "text", pattern);
calendar._x = calendar._y = 10;
calendar.update();
calendar.draw();
//function to process the calendar date change
function onChanged():Void
{
trace(calendar.getDate());
}
|
|
|
pseudo.clnd.Calendar.showWeeks():Void
|
| |
|
Makes the calendar display the number of the week from the beginning of the year. |
| |
| Parameters |
Nione
|
| Returns |
Nothing |
| Example |
calendar.showWeeks();
calendar.update();
calendar.draw();
|
|
|
pseudo.clnd.Calendar.hideWeeks():Void
|
| |
HIdes the number of the week panael |
| |
| Parameters |
None |
| Returns |
Nothing |
| Example |
calendar.hideWeeks();
calendar.update();
calendar.draw(); |
|
|
pseudo.clnd.Calendar. setTitlePattern(pattern:String):Void |
| |
Sets the string patern for the title. The following values are possible:
- %a - abbreviated weekday name
- %A - full weekday name
- %b - abbreviated month name
- %B - full month name
- %C - the century number
- %d - the day of the month (range 01 to 31)
- %e - the day of the month (range 1 to 31)
- %j - day of the year (range 001 to 366)
- %m - month, range 01 to 12
- %s - the number of seconds since midnight
January 1, 1970, universal time
- %t - a tab character
- %U - a week number from the beginning of the year
- %u - the day of the week (range 1 to 7, 1 = MON)
- %w - the day of the week (range 0 to 6, 0 = SUN)
- %y - year without the century (range 00 to 99)
- %Y - year with the century
- %% - a literal '%' character
|
| |
| Parameters |
patern String value |
| Returns |
nothing |
| Example |
var pattern = "%B %Y";
calendar.setTitlePattern(pseudo.clnd.TitlePanel, "text", pattern);
calendar.update();
calendar.draw();
|
|
|
pseudo.clnd.Calendar.setTitleType(type:String):Void |
| |
Sets the tipe of the calendar title text or active (with comboboxes). Two possible values of the parameter
- "text" - for the text tipe title
- "ctrl" - for the active title (with comboboxes)
|
| |
| Parameters |
type String value indicating the type of the calendar title, possible values: "text", "ctrl" |
| Returns |
Nothing |
| Example |
//this popup movie clip is required for the compboboxes to
//work and appear
_global.popup = pseudo.BaseMovie.create(_root, "popup", 17);
calendar.setTitleType("ctrl");//This shows the calendar title with comboboxes.
calendar.update();
calendar.draw();
|
|
|
pseudo.clnd.Calendar.setFieldSelData(data:Object):Void |
| |
Cross date fields selection settings. The data object passed to the function can have the following flags: data.vert =true/false, data.horz=true/false. Combination of the vaues can diplay, or not display vertical, or horizontal selction line.
|
| |
| Parameters |
data Object. |
| Returns |
Nothing |
| Example |
calendar.setFieldSelData({vert:true, horz:false});//This will display only the vertical selection line
|
|
|
pseudo.clnd.Calendar.showWeekSel():Void |
| |
Sets the week day displayed selected when the date is chosen |
| |
| Parameters |
None |
| Returns |
Nothing |
| Example |
calendar.showWeekSel();
calendar.update();
calendar.draw();
|
|
|
pseudo.clnd.Calendar.hideWeekSel():Void |
| |
Sets the week day displayed not selected when the date is chosen
|
| |
| Parameters |
None |
| Returns |
Nothing |
| Example |
calendar.hideWeekSel();
calendar.update();
calendar.draw();
|
|
|
pseudo.clnd.Calendar.showTitle(pClass:Function, type:String, pattern:String):Object |
| |
Creates and diplays the title for the calendar, using corresponding type and string pattern.
|
| |
| Parameters |
pClass function The name of the class that will be used to create title.
type String indicating the type of the title: "text" - text type , "ctrl" - with comboboxes
patern String value Please read the description of possible values in the setTitlePattern() function desctiption |
| Returns |
Nothing |
| Example |
calendar.showTitle(pseudo.clnd.TitlePanel, "text", pattern);
calendar.update();
calendar.draw();
|
|
|
pseudo.clnd.Calendar.hideTitle():Void |
| |
Hides (distroys) the calendar title
|
| |
| Parameters |
None |
| Returns |
Nothing |
| Example |
calendar.hideTitle();
calendar.update();
calendar.draw();
|
|
|
pseudo.clnd.Calendar.setDate(date:Date):Void |
| |
Sets the selected date for the calendar.
|
| |
| Parameters |
date Date Macromedia date object |
| Returns |
Nothing |
| Example |
|
|
|
pseudo.clnd.Calendar.getDate():Date |
| |
Gets the selected date of the calendar.
|
| |
| Parameters |
None |
| Returns |
Date object |
| Example |
trace(calendar.getDate());
|
|
|
pseudo.clnd.Calendar.setSize(w:Number, h:Number):Void |
| |
Sets the size of the calendar.
|
| |
| Parameters |
None |
| Returns |
Date object |
| Example |
calendar.setSize(250, 180);
calendar.setCellSize(28, 19);
calendar._x = calendar._y = 10;
calendar.update();
calendar.draw();
|
|
|
pseudo.clnd.Calendar.setCellSize(w:Number, h:Number):Void |
| |
Sets the size of the calendar cells
|
| |
| Parameters |
None |
| Returns |
Date object |
| Example |
calendar.setSize(250, 180);
calendar.setCellSize(28, 19);
calendar._x = calendar._y = 10;
calendar.update();
calendar.draw();
|
|
|
|