public class AjaxSwingUIManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
END_OPERATION_NEW_WINDOW
Specifies taht the operation should be ended when a new window is displayed at the top (not an existing one moved to the top)
|
static int |
END_OPERATION_NEXT_WINDOW
Specifies that the operation should be ended when there is a different top level window
|
static int |
END_OPERATION_NONE
Specifies that the operation should not be ended by UI events
|
static int |
END_OPERATION_TITLED_WINDOW
Specifies that the operation should be ended when a window with a certain title is shown
|
static java.lang.String[] |
JAVA_PACKAGE_NAMES |
static boolean |
LFInstalled |
static boolean |
undecorateFirstFrame |
Constructor and Description |
---|
AjaxSwingUIManager(ClientAgent agent)
Instantiates the manager for the given client agent
|
Modifier and Type | Method and Description |
---|---|
void |
centerWindowIfNeeded(java.awt.Container window) |
void |
closeWindow(java.awt.Window window)
Closes given window
|
AjaxSwingInternalFrameListener |
getInternalFrameListener() |
java.util.List |
getTopWindows()
Returns the top level window for this agent
|
java.awt.Window |
getWindowInFocus()
Returns the top level window for this agent
|
java.lang.String |
getWindowInFocusTitle()
Convenience method that returns the title of the top level window
If there is no window or if the focused window is not Dialog or Frame returns null
|
java.util.List |
getWindows() |
static boolean |
hasCustomClasses(java.lang.Object[] list) |
void |
hideWindow(java.awt.Window window)
Called by Window peer to indicate that a window is being hidden
Removes the window from top of the window stack and processes window-related operations
|
void |
init()
Initializes the manager and installs a trap to prevent look and feel changes
(they slow down the performance and can lead to various exceptions)
|
void |
installLFTrap()
Installs look and feel trap
|
static boolean |
isCustomClass(java.lang.String className) |
static boolean |
isServerSideBrowsingEnabled(ClientAgent agent,
java.awt.Container cont) |
void |
maximizeFrame(java.awt.Frame frame)
Sets the window size to the maximim possible for the current browser window
|
void |
preRenderWindows()
Called after the emulation of the request is finished
|
void |
resizeWindows()
Updates sizes of maximized windows to match the client agent's current browser size
|
void |
restoreFrame(java.awt.Frame frame)
Sets the window size to the normal bounds for the current browser window
|
void |
setEndOperationEvent(int eventCode)
Sets code of the operation that needs to be executed when a window is closed
See AjaxSwing documentation on how to configure and use operations
|
void |
setEndOperationWindowTitle(java.lang.String windowTitle)
Sets the title of the window that should trigger an operation
|
void |
setInternalFrameListener(AjaxSwingInternalFrameListener internalFrameListener) |
static boolean |
shouldRenderStandardFileOpenDialog(ClientAgent agent,
java.awt.Container cont)
Deprecated.
Not used in v.4, replaced by
isServerSideBrowsingEnabled(ClientAgent, Container) |
void |
showWindow(java.awt.Window window)
Called by Window peer to indicate that a window is being shown.
|
void |
shutdown()
Disposes of all currently open windows
|
void |
windowToBack(java.awt.Window window)
Moves the given window to the bottom of the window stack
|
void |
windowToFront(java.awt.Window window)
Moves the given window on top of the window stack
|
public static boolean LFInstalled
public static boolean undecorateFirstFrame
public static java.lang.String[] JAVA_PACKAGE_NAMES
public static final int END_OPERATION_NONE
public static final int END_OPERATION_NEXT_WINDOW
public static final int END_OPERATION_NEW_WINDOW
public static final int END_OPERATION_TITLED_WINDOW
public AjaxSwingUIManager(ClientAgent agent) throws java.lang.Exception
agent
- ClientAgentjava.lang.Exception
public void init() throws java.lang.Exception
java.lang.Exception
public java.awt.Window getWindowInFocus() throws java.lang.Exception
java.lang.Exception
public java.util.List getTopWindows() throws java.lang.Exception
java.lang.Exception
public java.util.List getWindows()
public void resizeWindows() throws java.lang.Exception
java.lang.Exception
public void maximizeFrame(java.awt.Frame frame)
frame
- public void restoreFrame(java.awt.Frame frame)
frame
- public void showWindow(java.awt.Window window)
window
- Windowpublic void centerWindowIfNeeded(java.awt.Container window)
public void hideWindow(java.awt.Window window)
window
- Windowpublic void windowToFront(java.awt.Window window)
window
- Windowpublic void windowToBack(java.awt.Window window)
window
- Windowpublic void closeWindow(java.awt.Window window)
public void shutdown()
public void setEndOperationEvent(int eventCode)
eventCode
- one of END_OPERATION_XXX constantspublic void setEndOperationWindowTitle(java.lang.String windowTitle)
windowTitle
- Stringpublic void installLFTrap() throws java.lang.Exception
java.lang.Exception
public static boolean isServerSideBrowsingEnabled(ClientAgent agent, java.awt.Container cont)
public static boolean shouldRenderStandardFileOpenDialog(ClientAgent agent, java.awt.Container cont)
isServerSideBrowsingEnabled(ClientAgent, Container)
public void preRenderWindows() throws java.lang.Exception
java.lang.Exception
public java.lang.String getWindowInFocusTitle()
public static boolean hasCustomClasses(java.lang.Object[] list)
public static boolean isCustomClass(java.lang.String className)
public AjaxSwingInternalFrameListener getInternalFrameListener()
public void setInternalFrameListener(AjaxSwingInternalFrameListener internalFrameListener)
Copyright © 2000-2012 CreamTec LLC. All Rights Reserved.