| Package | potomac.ui |
| Class | public dynamic class PartInput |
| Inheritance | PartInput 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 parts that were shown during his last application session.
PartInput is a dynamic object. Developers are encouraged to write their own subclasses of PartInput but it isn't required. Dynamic properties can be attached to a PartInput. 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. | PartInput | ||
| title : String
The title of the input. | PartInput | ||
| Method | Defined By | ||
|---|---|---|---|
Creates an empty part input. | PartInput | ||
Returns true if the given input matches this input. | PartInput | ||
| icon | property |
icon:ClassThe icon of the input. Setting this icon will override the icon set in the part'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 part's declared extension. This is useful when you have multiple instances of a part and need to allow the user to differentiate between them.
public function get title():String public function set title(value:String):void| PartInput | () | Constructor |
public function PartInput()Creates an empty part input.
| equals | () | method |
public function equals(otherInput:PartInput):BooleanReturns true if the given input matches this input. This method is used to prevent duplicate parts in the same folder from opening. If a part with same id and matching input is already open, an attempt to open a the new page will result in the existing part being made visible (ex. its tab will be selected).
Parameters
otherInput:PartInput — input to check for equality.
|
Boolean — true if the inputs are matching.
|