|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.gui.UIServiceImpl
public class UIServiceImpl
An implementation of the UIService that gives access to other bundles to this particular swing ui implementation.
| Constructor Summary | |
|---|---|
UIServiceImpl()
Creates an instance of UIServiceImpl. |
|
| Method Summary | |
|---|---|
void |
addChatListener(ChatListener listener)
Registers a NewChatListener to be informed when new Chats are created. |
void |
addPluginComponentListener(PluginComponentListener l)
Adds the given PluginComponentListener to the list of component listeners registered in this UIService implementation. |
void |
addWindowListener(WindowListener l)
Adds the given WindowListener to the main application window. |
void |
beginShutdown()
Implements ShutdownService#beginShutdown(). |
void |
bringToFront()
Brings the focus to the main application window. |
WizardContainer |
getAccountRegWizardContainer()
Implements the UIService.getAccountRegWizardContainer
method. |
Collection<Chat> |
getAllChats()
Provides all currently instantiated Chats. |
static Object |
getBorderLayoutConstraintsFromContainer(Object containerConstraints)
Returns the corresponding BorderLayout constraint from the given Container constraint. |
ChatPanel |
getChat(ChatRoom chatRoom)
Returns the Chat corresponding to the given ChatRoom. |
ChatPanel |
getChat(Contact contact)
Implements UIService.getChat(Contact). |
MetaContact |
getChatContact(Chat chat)
Get the MetaContact corresponding to the chat. |
List<Chat> |
getChats()
Returns a list containing all open Chats |
ChatWindowManager |
getChatWindowManager()
Returns the chat window manager. |
ConferenceChatManager |
getConferenceChatManager()
Returns the chat conference manager. |
ConfigurationContainer |
getConfigurationContainer()
Returns the ConfigurationContainer associated with this UIService. |
CreateAccountWindow |
getCreateAccountWindow()
Returns the create account window. |
ChatPanel |
getCurrentChat()
Returns the selected Chat. |
String |
getCurrentPhoneNumber()
Returns the phone number currently entered in the phone number field. |
SecurityAuthority |
getDefaultSecurityAuthority(ProtocolProviderService protocolProvider)
Returns a default implementation of the SecurityAuthority interface that can be used by non-UI components that would like to launch the registration process for a protocol provider. |
boolean |
getExitOnMainWindowClose()
Implements UIService.getExitOnMainWindowClose(). |
ExportedWindow |
getExportedWindow(WindowID windowID)
Implements the getExportedWindow in the UIService
interface. |
ExportedWindow |
getExportedWindow(WindowID windowID,
Object[] params)
Implements the getExportedWindow in the UIService interface. |
HistoryWindowManager |
getHistoryWindowManager()
Returns the HistoryWindowManager. |
Point |
getLocation()
Returns the current location of the main application window. |
LoginManager |
getLoginManager()
Returns the LoginManager. |
MainFrame |
getMainFrame()
Returns the MainFrame. |
PopupDialog |
getPopupDialog()
Implements getPopupDialog in the UIService interface. |
SingleWindowContainer |
getSingleWindowContainer()
Returns the single window container if such one is available (i.e. |
Dimension |
getSize()
Returns the size of the main application window. |
Iterator<Container> |
getSupportedContainers()
Implements UISercie.getSupportedContainers. |
Iterator<WindowID> |
getSupportedExportedWindows()
Implements getSupportedExportedWindows in the UIService
interface. |
void |
initExportedWindows()
Adds all ExportedWindows to the list of application windows, which could be used from other bundles. |
boolean |
isContainerSupported(Container containderID)
Implements the UIService.isContainerSupported method. |
boolean |
isExportedWindowSupported(WindowID windowID)
Implements the UIService.isExportedWindowSupported method. |
boolean |
isVisible()
Implements isVisible in the UIService interface. |
(package private) void |
loadApplicationGui()
Initializes all frames and panels and shows the GUI. |
void |
maximize()
Implements maximize in the UIService interface. |
void |
minimize()
Implements minimize in the UIService interface. |
void |
move(int x,
int y)
Implements move in the UIService interface. |
void |
propertyChange(PropertyChangeEvent evt)
Indicates that a PropertyChangeEvent has occurred. |
void |
registerExportedWindow(ExportedWindow window)
Registers the given ExportedWindow to the list of windows that could be accessed from other bundles. |
void |
removeChatListener(ChatListener listener)
Removes the registration of a NewChatListener. |
void |
removePluginComponentListener(PluginComponentListener l)
Removes the given PluginComponentListener from the list of component listeners registered in this UIService implementation. |
void |
removeWindowListener(WindowListener l)
Removes the given WindowListener from the main application window. |
void |
repaintUI()
Repaints and revalidates the whole UI Tree. |
void |
resize(int width,
int height)
Implements resize in the UIService interface. |
void |
restore()
Implements restore in the UIService interface. |
void |
serviceChanged(org.osgi.framework.ServiceEvent event)
Notifies all plugin containers of a PluginComponent registration. |
void |
setConfigurationWindowVisible(boolean visible)
Implements UIService#setConfigurationWindowVisible(boolean). |
void |
setCurrentPhoneNumber(String phoneNumber)
Changes the phone number currently entered in the phone number field. |
void |
setExitOnMainWindowClose(boolean exitOnMainWindowClose)
Implements UIService.setExitOnMainWindowClose(boolean). |
void |
setLocation(int x,
int y)
Locates the main application window to the new x and y coordinates. |
void |
setSize(int width,
int height)
Sets the size of the main application window. |
void |
setVisible(boolean isVisible)
Implements setVisible in the UIService interface. |
void |
unregisterExportedWindow(ExportedWindow window)
Unregisters the given ExportedWindow from the list of windows that could be accessed from other bundles. |
boolean |
useMacOSXScreenMenuBar()
Implements UIService#useMacOSXScreenMenuBar(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UIServiceImpl()
| Method Detail |
|---|
void loadApplicationGui()
public Iterator<Container> getSupportedContainers()
UISercie.getSupportedContainers. Returns the
list of supported containers by this implementation .
getSupportedContainers in interface UIServiceUIService.getSupportedContainers()public boolean isVisible()
isVisible in the UIService interface. Checks if
the main application window is visible.
isVisible in interface UIServicetrue if main application window is visible,
false otherwiseUIService.isVisible()public void setVisible(boolean isVisible)
setVisible in the UIService interface. Shows or
hides the main application window depending on the parameter
visible.
setVisible in interface UIServiceisVisible - true if we are to show the main application frame and
false otherwise.UIService.setVisible(boolean)
public void setLocation(int x,
int y)
setLocation in interface UIServicex - The new x coordinate.y - The new y coordinate.public Point getLocation()
getLocation in interface UIServicepublic Dimension getSize()
getSize in interface UIService
public void setSize(int width,
int height)
setSize in interface UIServicewidth - The width of the window.height - The height of the window.public void minimize()
minimize in the UIService interface. Minimizes
the main application window.
minimize in interface UIServiceUIService.minimize()public void maximize()
maximize in the UIService interface. Maximizes
the main application window.
maximize in interface UIServiceUIService.maximize()public void restore()
restore in the UIService interface. Restores
the main application window.
restore in interface UIServiceUIService.restore()
public void resize(int width,
int height)
resize in the UIService interface. Resizes the
main application window.
resize in interface UIServiceheight - the new height of tha main application frame.width - the new width of the main application window.UIService.resize(int, int)
public void move(int x,
int y)
move in the UIService interface. Moves the main
application window to the point with coordinates - x, y.
move in interface UIServicex - the value of X where the main application frame is to be placed.y - the value of Y where the main application frame is to be placed.UIService.move(int, int)public void bringToFront()
bringToFront in interface UIServicepublic void setExitOnMainWindowClose(boolean exitOnMainWindowClose)
UIService.setExitOnMainWindowClose(boolean). Sets the boolean
property which indicates whether the application should be exited when
the main application window is closed.
setExitOnMainWindowClose in interface UIServiceexitOnMainWindowClose - true if closing the main
application window should also be exiting the application; otherwise,
falsepublic boolean getExitOnMainWindowClose()
UIService.getExitOnMainWindowClose(). Gets the boolean
property which indicates whether the application should be exited when
the main application window is closed.
getExitOnMainWindowClose in interface UIServicepublic void initExportedWindows()
public void registerExportedWindow(ExportedWindow window)
window - the window to be exportedpublic void unregisterExportedWindow(ExportedWindow window)
window - the window to no longer be exportedpublic void addPluginComponentListener(PluginComponentListener l)
l - the PluginComponentListener to addpublic void removePluginComponentListener(PluginComponentListener l)
l - the PluginComponentListener to removepublic Iterator<WindowID> getSupportedExportedWindows()
getSupportedExportedWindows in the UIService
interface. Returns an iterator over a set of all windows exported by
this implementation.
getSupportedExportedWindows in interface UIServiceUIService.getSupportedExportedWindows()
public ExportedWindow getExportedWindow(WindowID windowID,
Object[] params)
getExportedWindow in the UIService interface.
Returns the window corresponding to the given WindowID.
getExportedWindow in interface UIServicewindowID - the id of the window we'd like to retrieve.params - the params to be passed to the returned window.
UIService.getExportedWindow(WindowID)public ExportedWindow getExportedWindow(WindowID windowID)
getExportedWindow in the UIService
interface. Returns the window corresponding to the given
WindowID.
getExportedWindow in interface UIServicewindowID - the id of the window we'd like to retrieve.
UIService.getExportedWindow(WindowID)public boolean isExportedWindowSupported(WindowID windowID)
UIService.isExportedWindowSupported method.
Checks if there's an exported component for the given
WindowID.
isExportedWindowSupported in interface UIServicewindowID - the id of the window that we're making the query for.
UIService.isExportedWindowSupported(WindowID)public PopupDialog getPopupDialog()
getPopupDialog in the UIService interface.
Returns a PopupDialog that could be used to show simple
messages, warnings, errors, etc.
getPopupDialog in interface UIServiceUIService.getPopupDialog()public ChatPanel getChat(Contact contact)
UIService.getChat(Contact). If a chat for the given
contact exists already, returns it; otherwise, creates a new one.
getChat in interface UIServicecontact - the contact that we'd like to retrieve a chat window for.
UIService.getChat(Contact)public ChatPanel getChat(ChatRoom chatRoom)
getChat in interface UIServicechatRoom - the ChatRoom for which the searched chat is
about.
public ChatPanel getCurrentChat()
getCurrentChat in interface UIServicepublic String getCurrentPhoneNumber()
getCurrentPhoneNumber in interface UIServicepublic void setCurrentPhoneNumber(String phoneNumber)
setCurrentPhoneNumber in interface UIServicephoneNumber - the phone number to enter in the phone number field.public boolean isContainerSupported(Container containderID)
UIService.isContainerSupported method.
Checks if the plugable container with the given Container is supported
by this implementation.
isContainerSupported in interface UIServicecontainderID - the id of the container that we're making the query
for.
UIService.isContainerSupported(Container)public WizardContainer getAccountRegWizardContainer()
UIService.getAccountRegWizardContainer
method. Returns the current implementation of the
AccountRegistrationWizardContainer.
getAccountRegWizardContainer in interface UIServiceUIService.getAccountRegWizardContainer()public SecurityAuthority getDefaultSecurityAuthority(ProtocolProviderService protocolProvider)
getDefaultSecurityAuthority in interface UIServiceprotocolProvider - the ProtocolProviderService for which
the authentication window is about.
public LoginManager getLoginManager()
public ConferenceChatManager getConferenceChatManager()
public ChatWindowManager getChatWindowManager()
public HistoryWindowManager getHistoryWindowManager()
public MainFrame getMainFrame()
public void serviceChanged(org.osgi.framework.ServiceEvent event)
serviceChanged in interface org.osgi.framework.ServiceListenerevent - the ServiceEvent that notified uspublic static Object getBorderLayoutConstraintsFromContainer(Object containerConstraints)
containerConstraints - constraints defined in the Container
public void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerevt - the PropertyChangeEvent that notified uspublic boolean useMacOSXScreenMenuBar()
useMacOSXScreenMenuBar in interface UIServicepublic void beginShutdown()
beginShutdown in interface ShutdownServicepublic void setConfigurationWindowVisible(boolean visible)
setConfigurationWindowVisible in interface UIServicevisible - true to show the configuration frame,
false - otherwisepublic ConfigurationContainer getConfigurationContainer()
getConfigurationContainer in interface UIServicepublic List<Chat> getChats()
getChats in interface UIServicepublic MetaContact getChatContact(Chat chat)
getChatContact in interface UIServicechat - The chat to get the MetaContact from
public void addWindowListener(WindowListener l)
addWindowListener in interface UIServicel - the WindowListener to addpublic void removeWindowListener(WindowListener l)
removeWindowListener in interface UIServicel - the WindowListener to removepublic Collection<Chat> getAllChats()
getAllChats in interface UIServicepublic SingleWindowContainer getSingleWindowContainer()
public void addChatListener(ChatListener listener)
addChatListener in interface UIServicelistener - listener to be registeredpublic void removeChatListener(ChatListener listener)
removeChatListener in interface UIServicelistener - listener to be unregisteredpublic void repaintUI()
SwingUtilities.updateComponentTreeUI(Component c)
for every window owned by the application which cause UI skin and
layout repaint.
repaintUI in interface UIServicepublic CreateAccountWindow getCreateAccountWindow()
getCreateAccountWindow in interface UIService
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||