Package com.oorian.messaging.commands
Class CloseBrowserWindowCommand
java.lang.Object
com.oorian.messaging.commands.Command
com.oorian.messaging.commands.CloseBrowserWindowCommand
Command to close a browser window by name.
This command instructs the client to close a browser window that was previously opened using NewBrowserWindowCommand. Windows are identified by their assigned names.
Features:
- Closes browser windows by name
- Works with windows opened by NewBrowserWindowCommand
- Enables programmatic window management
- Supports multi-window applications
Usage:
// Close a window named "popupWindow"
CloseBrowserWindowCommand close = new CloseBrowserWindowCommand("popupWindow");
JsonObject json = close.toJson();
- Since:
- 2007
- Version:
- 1.0
- Author:
- Marvin P. Warble Jr.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new CloseBrowserWindowCommand to close the window with the specified name. -
Method Summary
Modifier and TypeMethodDescriptiontoJson()Generates the JSON representation of this close window command.Methods inherited from class com.oorian.messaging.commands.Command
getElementId, getId, setElementId, toString
-
Constructor Details
-
CloseBrowserWindowCommand
Constructs a new CloseBrowserWindowCommand to close the window with the specified name.- Parameters:
name- the name of the browser window to close
-
-
Method Details