| Package | vegas.models |
| Class | public class PageByPageModel |
| Inheritance | PageByPageModel CoreModel CoreEventDispatcher Object |
| Property | Defined By | ||
|---|---|---|---|
![]() | channel : String [read-only]
Indicates the channel of this dispatcher if this instance is global. | CoreEventDispatcher | |
| currentPage : uint
Returns the current page number. | PageByPageModel | ||
![]() | id : *
Returns the id of this IModelObject. | CoreModel | |
| limitPage : uint
Indicates the limit until the current pages. | PageByPageModel | ||
| pages : Array [read-only]
Indicates the array representation of all page numbers with the current navigator values. | PageByPageModel | ||
| totalPage : uint
Indicates the pages total number. | PageByPageModel | ||
| Method | Defined By | ||
|---|---|---|---|
PageByPageModel(current:uint = 1, total:uint = 1, limit:uint = 5, global:Boolean = false, channel:String = null, id:* = null)
Creates a new PageByPageModel instance. | PageByPageModel | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0.0, useWeakReference:Boolean = false):void
Allows the registration of event listeners on the event target. | CoreEventDispatcher | |
![]() | dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow. | CoreEventDispatcher | |
![]() |
Returns the internal system.events.EventDispatcher reference. | CoreEventDispatcher | |
getEventTypeCHANGE():String
Returns the event name use in the run method. | PageByPageModel | ||
![]() | hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event. | CoreEventDispatcher | |
![]() | isGlobal():Boolean
Indicates if the dispatcher use a global event flow. | CoreEventDispatcher | |
![]() | isLocked():Boolean
Returns true if the object is locked. | CoreEventDispatcher | |
![]() | lock():void
Locks the object. | CoreEventDispatcher | |
notifyChange(value:Array):void
Notify a ArrayEvent when a Array pages change in the model. | PageByPageModel | ||
![]() | registerEventListener(type:String, listener:*, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Allows the registration of event listeners on the event target (Function or EventListener). | CoreEventDispatcher | |
![]() | removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object. | CoreEventDispatcher | |
run(... args):void [override]
Run the first process with this model. | PageByPageModel | ||
![]() | setEventDispatcher(dispatcher:EventDispatcher):void
Sets the internal EventDispatcher reference. | CoreEventDispatcher | |
![]() | setGlobal(flag:Boolean = false, channel:String = null):void
Sets if the instance use a global system.events.EventDispatcher to dispatch this events, if the flag value is false the instance use a local EventDispatcher. | CoreEventDispatcher | |
setNavigator(current:uint = 1, total:uint = 1, limit:uint = 5):void
Sets the navigator attributes and run the model. | PageByPageModel | ||
![]() | unlock():void
Unlocks the display. | CoreEventDispatcher | |
![]() | unregisterEventListener(type:String, listener:*, useCapture:Boolean = false):void
Removes a listener (Function or EventListener object) from the EventDispatcher object. | CoreEventDispatcher | |
![]() | willTrigger(type:String):Boolean
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type. | CoreEventDispatcher | |
| currentPage | property |
currentPage:uintReturns the current page number.
public function get currentPage():uint public function set currentPage(value:uint):void| limitPage | property |
limitPage:uintIndicates the limit until the current pages.
public function get limitPage():uint public function set limitPage(value:uint):void| pages | property |
pages:Array [read-only] Indicates the array representation of all page numbers with the current navigator values.
public function get pages():Array| totalPage | property |
totalPage:uintIndicates the pages total number.
public function get totalPage():uint public function set totalPage(value:uint):void| PageByPageModel | () | Constructor |
public function PageByPageModel(current:uint = 1, total:uint = 1, limit:uint = 5, global:Boolean = false, channel:String = null, id:* = null)Creates a new PageByPageModel instance.
Parameterscurrent:uint (default = 1) — the current page of the model.
| |
total:uint (default = 1) — the total number of the model.
| |
limit:uint (default = 5) — the limit number of pages of the model.
| |
global:Boolean (default = false) — the flag to use a global event flow or a local event flow.
| |
channel:String (default = null) — the name of the global event flow if the global argument is true.
| |
id:* (default = null) — the id of the model.
|
| getEventTypeCHANGE | () | method |
public function getEventTypeCHANGE():String
Returns the event name use in the run method.
String — the event name use in the run method.
|
| notifyChange | () | method |
public function notifyChange(value:Array):void
Notify a ArrayEvent when a Array pages change in the model.
Parameters
value:Array |
| run | () | method |
override public function run(... args):voidRun the first process with this model.
Parameters
... args |
| setNavigator | () | method |
public function setNavigator(current:uint = 1, total:uint = 1, limit:uint = 5):voidSets the navigator attributes and run the model.
Parameters
current:uint (default = 1) | |
total:uint (default = 1) | |
limit:uint (default = 5) |