Paket | lc.procmgmt.ui.presentationmodel |
Klass | public class PresentationModel |
Arv | PresentationModel EventDispatcher Object |
Implementerar | IPresentationModel, IMXMLObject |
Underklasser | AttachmentHeaderModel, AttachmentListModel, AttachmentsModel, HeaderPaneModel, ProcessInstanceDataGridModel, ProcessInstanceInfoModel, SearchSelectorModel, StartpointDetailsModel, StartpointGridSelectorModel, TaskDetailsModel, TaskDirectiveModel, TaskImageModel, TaskInfoModel, TitledCardRendererModel |
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 9, Flash Player 10 |
PresentationModel
class is a superclass for all the presentation models. The class
holds the common functionality and convenience methods that are needed to implement a presentation model,
which is designed to support a specific view. A presentation model separates the behavior of
a screen from the user interface controls and events. This separation simplifies the view
and allows the view to make data bindings to properties in the presentation model and make
simple method calls to the presentation model.
For information on using this component to customize Workspace, see Customizing the Adobe Digital Enterprise Platform Document Services - Workspace 10.0 User Interface .
Egenskap | Definieras med | ||
---|---|---|---|
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
session : SessionMap
A SessionMap object that stores information relating to the server session. | PresentationModel | ||
state : String [skrivskyddad]
The name of the state the current view is in. | PresentationModel |
Metod | Definieras med | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registrerar ett händelseavlyssnarobjekt för ett EventDispatcher-objekt så att avlyssnaren får meddelanden om händelser. | EventDispatcher | ||
bindProperty(destination:Object, destinationProperty:String, source:Object, sourceChain:Object, commitOnly:Boolean = false):ChangeWatcher
Binds a public property on the destination object from a property or
property chain on the source object. | PresentationModel | ||
Skickar en händelse till händelseflödet. | EventDispatcher | ||
Returns the corresponding cascading style sheet (CSS) property to use based on the specified parameters. | PresentationModel | ||
Kontrollerar om EventDispatcher-objektet har några avlyssnare registrerade för en viss typ av händelse. | EventDispatcher | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Initializes the presentation model after the view bindings
are processed to prevent view bindings from overriding the initial model state. | PresentationModel | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Tar bort en avlyssnare från EventDispatcher-objektet. | EventDispatcher | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Returnerar det angivna objektets primitiva värde. | Object | ||
Kontrollerar om en händelseavlyssnare är registrerad för det här EventDispatcher-objektet eller något av dess överordnade objekt för den angivna händelsetypen. | EventDispatcher |
Metod | Definieras med | ||
---|---|---|---|
Sets the state property to a new value and causes a PropertyChangeEvent event. | PresentationModel |
session | egenskap |
session:SessionMap
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 9, Flash Player 10 |
A SessionMap
object that stores information relating to the server session.
Den här egenskapen kan användas som källan för databindning. När den här egenskapen ändras, skickas händelsen propertyChange
.
Implementering
public function get session():SessionMap
public function set session(value:SessionMap):void
state | egenskap |
state:String
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 9, Flash Player 10 |
The name of the state the current view is in. The state is typically bound to the currentState
property of
a control.
Den här egenskapen kan användas som källan för databindning. När den här egenskapen ändras, skickas händelsen propertyChange
.
Implementering
public function get state():String
bindProperty | () | metod |
public function bindProperty(destination:Object, destinationProperty:String, source:Object, sourceChain:Object, commitOnly:Boolean = false):ChangeWatcher
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Binds a public property on the destination object from a property or
property chain on the source object. This method simplifies
the use of the standard BindingUtils.bindProperty
method.
Parametrar
destination:Object — Specifies the object defining the property to be bound to the value of sourceChain .
| |
destinationProperty:String — Specifies the name of the public property defined by the value of the
destination parameter that is to be bound.
| |
source:Object — Specifies the object that hosts the property or property chain to be watched.
| |
sourceChain:Object — Specifies the property or property chain to be watched.
| |
commitOnly:Boolean (default = false ) — A flag that specifies whether the handler is called for committing and noncommitting change events.
A value of true specifies that the handler is called only on committing change events. A value
of false specifies that the handler is called on both committing and noncommitting change events.
|
ChangeWatcher — The property or property chain to be watched. At least one property name must specified in the
sourceChain argument, otherwise, a null value is returned.
|
Relaterade API-element
getCSSStyle | () | metod |
public function getCSSStyle(declaration:String, styleProperty:String, defaultValue:Object = null):Object
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Returns the corresponding cascading style sheet (CSS) property to use based on the specified parameters.
Parametrar
declaration:String — Specifies the name of the CSS selector.
| |
styleProperty:String — Specifies the name of the CSS property.
| |
defaultValue:Object (default = null ) — Specifies the CSS property that is used if the CSS property specified by the
the styleProperty parameter is not found.
|
Object — The CSS style.
|
initialize | () | metod |
public function initialize():void
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Initializes the presentation model after the view bindings are processed to prevent view bindings from overriding the initial model state. Subclasses can override this method, which
setState | () | metod |
protected function setState(newState:String):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Document Services - Workspace 9 |
Körningsmiljöversioner: | AIR (unsupported), Flash Player 9, Flash Player 10 |
Sets the state
property to a new value and causes a PropertyChangeEvent
event.
Parametrar
newState:String — Specifies the new state name.
|
Tue Jun 12 2018, 01:40 PM Z