Packagecom.adobe.rtc.pods
Classpublic class SharedWhiteBoard
InheritanceSharedWhiteBoard Inheritance WhiteBoard Inheritance mx.core.UIComponent
ImplementsISessionSubscriber

The SharedWhiteBoard is a UIComponent that allows multiple users to collaboratively draw on a shared canvas. In general, users with a publisher role and higher are allowed to publish and users with a viewer role can see the drawing. TODO: Due to extreme complexity, full documentation is still forthcoming... I know we said we would do this, it's on the list for the next beta drop =)



Public Properties
 PropertyDefined by
 InheritedallowSave : Boolean
Returns true if saving is allowed
WhiteBoard
  connectSession : IConnectSession
The IConnectSession with which this component is associated.
SharedWhiteBoard
 InheritedcurrentPropertiesToolBar : IWBPropertiesToolBar
The current properties tool bar
WhiteBoard
  isSynchronized : Boolean
[read-only] Returns true if the model is synchronized; otherwise, false.
SharedWhiteBoard
  model : WBModel
[write-only]
SharedWhiteBoard
 InheritedpopupPropertiesToolBar : Boolean = true
Returns if the properties tool bar is popped up.
WhiteBoard
 InheritedpopupShapesToolBar : Boolean = true
Returns if the shapes tool bar is popped up.
WhiteBoard
  sessionDependent : Boolean = false
Whether or not the whiteboard should be cleaned upon the end of the session.
SharedWhiteBoard
 InheritedshapesToolBar : UIComponent
The shapes tool Bar
WhiteBoard
  sharedID : String
Defines the logical location of the component on the service, usually the sharedID of the collectionNode the component uses.
SharedWhiteBoard
 InheritedzoomLevel : Number
Returns the zoom level
WhiteBoard
Public Methods
 MethodDefined by
  
close():void
Disposes all listeners to the network and framework classes.
SharedWhiteBoard
  
getUserRole(p_userID:String):int
Returns the role of a given user for the WhiteBoard.
SharedWhiteBoard
 Inherited
Hides the selection container
WhiteBoard
  
registerFactory(p_factory:IWBShapeFactory):void
Registers the factory class for creating a custom shape.
SharedWhiteBoard
  
setUserRole(p_userID:String, p_userRole:int):void
Sets the role of a given user for the WhiteBoard.
SharedWhiteBoard
 Inherited
Shows the selection
WhiteBoard
  
subscribe():void
Tells the component to begin synchronizing with the service.
SharedWhiteBoard
Events
 EventSummaryDefined by
 Inherited Dispatched when one is finished drawing a shape on the canvas.WhiteBoard
 Inherited Dispatched when the property tool bar is added.WhiteBoard
 Inherited Dispatched when the property tool bar is removed.WhiteBoard
   Dispatched when the whiteboard goes in and out of sync.SharedWhiteBoard
Styles
 StyleDescriptionDefined by
 Inherited Type: Number   CSS Inheritance: no
Alpha level of the color defined by the backgroundColor property, of the image or SWF file defined by the backgroundImage style.
WhiteBoard
 Inherited Type: uint   Format: Color   CSS Inheritance: no
Background color of a component.
WhiteBoard
Property detail
connectSessionproperty
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.

Implementation
    public function get connectSession():IConnectSession
    public function set connectSession(value:IConnectSession):void
isSynchronizedproperty 
isSynchronized:Boolean  [read-only]

Returns true if the model is synchronized; otherwise, false.

This property can be used as the source for data binding.

Implementation
    public function get isSynchronized():Boolean
modelproperty 
model:WBModel  [write-only]

Implementation
    public function set model(value:WBModel):void
sessionDependentproperty 
public var sessionDependent:Boolean = false

Whether or not the whiteboard should be cleaned upon the end of the session.

sharedIDproperty 
sharedID:String  [read-write]

Defines the logical location of the component on the service, usually the sharedID of the collectionNode the component uses. sharedIDs should be unique within a room if they're expressing two unique locations. Note that this can only be assigned once and it is assigned before subscribe() is called. For components with an id property, sharedID defaults to that value.

Implementation
    public function get sharedID():String
    public function set sharedID(value:String):void
Method detail
close()method
public function close():void

Disposes all listeners to the network and framework classes. Recommended for proper garbage collection of the component.

getUserRole()method 
public function getUserRole(p_userID:String):int

Returns the role of a given user for the WhiteBoard.

Parameters
p_userID:String — The user ID for the user being queried.

Returns
int
registerFactory()method 
public function registerFactory(p_factory:IWBShapeFactory):void

Registers the factory class for creating a custom shape. Custom Shapes are not drawn if the Shapes class is not registered. The custom shapes are always registered with the SharedWhiteBoard when they are added to the toolBar. This method is needed when shapes are added programatically or using other UIComponents such as the button. SharedWhiteBoard.registerFactory(new WBCustomShapeFactory(CustomShape,null,null))

Parameters
p_factory:IWBShapeFactory
setUserRole()method 
public function setUserRole(p_userID:String, p_userRole:int):void

Sets the role of a given user for the WhiteBoard.

Parameters
p_userID:String — The role value to set on the specified user.
 
p_userRole:int — The ID of the user whose role should be set.
subscribe()method 
public function subscribe():void

Tells the component to begin synchronizing with the service. For UIComponent-based components such as this one, subscribe() is called automatically upon being added to the displayList. For "headless" components, this method must be called explicitly.

Event detail
synchronizationChangeevent 
Event object type: com.adobe.rtc.events.CollectionNodeEvent

Dispatched when the whiteboard goes in and out of sync.





 

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/SharedWhiteBoard.html