| Package | potomac.ui |
| Class | public dynamic class PageInput |
| Inheritance | PageInput Object |
Inputs should not contain full model elements. Instead they should maintain as little information as possible to allow the model to be retrieved. This typically means the input should contain primary key information only. Inputs will be serialized and stored between application sessions. They will be deserialized and recreated in order to the user to shown the same pages that were shown during his last application session.
PageInput is a dynamic object. Developers are encouraged to write their own subclasses of PageInput but it isn't required. Dynamic properties can be attached to a PageInput. Integer and String dynamic properties will be automatically serialized and checked during #equals. Subclasses must re-implement #equals().
| Property | Defined By | ||
|---|---|---|---|
| icon : Class
The icon of the input. | PageInput | ||
| title : String
The title of the input. | PageInput | ||
| Method | Defined By | ||
|---|---|---|---|
Creates an empty input. | PageInput | ||
Returns true if the given input matches this input. | PageInput | ||
| icon | property |
icon:ClassThe icon of the input. Setting this icon will override the icon set in the page's declared extension.
public function get icon():Class public function set icon(value:Class):void| title | property |
title:StringThe title of the input. Setting this title will override the title set in the page's declared extension. This is useful when you have multiple instances of a page and need to allow the user to differentiate between them.
public function get title():String public function set title(value:String):void| PageInput | () | Constructor |
public function PageInput()Creates an empty input.
| equals | () | method |
public function equals(otherInput:PageInput):BooleanReturns true if the given input matches this input. This method is used to prevent duplicate pages from opening. If a page with same id and matching input is already open, an attempt to open a the new page will result in the existing page receiving focus.
Parameters
otherInput:PageInput — input to check for equality.
|
Boolean — true if the inputs are matching.
|