org.jcurl.demo.smack
Class SmackChangeManager

Package class diagram package SmackChangeManager
java.lang.Object
  extended by org.jcurl.core.ui.ChangeManager
      extended by org.jcurl.demo.smack.SmackChangeManager
All Implemented Interfaces:
org.jivesoftware.smack.ChatManagerListener

public class SmackChangeManager
extends ChangeManager
implements org.jivesoftware.smack.ChatManagerListener

Could well be a decorator to add Jabber/XMPP remoting to ChangeManagers.

Version:
$Id: SmackChangeManager.java 1031 2009-07-23 15:06:05Z mro $
Author:
M. Rohrmoser

Field Summary
(package private) static Pattern pat
           
 
Constructor Summary
SmackChangeManager()
           
SmackChangeManager(Executor executor)
           
 
Method Summary
 void chatCreated(org.jivesoftware.smack.Chat chat, boolean arg1)
           
(package private) static Memento<?> fromXml(String xml)
          Turn a PacketExtension.toXML() string into a Memento.
 void temporary(Memento<?> m)
          Push local gui-generated Mementos to the local data model and publish them
(package private) static String toXml(Memento<?> me)
          Turn a Memento into a PacketExtension.toXML() string.
<E> UndoableMemento<E>
undoable(Memento<E> pre, Memento<E> post)
          Push local gui-generated Mementos to the local data model and publish them.
 
Methods inherited from class org.jcurl.core.ui.ChangeManager
addEdit, addUndoableEditListener, canRedo, canUndo, discardAllEdits, getTrivial, getTrivial, getUndoableEditListeners, redo, removeUndoableEditListener, undo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pat

static final Pattern pat
Constructor Detail

SmackChangeManager

public SmackChangeManager()

SmackChangeManager

public SmackChangeManager(Executor executor)
Method Detail

fromXml

static Memento<?> fromXml(String xml)
Turn a PacketExtension.toXML() string into a Memento.

See Also:
toXml(Memento)

toXml

static String toXml(Memento<?> me)
Turn a Memento into a PacketExtension.toXML() string.

See Also:
fromXml(String)

chatCreated

public void chatCreated(org.jivesoftware.smack.Chat chat,
                        boolean arg1)
Specified by:
chatCreated in interface org.jivesoftware.smack.ChatManagerListener

temporary

public void temporary(Memento<?> m)
Push local gui-generated Mementos to the local data model and publish them

Overrides:
temporary in class ChangeManager

undoable

public <E> UndoableMemento<E> undoable(Memento<E> pre,
                                       Memento<E> post)
Push local gui-generated Mementos to the local data model and publish them.

Overrides:
undoable in class ChangeManager


Copyright © 2005-2009 JCurl.mro.name. All Rights Reserved.