public abstract class AbstractExportedWindow<T extends java.awt.Window> extends java.lang.Object implements ExportedWindow
Modifier and Type | Field and Description |
---|---|
protected T |
window
The
Window wrapped by this instance and to which
ExportedWindow capabilities are provided. |
ABOUT_WINDOW, ADD_CONTACT_WINDOW, CHAT_WINDOW, MAIN_WINDOW
Constructor and Description |
---|
AbstractExportedWindow() |
Modifier and Type | Method and Description |
---|---|
void |
bringToFront()
Brings the focus to this window.
|
protected abstract T |
createWindow()
Creates the
Window instance to be wrapped by this instance
and to which ExportedWindow capabilities are provided. |
java.lang.Object |
getSource()
The source of the window
|
protected T |
getWindow()
Gets the
Window wrapped by this instance and to which
ExportedWindow capabilities are provided. |
boolean |
isFocused()
Returns TRUE if this component is currently the focused component,
FALSE - otherwise.
|
boolean |
isVisible()
Returns TRUE if the component is visible and FALSE otherwise.
|
void |
maximize()
Implements
ExportedWindow.maximize() . |
void |
minimize()
Implements
ExportedWindow.minimize() . |
void |
setLocation(int x,
int y)
Moves the window to the given coordinates.
|
void |
setParams(java.lang.Object[] windowParams)
Implements
ExportedWindow.setParams(Object[]) . |
void |
setSize(int width,
int height)
Resizes the window with the given width and height.
|
void |
setVisible(boolean visible)
Shows or hides this component.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIdentifier
protected T extends java.awt.Window window
Window
wrapped by this instance and to which
ExportedWindow
capabilities are provided.public void bringToFront()
ExportedWindow
bringToFront
in interface ExportedWindow
protected abstract T createWindow()
Window
instance to be wrapped by this instance
and to which ExportedWindow
capabilities are provided.Window
instance to be wrapped by this instance
and to which ExportedWindow
capabilities are
providedpublic java.lang.Object getSource()
ExportedWindow
getSource
in interface ExportedWindow
protected T getWindow()
Window
wrapped by this instance and to which
ExportedWindow
capabilities are provided.Window
wrapped by this instance and to which
ExportedWindow
capabilities are providedpublic boolean isFocused()
ExportedWindow
isFocused
in interface ExportedWindow
public boolean isVisible()
ExportedWindow
isVisible
in interface ExportedWindow
true
if the component is visible and
false
otherwise.public void maximize()
maximize
in interface ExportedWindow
public void minimize()
minimize
in interface ExportedWindow
public void setLocation(int x, int y)
ExportedWindow
setLocation
in interface ExportedWindow
x
- The x coordinate.y
- The y coordinate.public void setParams(java.lang.Object[] windowParams)
ExportedWindow.setParams(Object[])
. Does nothing.setParams
in interface ExportedWindow
windowParams
- the parameters to set to the Window
wrapped in
this instancepublic void setSize(int width, int height)
ExportedWindow
setSize
in interface ExportedWindow
width
- The new width.height
- The new height.public void setVisible(boolean visible)
ExportedWindow
setVisible
in interface ExportedWindow
visible
- indicates whether to set this window visible or hide it
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.