|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.core.AbstractDisposable
yu.ac.bg.etf.javaqx.qswing.JQComponent
yu.ac.bg.etf.javaqx.qswing.JQContainer
yu.ac.bg.etf.javaqx.qswing.JQWindow
Window Component.
Field Summary | |
static boolean |
ALWAYS_ON_TOP_WINDOW_SUPPORTED
True if always-on-top windows are supported on the platform. |
static int |
BORDER_HELP_BUTTON
Undecorated border decoration (the value is 65536). |
static int |
BORDER_MAXIMIZE_BUTTON
Undecorated border decoration (the value is 32768). |
static int |
BORDER_MINIMIZE_BUTTON
Undecorated border decoration (the value is 16384). |
static int |
BORDER_SYSTEM_MENU
Undecorated border decoration (the value is 8192). |
static int |
BORDER_TITLE
Undecorated border decoration (the value is 4096). |
static int |
BORDER_UNDECORATED
Undecorated border decoration (the value is 2048). |
static boolean |
FULL_SCREEN_WINDOW_SUPPORTED
True if full screen window is supported on the platform. |
static int |
TYPE_DIALOG
Dialog window type (the value is 3). |
static int |
TYPE_POPUP
Tool window type (the value is 9). |
static int |
TYPE_SPLASH_SCREEN
Splash screen window type (the value is 15). |
static int |
TYPE_TOOL
Tool window type (the value is 11). |
static int |
TYPE_WINDOW
Window window type (the value is 1). |
static boolean |
WINDOW_OPACITY_SUPPORTED
True if window opacity is supported on the platform. |
static boolean |
WINDOW_SHAPE_SUPPORTED
True if custom window shape is supported on the platform. |
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.JQComponent |
listenerList |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.JQWindowConstants |
APPLICATION_MODAL, DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, FULL_SCREEN, HIDE_ON_CLOSE, ICONIFIED, MAXIMIZED, NON_MODAL, NORMAL, POSITION_CUSTOM, QUIT_ON_CLOSE, WINDOW_MODAL |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQWindowProperties |
PROPERTY_ALWAYS_ON_TOP, PROPERTY_DEFAULT_CLOSE_OPERATION, PROPERTY_ICON_IMAGE, PROPERTY_OPACITY, PROPERTY_SHAPE, PROPERTY_TITLE |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQContainerProperties |
PROPERTY_LAYOUT_MANAGER |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQComponentProperties |
PROPERTY_BACKGROUND, PROPERTY_COMPONENT_ORIENTATION, PROPERTY_CONTEXT_MENU, PROPERTY_ENABLED, PROPERTY_FIXED_SIZE, PROPERTY_FOCUSABLE, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_INSETS, PROPERTY_LOCALE, PROPERTY_MAXIMUM_SIZE, PROPERTY_MINIMUM_SIZE, PROPERTY_NAME, PROPERTY_OPAQUE, PROPERTY_PREFERRED_SIZE, PROPERTY_RESOURCE_BUNDLE_NAME, PROPERTY_STATUS_TIP_TEXT, PROPERTY_STYLE_SHEET, PROPERTY_TOOL_TIP_TEXT, PROPERTY_VISIBLE, PROPERTY_WHATS_THIS_TEXT |
Constructor Summary | |
JQWindow()
Constructs new JQWindow object. |
|
JQWindow(LayoutManager layoutManager)
Constructs new JQWindow object. |
|
JQWindow(LayoutManager layoutManager,
java.lang.String title)
Constructs new JQWindow object. |
|
JQWindow(java.lang.String title)
Constructs new JQWindow object. |
Method Summary | |
void |
addWindowListener(WindowListener listener)
Adds window listener. |
static JQWindow |
getActiveWindow()
Returns active window. |
int |
getBorderDecoration()
Returns border decoration. |
int |
getDefaultCloseOperation()
Returns default close operation. |
Image |
getIconImage()
Returns icon image. |
int |
getModalityType()
Returns window modality. |
double |
getOpacity()
Returns window opacity. |
JQComponent[] |
getOwnedComponents()
Return an array containing all the components this component currently owns. |
JQWindow[] |
getOwnedWindows()
Return an array containing all the window this window currently owns. |
int |
getState()
Returns window state. |
java.lang.String |
getTitle()
Returns window title. |
WindowListener[] |
getWindowListeners()
Returns window listeners. |
JQWindow |
getWindowOwner()
Returns owner of this window. |
static JQWindow[] |
getWindows()
Returns all live (non disposed) windows. |
int |
getWindowType()
Returns window type. |
boolean |
isAlwaysOnTop()
Returns true if the window is an always-on-top window. |
boolean |
isFullScreen()
Returns true if the window is full screen. |
boolean |
isModal()
Returns true if the window is modal. |
boolean |
isUndecorated()
Returns true if the window is undecorated (frameless). |
protected java.lang.String |
paramString()
Returns parameters string. |
protected void |
processWindowEvent(WindowEvent event)
Process window event. |
void |
removeWindowListener(WindowListener listener)
Removes window listener. |
void |
setAlwaysOnTop(boolean alwaysOnTop)
Sets this window to be always above other windows. |
void |
setBorderDecoration(int borderDecoration)
Sets border decoration. |
void |
setDefaultCloseOperation(int operation)
Sets default close operation. |
void |
setFixedSize(Dimension fixedSize)
Sets fixed size. |
void |
setFullScreen(boolean fullScreen)
Sets full screen window. |
void |
setIconImage(Image iconImage)
Sets the icon image. |
void |
setLocationRelativeTo(JQWindow window)
Sets location of the window relative to the specified window. |
void |
setModalityType(int modalityType)
Sets window modality. |
void |
setOpacity(double opacity)
Sets window opacity. |
void |
setState(int state)
Sets window state. |
void |
setTitle(java.lang.String title)
Sets window title. |
void |
setUndecorated(boolean undecorated)
Sets/unsets window decoration. |
void |
setWindowOwner(JQWindow owner)
Sets the owner of this window. |
protected void |
setWindowType(int windowType)
Sets window type. |
void |
toBack()
Brings window to the front. |
void |
toFront()
Sends window to the back. |
void |
toggleFullScreen()
Toggles full screen. |
void |
updateLocalization()
Updates localization. |
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.JQContainer |
add, add, add, add, addImpl, doLayout, getComponent, getComponentCount, getComponentIndex, getComponents, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, invalidate, pack, remove, remove, removeAll, setBackground, setComponentOrientation, setForeground, setLayout, validate |
Methods inherited from class yu.ac.bg.etf.javaqx.core.AbstractDisposable |
addDisposeListener, dispose, disposedCheck, disposedErrorString, finalize, isDisposed, removeDisposeListener |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int TYPE_WINDOW
public static final int TYPE_DIALOG
public static final int TYPE_POPUP
public static final int TYPE_TOOL
public static final int TYPE_SPLASH_SCREEN
public static final int BORDER_UNDECORATED
public static final int BORDER_TITLE
public static final int BORDER_SYSTEM_MENU
public static final int BORDER_MINIMIZE_BUTTON
public static final int BORDER_MAXIMIZE_BUTTON
public static final int BORDER_HELP_BUTTON
public static final boolean WINDOW_OPACITY_SUPPORTED
public static final boolean ALWAYS_ON_TOP_WINDOW_SUPPORTED
public static final boolean FULL_SCREEN_WINDOW_SUPPORTED
public static final boolean WINDOW_SHAPE_SUPPORTED
Constructor Detail |
public JQWindow()
public JQWindow(java.lang.String title)
title
- the window titlepublic JQWindow(LayoutManager layoutManager)
layoutManager
- the layout managerpublic JQWindow(LayoutManager layoutManager, java.lang.String title)
layoutManager
- the layout managertitle
- the window titleMethod Detail |
public static JQWindow[] getWindows()
NOTE: A window in the returned array can be disposed after method call!
public static JQWindow getActiveWindow()
public int getWindowType()
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- the window titlepublic Image getIconImage()
public void setIconImage(Image iconImage)
iconImage
- the icon imagepublic double getOpacity()
public void setOpacity(double opacity)
opacity
- the opacitypublic int getDefaultCloseOperation()
public void setDefaultCloseOperation(int operation)
operation
- the default operationpublic int getState()
public void setState(int state)
state
- intpublic boolean isModal()
public int getModalityType()
public void setModalityType(int modalityType)
modalityType
- the modality typepublic boolean isAlwaysOnTop()
public void setAlwaysOnTop(boolean alwaysOnTop)
alwaysOnTop
- if true the window is always above other
windowspublic boolean isFullScreen()
public void setFullScreen(boolean fullScreen)
fullScreen
- if true the window is full screen windowpublic void toggleFullScreen()
public void setLocationRelativeTo(JQWindow window)
window
- the windowpublic void toBack()
public void toFront()
public int getBorderDecoration()
public void setBorderDecoration(int borderDecoration)
borderDecoration
- the border decorationpublic boolean isUndecorated()
public void setUndecorated(boolean undecorated)
undecorated
- if false the window is undecorated.public void addWindowListener(WindowListener listener)
listener
- the window listenerpublic void removeWindowListener(WindowListener listener)
listener
- the window listenerpublic WindowListener[] getWindowListeners()
public final JQWindow getWindowOwner()
public void setWindowOwner(JQWindow owner)
owner
- the ownerpublic JQWindow[] getOwnedWindows()
protected void setWindowType(int windowType)
windowType
- the window typeprotected void processWindowEvent(WindowEvent event)
event
- the eventpublic void setFixedSize(Dimension fixedSize)
setFixedSize
in class JQComponent
fixedSize
- the fixed sizepublic void updateLocalization()
updateLocalization
in class JQContainer
public JQComponent[] getOwnedComponents()
getOwnedComponents
in class JQContainer
protected java.lang.String paramString()
paramString
in class JQContainer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |