| Package | com.adobe.rtc.pods.noteClasses |
| Class | public class NoteModel |
| Inheritance | NoteModel flash.events.EventDispatcher |
| Implements | ISessionSubscriber |
nodeName
for the NoteModel to use. If none is supplied, the NoteModel will create
its own collectionNode for sending and receiving messages.
See also
| Property | Defined by | ||
|---|---|---|---|
| accessModel : int
The role value required for accessing the note text
| NoteModel | ||
| connectSession : IConnectSession
The IConnectSession with which this component is associated.
| NoteModel | ||
| htmlText : String
Specifies the text for the note model.
| NoteModel | ||
| isSynchronized : Boolean [read-only]
Determines whether the NoteModel is connected and fully synchronized with
the service.
| NoteModel | ||
| publishModel : int
The role value required for modifying the note text
| NoteModel | ||
| selection : Object
Specifies the selection object for the note model based on two properties:
| NoteModel | ||
| sharedID : String
Defines the logical location of the component on the service - typically this assigns the sharedID of the collectionNode
used by the component.
| NoteModel | ||
| usersEditing : ArrayCollection [read-only]
Specifies an ArrayCollection of user
userIDs who are currently editing the text. | NoteModel | ||
| usersEditingString : String [read-only]
Specifies a string of user
displayNames who are currently editing the text. | NoteModel | ||
| verticalScrollPos : Number
Specifies the shared scroll position for the note model.
| NoteModel | ||
| Method | Defined by | ||
|---|---|---|---|
|
NoteModel(p_sessionDependentItems:Boolean = false)
Constructor.
| NoteModel | ||
|
close():void
Disposes all listeners to the network and framework classes.
| NoteModel | ||
|
getNodeConfiguration(p_nodeName:String):NodeConfiguration
Gets the NodeConfiguration on a specific node in the Notemodel.
| NoteModel | ||
|
getUserRole(p_userID:String):int
Returns the role of a given user for the note.
| NoteModel | ||
|
iAmEditing():void
Determines whether the current user is editing.
| NoteModel | ||
|
setNodeConfiguration(p_nodeName:String, p_nodeConfiguration:NodeConfiguration):void
Sets the NodeConfiguration on a already defined node in Notemodel.
| NoteModel | ||
|
setUserRole(p_userID:String, p_userRole:int, p_nodeName:String = null):void
Sets the role of a given user for the note.
| NoteModel | ||
|
subscribe():void
Tells the component to begin synchronizing with the service.
| NoteModel | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched when the text of the note changes | NoteModel | |||
| Dispatched when the current user's role changes with respect to this model. | NoteModel | |||
| Dispatched when the note text changes. | NoteModel | |||
| Dispatched when the selection on the note has changed. | NoteModel | |||
| Dispatched when the NoteModel has fully connected and synchronized with the service or when it loses that connection. | NoteModel | |||
| Dispatched when the set of users typing changes. | NoteModel | |||
| accessModel | property |
accessModel:int [read-write]The role value required for accessing the note text
Implementation public function get accessModel():int
public function set accessModel(value:int):void
| connectSession | property |
connectSession:IConnectSession [read-write]
The IConnectSession with which this component is associated. Note that this may only be set once before subscribe
is called; re-sessioning of components is not supported. Defaults to the first IConnectSession created in the application.
public function get connectSession():IConnectSession
public function set connectSession(value:IConnectSession):void
| htmlText | property |
htmlText:String [read-write]Specifies the text for the note model. Only users with a publisher role may set this value.
Implementation public function get htmlText():String
public function set htmlText(value:String):void
| isSynchronized | property |
isSynchronized:Boolean [read-only]Determines whether the NoteModel is connected and fully synchronized with the service.
This property can be used as the source for data binding.
Implementation public function get isSynchronized():Boolean
| publishModel | property |
publishModel:int [read-write]The role value required for modifying the note text
Implementation public function get publishModel():int
public function set publishModel(value:int):void
| selection | property |
selection:Object [read-write]Specifies the selection object for the note model based on two properties:
selectionChange event.
Implementation
public function get selection():Object
public function set selection(value:Object):void
| sharedID | property |
sharedID:String [read-write]
Defines the logical location of the component on the service - typically this assigns the sharedID of the collectionNode
used by the component. sharedIDs should be unique within a room (if they're expressing 2 unique locations). Note that
this can only be assigned once (before subscribe() is called). For components with an id property,
sharedID defaults to that value.
public function get sharedID():String
public function set sharedID(value:String):void
| usersEditing | property |
usersEditing:ArrayCollection [read-only]
Specifies an ArrayCollection of user userIDs who are currently editing the text.
public function get usersEditing():ArrayCollection
| usersEditingString | property |
usersEditingString:String [read-only]
Specifies a string of user displayNames who are currently editing the text.
public function get usersEditingString():String
| verticalScrollPos | property |
verticalScrollPos:Number [read-write]Specifies the shared scroll position for the note model. Only users with a publisher role may set this value.
Implementation public function get verticalScrollPos():Number
public function set verticalScrollPos(value:Number):void
| NoteModel | () | constructor |
public function NoteModel(p_sessionDependentItems:Boolean = false)Constructor.
Parametersp_sessionDependentItems:Boolean (default = false) |
| close | () | method |
public function close():voidDisposes all listeners to the network and framework classes. Recommended for proper garbage collection of the component.
| getNodeConfiguration | () | method |
public function getNodeConfiguration(p_nodeName:String):NodeConfigurationGets the NodeConfiguration on a specific node in the Notemodel. If the node is not defined, it will return null
Parametersp_nodeName:String — The name of the node.
|
NodeConfiguration |
| getUserRole | () | method |
public function getUserRole(p_userID:String):intReturns the role of a given user for the note.
Parametersp_userID:String — UserID of the user in question
|
int |
| iAmEditing | () | method |
public function iAmEditing():voidDetermines whether the current user is editing.
| setNodeConfiguration | () | method |
public function setNodeConfiguration(p_nodeName:String, p_nodeConfiguration:NodeConfiguration):voidSets the NodeConfiguration on a already defined node in Notemodel. If the node is not defined, it will not do anything.
Parametersp_nodeName:String — The node Configuration on a node in the NodeConfiguration.
|
|
p_nodeConfiguration:NodeConfiguration — The name of the node.
|
| setUserRole | () | method |
public function setUserRole(p_userID:String, p_userRole:int, p_nodeName:String = null):voidSets the role of a given user for the note.
Parametersp_userID:String — UserID of the user whose role we are setting
|
|
p_userRole:int — Role value we are setting
|
|
p_nodeName:String (default = null) |
| subscribe | () | method |
public function subscribe():voidTells the component to begin synchronizing with the service. For "headless" components such as this one, this method must be called explicitly.
| change | event |
com.adobe.rtc.events.SharedPropertyEvent
Dispatched when the text of the note changes
| onMyRoleChange | event |
com.adobe.rtc.events.CollectionNodeEvent
Dispatched when the current user's role changes with respect to this model.
| scrollUpdate | event |
| selectionChange | event |
com.adobe.rtc.events.NoteEvent
Dispatched when the selection on the note has changed.
| synchronizationChange | event |
com.adobe.rtc.events.CollectionNodeEvent
Dispatched when the NoteModel has fully connected and synchronized with the service or when it loses that connection.
| typingListUpdate | event |
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/labs/acrobatcom/com/adobe/rtc/pods/noteClasses/NoteModel.html