public class WhiteboardObjectPacketExtension
extends java.lang.Object
implements org.jivesoftware.smack.packet.PacketExtension
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTION_DELETE
A type string constant indicating that the current object must be deleted.
|
static java.lang.String |
ACTION_DRAW
A type string constant indicating that the current object must be drawn.
|
static java.lang.String |
ACTION_MOVE
A type string constant indicating that the current object must be moved.
|
static java.lang.String |
ELEMENT_NAME
The name of the XML element used for transport of white-board parameters.
|
static java.lang.String |
NAMESPACE
The names XMPP space that the white-board elements belong to.
|
Constructor and Description |
---|
WhiteboardObjectPacketExtension()
Default WhiteboardObjectPacketExtension constructor.
|
WhiteboardObjectPacketExtension(java.lang.String xml)
WhiteboardObjectPacketExtension constructor with a XML-SVG String.
|
WhiteboardObjectPacketExtension(java.lang.String id,
java.lang.String action)
WhiteboardObjectPacketExtension constructor.
|
WhiteboardObjectPacketExtension(WhiteboardObjectJabberImpl whiteboardObject,
java.lang.String action)
Constructs and initializes a WhiteboardObjectPacketExtension.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAction()
Returns the current action associated with the WhiteboardObject to send.
|
java.lang.String |
getElementName()
Returns the root element name.
|
java.lang.String |
getNamespace()
Returns the root element XML namespace.
|
WhiteboardObjectJabberImpl |
getWhiteboardObject()
Returns the current WhiteboardObject to be sent.
|
java.lang.String |
getWhiteboardObjectID()
Returns the current WhiteboardObject's identifier to be sent.
|
void |
setAction(java.lang.String action)
Sets the action associated with the WhiteboardObject to send.
|
void |
setWhiteboardObjectID(java.lang.String objectID)
Sets the current WhiteboardObject's identifier to be sent.
|
java.lang.String |
toXML()
Returns the XML representation of the WhiteboardObject
|
public static final java.lang.String ELEMENT_NAME
public static final java.lang.String NAMESPACE
public static final java.lang.String ACTION_DELETE
public static final java.lang.String ACTION_DRAW
public static final java.lang.String ACTION_MOVE
public WhiteboardObjectPacketExtension()
public WhiteboardObjectPacketExtension(java.lang.String id, java.lang.String action)
id
- Identifier of the WhiteboardObject to be treatedaction
- The current action associated with the WhiteboardObject.public WhiteboardObjectPacketExtension(WhiteboardObjectJabberImpl whiteboardObject, java.lang.String action)
whiteboardObject
- The WhiteboardObject to be treatedaction
- The current action associated with the WhiteboardObject.public WhiteboardObjectPacketExtension(java.lang.String xml)
xml
- XML-SVG Stringpublic java.lang.String getElementName()
getElementName
in interface org.jivesoftware.smack.packet.PacketExtension
public java.lang.String getNamespace()
getNamespace
in interface org.jivesoftware.smack.packet.PacketExtension
public java.lang.String toXML()
toXML
in interface org.jivesoftware.smack.packet.PacketExtension
public java.lang.String getAction()
public void setAction(java.lang.String action)
action
- the action associated with the WhiteboardObject to send.public WhiteboardObjectJabberImpl getWhiteboardObject()
public java.lang.String getWhiteboardObjectID()
public void setWhiteboardObjectID(java.lang.String objectID)
objectID
- WhiteboardObject's identifier
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.