Home | Trees | Indices | Help |
|
---|
|
object --+ | util.IEventListener --+ | terminal.paintable.IPaintable --+ | object --+ | | | terminal.variable_owner.IVariableOwner --+ | object --+ | | | terminal.sizeable.ISizeable --+ | component.IComponent --+ | object --+ | | | event.method_event_source.IMethodEventSource --+ | abstract_component.AbstractComponent --+ | object --+ | | | util.IEventListener --+ | | | terminal.paintable.IPaintable --+ | | | object --+ | | | | | terminal.variable_owner.IVariableOwner --+ | | | object --+ | | | | | terminal.sizeable.ISizeable --+ | | | component.IComponent --+ | | | component_container.IComponentContainer --+ | abstract_component_container.AbstractComponentContainer --+ | object --+ | | | terminal.scrollable.IScrollable --+ | object --+ | | | component_container.IComponentAttachListener --+ | object --+ | | | component_container.IComponentDetachListener --+ | object --+ | | | event.action.IContainer --+ | | | event.action.INotifier --+ | object --+ | | | util.IEventListener --+ | | | terminal.paintable.IPaintable --+ | | | object --+ | | | | | terminal.variable_owner.IVariableOwner --+ | | | object --+ | | | | | terminal.sizeable.ISizeable --+ | | | component.IComponent --+ | | | component.IFocusable --+ | panel.Panel --+ | object --+ | | | terminal.uri_handler.IUriHandler --+ | object --+ | | | terminal.parameter_handler.IParameterHandler --+ | object --+ | | | event.field_events.IFocusNotifier --+ | object --+ | | | event.field_events.IBlurNotifier --+ | Window
A component that represents an application (browser native) window or a sub window.
If the window is a application window or a sub window depends on how
it is added to the application. Adding a Window
to a
Window
using Window.addWindow makes it a sub window and adding a
Window
to the Application
using Application.addWindow
makes it an application
window.
An application window is the base of any view in a Muntjac
application. All applications contain a main application window (set
using ApplicationsetMainWindow
which is what is
initially shown to the user. The contents of a window is set using setContent. The contents can in turn contain other
components. For multi-tab applications there is one window instance per
opened tab.
A sub window is floating popup style window that can be added to an application window. Like the application window its content is set using setContent. A sub window can be positioned on the screen using absolute coordinates (pixels). The default content of the Window is set to be suitable for application windows. For sub windows it might be necessary to set the size of the content to work as expected.
Window caption is displayed in the browser title bar for application level windows and in the window header for sub windows.
Certain methods in this class are only meaningful for sub windows and other parts only for application windows. These are marked using Sub window only and Application window only respectively in the API doc.
Version: 1.1.2
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
CLIENT_WIDGET = None hash(x) |
|||
BORDER_NONE = 0
|
|||
BORDER_MINIMAL = 1
|
|||
BORDER_DEFAULT = 2
|
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
Creates a new unnamed window with the given content and title.
|
Adds the component into this container.
|
Application window only. Gets the user terminal.
|
Gets the parent window of the component. This is always the window itself. This method is not meant to be overridden.
See Also: IComponent.getWindow |
Gets the application object to which the component is attached. The method will return This method is not meant to be overridden.
|
Gets the parent component of the window. The parent of an application window is always null. The parent of a sub window is the application window the sub window is attached to. This method is not meant to be overridden.
See Also: IComponent.getParent |
Application window only. Adds a new URI handler to this window. If this is a sub window the URI handler is attached to the parent application window.
|
Application window only. Removes the URI handler from this window. If this is a sub window the URI handler is removed from the parent application window.
|
Application window only. Handles an URI by passing the URI to
all URI handlers defined using addURIHandler. All URI handlers are called for each URI
but no more than one handler may return a DownloadStream. If more than one stream is returned a
|
Application window only. Adds a new parameter handler to this window. If this is a sub window the parameter handler is attached to the parent application window.
|
Application window only. Removes the parameter handler from this window. If this is a sub window the parameter handler is removed from the parent application window.
|
Application window only. Handles parameters by passing the
parameters to all
See Also: IParameterHandler.handleParameters |
Application window only. Gets the theme for this window. If the theme for this window is not explicitly set, the application theme name is returned. If the window is not attached to an application, the terminal default theme name is returned. If the theme name cannot be determined, null is returned Subwindows do not support themes and return the theme used by the parent window
|
Application window only. Sets the name of the theme to use for this window. Changing the theme will cause the page to be reloaded.
|
Paints any needed component-specific things to the given UIDL stream. The more general paint method handles all general attributes common to all components, and it calls this method to paint any component-specific attributes to the UIDL stream.
|
Scrolls any component between the component and window to a suitable position so the component is visible to the user. The given component must be inside this window.
|
Opens the given resource in a window with the given size, border and name. The supplied "", null and "_self" as "_blank" as "_top" and "_parent" as Any other
|
Gets the full URL of the window. The returned URL is window specific and can be used to directly refer to the window. Note! This method can not be used for portlets.
|
Application window only. Gets the unique name of the window. The name of the window is used to uniquely identify it. The name also determines the URL that can be used for direct access to
a window. All windows can be accessed through
|
Returns the border style of the window.
See Also: setBorder |
Sets the border style for this window. Valid values are Window.BORDER_NONE, Window.BORDER_MINIMAL, Window.BORDER_DEFAULT. Note! Setting this seems to currently have no effect whatsoever on the window.
|
Sets the application this window is attached to. This method is called by the framework and should not be called
directly from application code. This method invokes
|
Application window only. Sets the unique name of the window. The name of the window is used to uniquely identify it inside the application. The name also determines the URL that can be used for direct access to
a window. All windows can be accessed through
This method can only be called before the window is added to an application.
|
Sets the user terminal. Used by the terminal adapter, should never be called from application code.
|
Called when one or more variables handled by the implementing class are changed.
|
Method that handles window closing (from UI). By default, sub-windows are removed from their respective parent windows and thus visually closed on browser-side. Browser-level windows also closed on the client-side, but they are not implicitly removed from the application. To explicitly close a sub-window, use removeWindow. To react to a window being closed (after it is closed), register a ICloseListener. |
Gets the distance of Window left border in pixels from left border of the containing (main window).
|
Sets the distance of Window left border in pixels from left border of the containing (main window).
|
Gets the distance of Window top border in pixels from top border of the containing (main window).
|
Sets the distance of Window top border in pixels from top border of the containing (main window).
|
Adds a close/resize/focus/blur listener to the window. For a sub window the ICloseListener is fired when the user closes it (clicks on the close button). For a browser level window the ICloseListener is fired when the browser level window is closed. Note that closing a browser level window does not mean it will be destroyed. Note, that focus/blur listeners in Window class are only supported by sub windows. Also note that Window is not considered focused if its contained component currently has focus.
|
|
Removes the close/resize from the window. For more information on CloseListeners see ICloseListener.
|
|
Adds a window inside another window. Adding windows inside another window creates "subwindows". These windows should not be added to application directly and are not accessible directly with any url. Addding windows implicitly sets their parents. Only one level of subwindows are supported. Thus you can add windows
inside such windows whose parent is
|
Remove the given subwindow from this window. ICloseListeners are called also when explicitly removing a window by calling this method. Returns a boolean indicating if the window was removed or not.
|
If there are currently several sub windows visible, calling this method makes this window topmost. This method can only be called if this window is a sub window and connected a top level window. Else an illegal state exception is thrown. Also if there are modal windows and this window is not modal, and illegal state exception is thrown. Note, this API works on sub windows only. Browsers can't reorder OS windows. |
Get the set of all child windows.
|
Sets sub-window modal, so that widgets behind it cannot be accessed. Note: affects sub-windows only.
|
|
Sets sub-window resizable. Note: affects sub-windows only.
|
|
|
Should resize operations be lazy, i.e. should there be a delay before layout sizes are recalculated. Speeds up resize operations in slow UIs with the penalty of slightly decreased usability. Note, some browser send false resize events for the browser window and are therefore always lazy.
|
Request to center this window on the screen. Note: affects sub-windows only. |
Shows a notification message the window. The position and behavior of the message depends on the type, which is one of the basic types defined in Notification, for instance Notification.TYPE_WARNING_MESSAGE, defaults to "humanized". Care should be taken to to avoid XSS vulnerabilities as the caption is rendered as html.
|
This method is used by Component.Focusable objects to request focus to themselves. Focus renders must be handled at window level (instead of IFocusable) due we want the last focused component to be focused in client too. Not the one that is rendered last (the case we'd get if implemented in Focusable only). To focus component from Muntjac application, use IFocusable.focus(). See IFocusable.
|
Executes JavaScript in this window. This method allows one to inject javascript from the server to client. A client implementation is not required to implement this functionality, but currently all web-based clients do implement this. Executing javascript this way often leads to cross-browser compatibility issues and regressions that are hard to resolve. Use of this method should be avoided and instead it is recommended to create new widgets with GWT.
|
Returns the closable status of the sub window. If a sub window is closable it typically shows an X in the upper right corner. Clicking on the X sends a close event to the server. Setting closable to false will remove the X from the sub window and prevent the user from closing the window. Note! For historical reasons readonly controls the closability of the sub window and therefore readonly and closable affect each other. Setting readonly to true will set closable to false and vice versa. Closable only applies to sub windows, not to browser level windows.
|
Sets the closable status for the sub window. If a sub window is closable it typically shows an X in the upper right corner. Clicking on the X sends a close event to the server. Setting closable to false will remove the X from the sub window and prevent the user from closing the window. Note! For historical reasons readonly controls the closability of the sub window and therefore readonly and closable affect each other. Setting readonly to true will set closable to false and vice versa. Closable only applies to sub windows, not to browser level windows.
|
Indicates whether a sub window can be dragged or not. By default a sub window is draggable. Draggable only applies to sub windows, not to browser level windows. |
Enables or disables that a sub window can be dragged (moved) by the user. By default a sub window is draggable. Draggable only applies to sub windows, not to browser level windows.
|
Makes is possible to close the window by pressing the given KeyCode and (optional) ModifierKeys. Note that this shortcut only reacts while the window has focus, closing itself - if you want to close a subwindow from a parent window, use addAction of the parent window instead.
|
If the window is a sub-window focusing will cause the sub-window to be brought on top of other sub-windows on gain keyboard focus.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Apr 20 16:01:29 2013 | http://epydoc.sourceforge.net |