Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber.extensions.inputevt
Class RemoteControlExtension

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.jabber.extensions.inputevt.RemoteControlExtension
All Implemented Interfaces:
org.jivesoftware.smack.packet.PacketExtension

public class RemoteControlExtension
extends Object
implements org.jivesoftware.smack.packet.PacketExtension

This class implements input event extension.

Author:
Sebastien Vincent

Constructor Summary
RemoteControlExtension()
          Constructor.
RemoteControlExtension(ComponentEvent event)
          Constructor.
RemoteControlExtension(Dimension videoPanelSize)
          Constructor.
RemoteControlExtension(InputEvent event, Dimension videoPanelSize)
          Constructor.
 
Method Summary
 String getElementName()
          Get the element name of the PacketExtension.
 ComponentEvent getEvent()
          Get ComponentEvent that represents our InputExtensionItem.
 String getNamespace()
          Returns the XML namespace of the extension sub-packet root element.
 String toXML()
          Get the XML representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteControlExtension

public RemoteControlExtension()
Constructor.


RemoteControlExtension

public RemoteControlExtension(Dimension videoPanelSize)
Constructor.

Parameters:
videoPanelSize - size of the panel that contains video

RemoteControlExtension

public RemoteControlExtension(ComponentEvent event)
Constructor.

Parameters:
event - AWT event

RemoteControlExtension

public RemoteControlExtension(InputEvent event,
                              Dimension videoPanelSize)
Constructor.

Parameters:
videoPanelSize - size of the panel that contains video
event - AWT event
Method Detail

getEvent

public ComponentEvent getEvent()
Get ComponentEvent that represents our InputExtensionItem.

Returns:
AWT ComponentEvent

getElementName

public String getElementName()
Get the element name of the PacketExtension.

Specified by:
getElementName in interface org.jivesoftware.smack.packet.PacketExtension
Returns:
"remote-control"

getNamespace

public String getNamespace()
Returns the XML namespace of the extension sub-packet root element. The namespace is always "http://jitsi.org/protocol/inputevt".

Specified by:
getNamespace in interface org.jivesoftware.smack.packet.PacketExtension
Returns:
the XML namespace of the packet extension.

toXML

public String toXML()
Get the XML representation.

Specified by:
toXML in interface org.jivesoftware.smack.packet.PacketExtension
Returns:
XML representation of the item

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.