diff options
author | Yana Stamcheva <yana@jitsi.org> | 2008-09-10 20:44:05 +0000 |
---|---|---|
committer | Yana Stamcheva <yana@jitsi.org> | 2008-09-10 20:44:05 +0000 |
commit | 0c40c5109ac460c2286e10acc1a7d28d11e6fd8b (patch) | |
tree | 611107128f3ddcabb3aeb09b06f6a27d128df783 /src/net/java/sip/communicator/service/gui | |
parent | 04d5a4c7e3fdc94f039808702c01910ffae42db7 (diff) | |
download | jitsi-0c40c5109ac460c2286e10acc1a7d28d11e6fd8b.zip jitsi-0c40c5109ac460c2286e10acc1a7d28d11e6fd8b.tar.gz jitsi-0c40c5109ac460c2286e10acc1a7d28d11e6fd8b.tar.bz2 |
- Added some new color constants.
- Added set/getSize and set/getLocation methods to the UIService.
Diffstat (limited to 'src/net/java/sip/communicator/service/gui')
-rw-r--r-- | src/net/java/sip/communicator/service/gui/Container.java | 8 | ||||
-rw-r--r-- | src/net/java/sip/communicator/service/gui/UIService.java | 34 |
2 files changed, 40 insertions, 2 deletions
diff --git a/src/net/java/sip/communicator/service/gui/Container.java b/src/net/java/sip/communicator/service/gui/Container.java index 30e9514..06485b0 100644 --- a/src/net/java/sip/communicator/service/gui/Container.java +++ b/src/net/java/sip/communicator/service/gui/Container.java @@ -131,6 +131,12 @@ public class Container public static final Container CONTAINER_CALL_BUTTONS_PANEL = new Container("CONTAINER_CALL_BUTTONS_PANEL"); + /** + * Status bar container. + */ + public static final Container CONTAINER_STATUS_BAR + = new Container("CONTAINER_STATUS_BAR"); + /* * Constraints */ @@ -214,4 +220,4 @@ public class Container else return false; } -} +}
\ No newline at end of file diff --git a/src/net/java/sip/communicator/service/gui/UIService.java b/src/net/java/sip/communicator/service/gui/UIService.java index be7cffd..264124d 100644 --- a/src/net/java/sip/communicator/service/gui/UIService.java +++ b/src/net/java/sip/communicator/service/gui/UIService.java @@ -6,6 +6,7 @@ */ package net.java.sip.communicator.service.gui; +import java.awt.*; import java.util.*; import net.java.sip.communicator.service.protocol.*; @@ -68,6 +69,37 @@ public interface UIService public void setVisible(boolean visible); /** + * Returns the current location of the main application window. The returned + * point is the top left corner of the window. + * + * @return The top left corner coordinates of the main application window. + */ + public Point getLocation(); + + /** + * Locates the main application window to the new x and y coordinates. + * + * @param x The new x coordinate. + * @param y The new y coordinate. + */ + public void setLocation(int x, int y); + + /** + * Returns the size of the main application window. + * + * @return the size of the main application window. + */ + public Dimension getSize(); + + /** + * Sets the size of the main application window. + * + * @param width The width of the window. + * @param height The height of the window. + */ + public void setSize(int width, int height); + + /** * Minimizes the main application window. */ public void minimize(); @@ -274,4 +306,4 @@ public interface UIService * <code>false</code> otherwise. */ public boolean isContainerSupported(Container containderID); -} +}
\ No newline at end of file |