public final class SparkManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.text.SimpleDateFormat |
DATE_SECOND_FORMATTER |
Modifier and Type | Method and Description |
---|---|
static void |
addFeature(java.lang.String namespace)
Adds a feature that can be discovered through Disco.
|
static javax.swing.ImageIcon |
getApplicationImage()
Returns the image to use with most dialogs.
|
static ChatManager |
getChatManager()
Returns the ChatManager.
|
static java.lang.String |
getClipboard()
Returns the String in the system clipboard.
|
static org.jivesoftware.smack.XMPPConnection |
getConnection()
Gets the
XMPPConnection instance. |
static ContactList |
getContactList()
Returns the
ContactList used within Spark. |
static java.awt.Component |
getFocusedComponent()
Return the component in focus at any particular instance.
|
static MainWindow |
getMainWindow()
Gets the
MainWindow instance. |
static org.jivesoftware.smackx.xevent.MessageEventManager |
getMessageEventManager()
Returns the
MessageEventManager used in Spark. |
static NativeManager |
getNativeManager()
Returns the NativeManager.
|
static PreferenceManager |
getPreferenceManager()
Gets the
PreferenceManager instance. |
static SearchManager |
getSearchManager()
Returns the
SearchManager . |
static SessionManager |
getSessionManager()
Gets the
SessionManager instance. |
static SoundManager |
getSoundManager()
Gets the
SoundManager instance. |
static SparkTransferManager |
getTransferManager()
Returns the
SparkTransferManager . |
static java.io.File |
getUserDirectory()
Returns the User Directory to used by individual users.
|
static UserManager |
getUserManager()
Returns the
UserManager for LiveAssistant. |
static VCardManager |
getVCardManager()
Returns the VCardManager.
|
static Workspace |
getWorkspace()
Retrieves the inner container for Spark.
|
static void |
printChatRoomTranscript(ChatRoom room)
Prints the transcript of a given chat room.
|
static void |
printChatTranscript(TranscriptWindow transcriptWindow)
Displays a print dialog to print the transcript found in a
TranscriptWindow |
static void |
removeFeature(java.lang.String namespace)
Removes a feature that can be discovered through Disco.
|
static void |
setClipboard(java.lang.String str)
Adds a string to the system clipboard.
|
public static final java.text.SimpleDateFormat DATE_SECOND_FORMATTER
public static MainWindow getMainWindow()
MainWindow
instance. The MainWindow is the frame container used
to hold the Workspace container and Menubar of the Spark Client.public static SessionManager getSessionManager()
SessionManager
instance.public static SoundManager getSoundManager()
SoundManager
instance.public static PreferenceManager getPreferenceManager()
PreferenceManager
instance.public static org.jivesoftware.smack.XMPPConnection getConnection()
XMPPConnection
instance.XMPPConnection
associated with this session.public static UserManager getUserManager()
UserManager
for LiveAssistant. The UserManager
keeps track of all users in current chats.UserManager
for LiveAssistant.public static ChatManager getChatManager()
ChatManager
for this instance.public static Workspace getWorkspace()
public static org.jivesoftware.smackx.xevent.MessageEventManager getMessageEventManager()
MessageEventManager
used in Spark. The MessageEventManager is responsible
for XMPP specific operations such as notifying users that you have received their message or
inform a users that you are typing a message to them.public static VCardManager getVCardManager()
public static NativeManager getNativeManager()
public static void printChatRoomTranscript(ChatRoom room)
room
- the chat room that contains the transcript to print.public static java.lang.String getClipboard()
public static void setClipboard(java.lang.String str)
str
- the string to add the clipboard.public static void printChatTranscript(TranscriptWindow transcriptWindow)
TranscriptWindow
transcriptWindow
- the TranscriptWindow
containing the transcript.public static SparkTransferManager getTransferManager()
SparkTransferManager
. This is used
for any transfer operations within Spark. You may use the manager to
intercept file transfers for filtering of transfers or own plugin operations
with the File Transfer object.public static SearchManager getSearchManager()
SearchManager
. This is used to allow
plugins to register their own search service.public static ContactList getContactList()
ContactList
used within Spark.public static java.io.File getUserDirectory()
public static java.awt.Component getFocusedComponent()
public static void addFeature(java.lang.String namespace)
namespace
- the namespace of the feature.public static void removeFeature(java.lang.String namespace)
namespace
- the namespace to remove.public static javax.swing.ImageIcon getApplicationImage()