Calendar component for showing and selecting a date.

Constructor

new (?parent:DisplayObjectContainer, ?xpos:Float, ?ypos:Float)

Constructor

Parameters:

parent

The parent DisplayObjectContainer on which to add this component.

xpos

The x position to place this component.

ypos

The y position to place this component.

Variables

read onlyday:Int

Gets the current day.

read onlymonth:Int

Gets the current month.

read onlyselectedDate:Date

Gets the currently selected Date.

read onlyyear:Int

Gets the current year.

Methods

get_day ():Int

get_month ():Int

get_year ():Int

setDate (date:Date):Void

Displays specified date in calendar by drawing that month and year and highlighting the day.

Parameters:

date

The date to display.

setYearMonthDay (year:Int, month:Int, day:Int):Void

Displays specified date in calendar by drawing that month and year and highlighting the day.

Parameters:

year

The year to display.

month

The month to display.

day

The day to display.

Inherited Variables

Defined by Panel

color:Int

Gets / sets the backgrond color of this panel.

content:Sprite

Container for content added to this panel. This is masked, so best to add children to content, rather than directly to the panel.

gridColor:UInt

Sets / gets the color of the grid lines.

gridSize:Int

Sets / gets the size of the grid.

shadow:Bool

Gets / sets whether or not this Panel will have an inner shadow.

showGrid:Bool

Sets / gets whether or not the grid will be shown.

Defined by Component

enabled:Bool

Sets/gets whether this component is enabled or not.

tag:Int

Sets/gets in integer that can identify the component.

Inherited Methods

Defined by Panel

addChild (child:DisplayObject):DisplayObject

Overridden to add new child to content.

addRawChild (child:DisplayObject):DisplayObject

Access to super.addChild

draw ():Void

Draws the visual ui of the component.

get_color ():Int

get_shadow ():Bool

get_showGrid ():Bool

removeChild (child:DisplayObject):DisplayObject

Overriden to remove child from content.

removeRawChild (child:DisplayObject):DisplayObject

Access to super.removeChild

set_color (value:Int):Int

set_gridColor (value:UInt):UInt

set_gridSize (value:Int):Int

set_shadow (value:Bool):Bool

set_showGrid (value:Bool):Bool

Defined by Component

get_enabled ():Bool

get_height ():Float

get_tag ():Int

get_width ():Float

move (xpos:Float, ypos:Float):Void

Moves the component to the specified position.

Parameters:

xpos

the x position to move the component

ypos

the y position to move the component

setSize (w:Float, h:Float):Void

Sets the size of the component.

Parameters:

w

The width of the component.

h

The height of the component.

set_enabled (value:Bool):Bool

set_height (value:Float):Void

Sets/gets the height of the component.

set_tag (value:Int):Int

set_width (value:Float):Void

Sets/gets the width of the component.

set_x (value:Float):Void

Overrides the setter for x to always place the component on a whole pixel.

set_y (value:Float):Void

Overrides the setter for y to always place the component on a whole pixel.