Module Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr body Return NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Return If CompareIsNot Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad BinOpAdd Str Str Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIn NameLoad AttributeLoad NameLoad attr body If CompareEq NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body Return Raise Call NameLoad BinOpAdd BinOpAdd Str Call AttributeLoad NameLoad attr Str If CompareIs NameLoad NameLoad body Assign NameStore NameLoad While UnaryOpNot NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Num If UnaryOpNot CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareIs Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIn NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body Delete SubscriptDel AttributeLoad NameLoad attr Index Call AttributeLoad NameLoad attr If CompareEq Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If BoolOpOr CompareEq NameLoad NameLoad BoolOpAnd CompareIsNot NameLoad NameLoad CompareEq NameLoad NameLoad body Return Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad For TupleStore NameStore NameStore AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr If BoolOpOr CompareIs NameLoad NameLoad BoolOpAnd UnaryOpNot CompareEq NameLoad NameLoad CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Return AugAssignAdd AttributeStore NameLoad attr Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot NameLoad NameLoad body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Return NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call NameLoad Str NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad orelse Return NameLoad orelse Return NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return AttributeLoad NameLoad attr Return Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If BoolOpAnd Call NameLoad NameLoad NameLoad BoolOpOr CompareIs NameLoad NameLoad Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd Call NameLoad NameLoad NameLoad BoolOpOr CompareIs NameLoad NameLoad Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd Call NameLoad NameLoad NameLoad BoolOpOr CompareIs NameLoad NameLoad Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad vararg body If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad orelse Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If BoolOpAnd Call NameLoad NameLoad NameLoad BoolOpOr CompareIs NameLoad NameLoad CompareEq NameLoad NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd Call NameLoad NameLoad NameLoad BoolOpOr CompareIs NameLoad NameLoad Call NameLoad NameLoad NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd Call NameLoad NameLoad NameLoad BoolOpOr CompareIs NameLoad NameLoad Call NameLoad NameLoad NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad orelse If Call NameLoad NameLoad NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad orelse If Call NameLoad NameLoad NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad orelse Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Return Assign NameStore NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call NameLoad Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list
N/A N/A Defines a base class required for all Muntjac applications. N/A sys N/A traceback N/A logging warnings warn muntjac.util EventObject IEventListener defaultLocale muntjac.terminal.uri_handler IUriHandler muntjac.terminal.sys_error SysError muntjac.terminal.terminal IErrorListener ITerminal muntjac.terminal.parameter_handler IErrorEvent muntjac.terminal.error_message IErrorMessage muntjac.terminal.variable_owner IErrorEvent VariableOwnerErrorEvent muntjac.terminal.uri_handler IErrorEvent URIHandlerErrorEvent muntjac.terminal.parameter_handler IErrorEvent ParameterHandlerErrorEvent muntjac.terminal.gwt.server.change_variables_error_event ChangeVariablesErrorEvent muntjac.ui.abstract_component AbstractComponent muntjac.ui.window Window muntjac.messages SystemMessages N/A logger N/A N/A logging getLogger __name__ Application N/A IUriHandler ITerminal IErrorListener N/A N/A Base class required for all Muntjac applications. This class provides
    all the basic services required by Muntjac. These services allow external
    discovery and manipulation of the user, L{com.vaadin.ui.Window windows} and
    themes, and starting and stopping the application.

    As mentioned, all Muntjac applications must inherit this class. However,
    this is almost all of what one needs to do to create a fully functional
    application. The only thing a class inheriting the C{Application}
    needs to do is implement the C{init} method where it creates the
    windows it needs to perform its function. Note that all applications must
    have at least one window: the main window. The first unnamed window
    constructed by an application automatically becomes the main window which
    behaves just like other windows with one exception: when accessing windows
    using URLs the main window corresponds to the application URL whereas other
    windows correspond to a URL gotten by catenating the window's name to the
    application URL.

    See the class C{muntjac.demo.HelloWorld} for a simple example of
    a fully working application.

    B{Window access.} C{Application} provides methods to
    list, add and remove the windows it contains.

    B{Execution control.} This class includes method to start and finish the
    execution of the application. Being finished means basically that no
    windows will be available from the application anymore.

    B{Theme selection.} The theme selection process allows a theme to be
    specified at three different levels. When a window's theme needs to be
    found out, the window itself is queried for a preferred theme. If the
    window does not prefer a specific theme, the application containing the
    window is queried. If neither the application prefers a theme, the default
    theme for the L{terminal<muntjac.terminal.terminal.ITerminal>} is used. The
    terminal always defines a default theme.

    @author: Vaadin Ltd.
    @author: Richard Lincoln
    @version: @VERSION@
     N/A _DEFAULT_SYSTEM_MESSAGES N/A SystemMessages __init__ N/A N/A self N/A N/A N/A N/A self _nextWindowId 1 N/A N/A self _context None N/A N/A self _user None N/A N/A self _windows N/A dict N/A N/A self _mainWindow None N/A N/A self _applicationUrl None N/A N/A self theme None N/A N/A self _applicationIsRunning False N/A N/A self _properties dict N/A N/A self _locale None N/A N/A self _userChangeListeners N/A list N/A N/A self _userChangeCallbacks N/A dict N/A N/A self _windowAttachListeners N/A list N/A N/A self _windowAttachCallbacks N/A dict N/A N/A self _windowDetachListeners N/A list N/A N/A self _windowDetachCallbacks N/A dict N/A N/A self _resourceKeyMap N/A dict N/A N/A self _keyResourceMap N/A dict N/A N/A self _lastResourceKeyNumber 0 N/A N/A self _logoutURL None N/A N/A self _errorHandler self N/A getWindow N/A N/A self name N/A N/A N/A Gets a window by name. Returns C{None} if the application is
        not running or it does not contain a window corresponding to the name.

        All windows can be referenced by their names in url
        C{http://host:port/foo/bar/} where
        C{http://host:port/foo/} is the application url as returned by
        getURL() and C{bar} is the name of the window.

        One should note that this method can, as a side effect create new
        windows if needed by the application. This can be achieved by
        overriding the default implementation.

        If for some reason user opens another window with same url that is
        already open, name is modified by adding "_12345678" postfix to the
        name, where 12345678 is a random number. One can decide to create
        another window-object for those windows (recommended) or to discard
        the postfix. If the user has two browser windows pointing to the same
        window-object on server, synchronization errors are likely to occur.

        If no browser-level windowing is used, all defaults are fine and this
        method can be left as is. In case browser-level windows are needed, it
        is recommended to create new window-objects on this method from their
        names if the super.getWindow() does not find existing windows. See
        below for implementation example::

                # If we already have the requested window, use it
                w = super(Application, self).getWindow(name)
                if w == None:
                    # If no window found, create it
                    w = Window(name)
                    # set windows name to the one requested
                    w.setName(name)
                    # add it to this application
                    addWindow(w)
                    # ensure use of window specific url
                    w.open( ExternalResource(w.getURL()) )
                    # add some content
                    w.addComponent( Label("Test window") )

                return w

        B{Note} that all returned Window objects must be added to
        this application instance.

        The method should return null if the window does not exists (and is not
        created as a side-effect) or if the application is not running anymore.

        @param name:
                   the name of the window.
        @return: the window associated with the given URI or C{None}
         N/A N/A N/A N/A self isRunning N/A N/A None N/A N/A N/A N/A self _windows get name N/A addWindow N/A N/A self window N/A N/A N/A Adds a new window to the application.

        This implicitly invokes the L{Window.setApplication} method.

        Note that all application-level windows can be accessed by their names
        in url C{http://host:port/foo/bar/} where C{http://host:port/foo/} is
        the application url as returned by getURL() and C{bar} is the name of
        the window. Also note that not all windows should be added to
        application - one can also add windows inside other windows - these
        windows show as smaller windows inside those windows.

        @param window:
                   the new C{Window} to add. If the name of the window
                   is C{None}, an unique name is automatically given
                   for the window.
        @raise ValueError:
                    if a window with the same name as the new window already
                    exists in the application.
        @raise ValueError:
                    if the given C{Window} is C{None}.
         N/A N/A window None N/A N/A N/A N/A N/A N/A window getParent None N/A N/A N/A ValueError N/A Window was already added inside another window  - it can not be added to application also. N/A name N/A N/A window getName N/A N/A N/A name None N/A name N/A self _windows N/A N/A N/A window N/A N/A self _windows N/A name N/A N/A N/A N/A ValueError N/A N/A Window with name ' N/A N/A window getName ' is already present in the application N/A N/A name None N/A N/A accepted False N/A N/A accepted N/A N/A name N/A str N/A self _nextWindowId N/A N/A self _nextWindowId 1 N/A N/A N/A name N/A self _windows N/A N/A accepted True N/A N/A N/A window setName name N/A N/A N/A self _windows N/A name window N/A N/A N/A window setApplication self N/A N/A N/A self _fireWindowAttachEvent window N/A N/A N/A N/A self getMainWindow None N/A N/A N/A self _mainWindow window N/A _fireWindowAttachEvent N/A N/A self window N/A N/A N/A Send information to all listeners about new Windows associated with
        this application.
         N/A event N/A WindowAttachEvent window N/A l N/A self _windowAttachListeners N/A N/A N/A N/A l windowAttached event N/A N/A callback args N/A self _windowAttachCallbacks N/A N/A N/A callback event args N/A removeWindow N/A N/A self window N/A N/A N/A Removes the specified window from the application.

        Removing the main window of the Application also sets the main window
        to null. One must another window to be the main window after this with
        L{setMainWindow}.

        Note that removing window from the application does not close the
        browser window - the window is only removed from the server-side.

        @param window:
                   the window to be removed.
         N/A N/A N/A window None N/A window N/A N/A N/A self _windows values N/A N/A N/A N/A self _windows N/A N/A N/A window getName N/A N/A N/A N/A self getMainWindow window N/A N/A N/A N/A self setMainWindow None N/A N/A N/A N/A window getApplication self N/A N/A N/A N/A window setApplication None N/A N/A N/A self _fireWindowDetachEvent window N/A _fireWindowDetachEvent N/A N/A self window N/A N/A N/A event N/A WindowDetachEvent window N/A l N/A self _windowDetachListeners N/A N/A N/A N/A l windowDetached event N/A N/A callback args N/A self _windowDetachCallbacks N/A N/A N/A callback event args N/A getUser N/A N/A self N/A N/A N/A Gets the user of the application.

        Muntjac doesn't define of use user object in any way - it only provides
        this getter and setter methods for convenience. The user is any object
        that has been stored to the application with L{setUser}.

        @return: the user of the application.
         N/A N/A self _user N/A setUser N/A N/A self user N/A N/A N/A Sets the user of the application instance. An application instance
        may have a user associated to it. This can be set in login procedure or
        application initialization.

        A component performing the user login procedure can assign the user
        property of the application and make the user object available to other
        components of the application.

        Muntjac doesn't define of use user object in any way - it only provides
        getter and setter methods for convenience. The user reference stored to
        the application can be read with L{getUser}.

        @param user:
                   the new user.
         N/A prevUser N/A self _user N/A N/A N/A user prevUser N/A N/A user None N/A user prevUser N/A N/A N/A N/A self _user user N/A event N/A UserChangeEvent self user prevUser N/A l N/A self _userChangeListeners N/A N/A N/A N/A l applicationUserChanged event N/A N/A callback args N/A self _userChangeCallbacks N/A N/A N/A callback event args N/A getURL N/A N/A self N/A N/A N/A Gets the URL of the application.

        This is the URL what can be entered to a browser window to start the
        application. Navigating to the application URL shows the main window (
        L{getMainWindow}) of the application. Note that the main window
        can also be shown by navigating to the window url (L{Window.getURL}).

        @return: the application's URL.
         N/A N/A self _applicationUrl N/A close N/A N/A self N/A N/A N/A Ends the Application.

        In effect this will cause the application stop returning any windows
        when asked. When the application is closed, its state is removed from
        the session and the browser window is redirected to the application
        logout url set with L{setLogoutURL}. If the logout url has not
        been set, the browser window is reloaded and the application is
        restarted.
         N/A N/A self _applicationIsRunning False N/A start N/A N/A self applicationUrl applicationProperties context N/A N/A N/A Starts the application on the given URL.

        This method is called by Muntjac framework when a user navigates to the
        application. After this call the application corresponds to the given
        URL and it will return windows when asked for them. There is no need to
        call this method directly.

        Application properties are defined by servlet configuration.

        @param applicationUrl:
                   the URL the application should respond to.
        @param applicationProperties:
                   the Application properties as specified by the servlet
                   configuration.
        @param context:
                   the context application will be running in.
         N/A N/A self _applicationUrl applicationUrl N/A N/A self _properties applicationProperties N/A N/A self _context context N/A N/A N/A self init N/A N/A self _applicationIsRunning True N/A isRunning N/A N/A self N/A N/A N/A Tests if the application is running or if it has been finished.

        Application starts running when its L{start} method has been
        called and stops when the L{close} is called.

        @return: C{True} if the application is running, C{False} if not.
         N/A N/A self _applicationIsRunning N/A getWindows N/A N/A self N/A N/A N/A Gets the set of windows contained by the application.

        Note that the returned set of windows can not be modified.

        @return: the collection of windows.
         N/A N/A N/A N/A self _windows values N/A init N/A N/A self N/A N/A N/A Main initializer of the application. The C{init} method is
        called by the framework when the application is started, and it should
        perform whatever initialization operations the application needs, such
        as creating windows and adding components to them.
         N/A NotImplementedError N/A getTheme N/A N/A self N/A N/A N/A Gets the application's theme. The application's theme is the default
        theme used by all the windows in it that do not explicitly specify a
        theme. If the application theme is not explicitly set, the C{None} is
        returned.

        @return: the name of the application's theme.
         N/A N/A self theme N/A setTheme N/A N/A self theme N/A N/A N/A Sets the application's theme.

        Note that this theme can be overridden in the the application level
        windows with L{Window.setTheme}. Setting theme
        to be C{None} selects the default theme. For the available
        theme names, see the contents of the VAADIN/themes directory.

        @param theme:
                   the new theme for this application.
         N/A toBeUpdated N/A list N/A oldAppTheme N/A N/A self getTheme N/A w N/A N/A self getWindows N/A N/A windowTheme N/A N/A w getTheme N/A N/A N/A windowTheme None N/A N/A N/A windowTheme theme N/A windowTheme oldAppTheme N/A N/A N/A N/A toBeUpdated append w N/A N/A self theme theme N/A w toBeUpdated N/A N/A N/A N/A w requestRepaint N/A getMainWindow N/A N/A self N/A N/A N/A Gets the mainWindow of the application.

        The main window is the window attached to the application URL
        (L{getURL}) and thus which is show by default to the user.

        Note that each application must have at least one main window.

        @return: the main window.
         N/A N/A self _mainWindow N/A setMainWindow N/A N/A self mainWindow N/A N/A N/A Sets the mainWindow. If the main window is not explicitly set, the
        main window defaults to first created window. Setting window as a main
        window of this application also adds the window to this application.

        @param mainWindow:
                   the mainWindow to set.
         N/A N/A N/A self addWindow mainWindow N/A N/A self _mainWindow mainWindow N/A getPropertyNames N/A N/A self N/A N/A N/A Returns an enumeration of all the names in this application.

        See L{start} how properties are defined.

        @return: an enumeration of all the keys in this property list,
                 including the keys in the default property list.
         N/A N/A N/A N/A self _properties keys N/A getProperty N/A N/A self name N/A N/A N/A Searches for the property with the specified name in this
        application. This method returns C{None} if the property is not found.

        See L{start} how properties are defined.

        @param name:
                   the name of the property.
        @return: the value in this property list with the specified key value.
         N/A N/A N/A self _properties N/A name N/A addResource N/A N/A self resource N/A N/A N/A Adds new resource to the application. The resource can be accessed
        by the user of the application.

        @param resource:
                   the resource to add.
         N/A N/A resource N/A self _resourceKeyMap N/A N/A N/A N/A self _lastResourceKeyNumber 1 N/A key N/A str N/A self _lastResourceKeyNumber N/A N/A N/A self _resourceKeyMap N/A resource key N/A N/A N/A self _keyResourceMap N/A key resource N/A removeResource N/A N/A self resource N/A N/A N/A Removes the resource from the application.

        @param resource:
                   the resource to remove.
         N/A key N/A N/A N/A self _resourceKeyMap get resource N/A N/A key None N/A N/A N/A N/A self _resourceKeyMap N/A resource N/A N/A key N/A self _keyResourceMap N/A N/A N/A N/A self _keyResourceMap N/A key N/A getRelativeLocation N/A N/A self resource N/A N/A N/A Gets the relative uri of the resource. This method is intended to be
        called only be the terminal implementation.

        This method can only be called from within the processing of a UIDL
        request, not from a background thread.

        @param resource:
                   the resource to get relative location.
        @return: the relative uri of the resource or null if called in a
                 background thread

        @deprecated: this method is intended to be used by the terminal only.
                     It may be removed or moved in the future.
         N/A N/A warn this method is intended to be used by the terminal only. It may be removed or moved in the future. DeprecationWarning N/A key N/A N/A N/A self _resourceKeyMap get resource N/A N/A key None N/A N/A None N/A N/A N/A N/A self _context generateApplicationResourceURL resource key N/A handleURI N/A N/A self context relativeUri N/A N/A N/A Application URI handling hub.

        This method gets called by terminal. It has lots of duties like to pass
        uri handler to proper uri handlers registered to windows etc.

        In most situations developers should NOT OVERRIDE this method. Instead
        developers should implement and register uri handlers to windows.

        @deprecated: this method is called be the terminal implementation only
                     and might be removed or moved in the future. Instead of
                     overriding this method, add your L{IUriHandler} to a top
                     level L{Window} (eg.
                     getMainWindow().addUriHanler(handler) instead.
         N/A N/A warn this method is called be the terminal implementation only and might be removed or moved in the future. Instead of overriding this method, add your L{IUriHandler} to a top level L{Window} (eg. getMainWindow().addUriHanler(handler) instead. DeprecationWarning N/A N/A N/A N/A self _context isApplicationResourceURL context relativeUri N/A N/A key N/A N/A N/A self _context getURLKey context relativeUri N/A resource N/A N/A N/A self _keyResourceMap get key N/A N/A resource None N/A N/A stream N/A N/A resource getStream N/A N/A stream None N/A N/A N/A N/A stream setCacheTime N/A N/A resource getCacheTime N/A stream N/A N/A None N/A N/A None N/A N/A None N/A getLocale N/A N/A self N/A N/A N/A Gets the default locale for this application.

        By default this is the preferred locale of the user using the
        application. In most cases it is read from the browser defaults.

        @return: the locale of this application.
         N/A N/A N/A self _locale None N/A N/A N/A self _locale N/A N/A defaultLocale N/A setLocale N/A N/A self locale N/A N/A N/A Sets the default locale for this application.

        By default this is the preferred locale of the user using the
        application. In most cases it is read from the browser defaults.

        @param locale:
                   the Locale object.
         N/A N/A self _locale locale N/A addListener N/A N/A self listener iface N/A None N/A N/A Adds the user change/window attach/window detach listener.

        The user change listener allows one to get notification each time
        L{setUser} is called.  The window attach listener is used to get
        notifications each time a window is attached to the application
        with L{addWindow}.  The window detach listener is used to get
        notifications each time a window is remove from the application
        with L{removeWindow}.
         N/A N/A N/A isinstance listener IUserChangeListener N/A N/A iface None N/A issubclass iface IUserChangeListener N/A N/A N/A N/A N/A self _userChangeListeners append listener N/A N/A N/A isinstance listener IWindowAttachListener N/A N/A iface None N/A issubclass iface IWindowAttachListener N/A N/A N/A N/A N/A self _windowAttachListeners append listener N/A N/A N/A isinstance listener IWindowDetachListener N/A N/A iface None N/A issubclass iface IWindowDetachListener N/A N/A N/A N/A N/A self _windowDetachListeners append listener N/A N/A N/A N/A super Application self addListener listener iface N/A addCallback N/A N/A self callback eventType N/A None args N/A N/A N/A eventType None N/A N/A eventType N/A callback _eventType N/A N/A issubclass eventType UserChangeEvent N/A N/A N/A N/A self _userChangeCallbacks N/A callback args N/A N/A N/A issubclass eventType WindowAttachEvent N/A N/A N/A N/A self _windowAttachCallbacks N/A callback args N/A N/A N/A issubclass eventType WindowDetachEvent N/A N/A N/A N/A self _windowDetachCallbacks N/A callback args N/A N/A N/A N/A N/A super Application self addCallback callback eventType args N/A removeListener N/A N/A self listener iface N/A None N/A N/A Removes the user change/window attach/window detach listener.

        @param listener:
                   the listener to remove
         N/A N/A N/A isinstance listener IUserChangeListener N/A N/A iface None N/A iface IUserChangeListener N/A N/A N/A listener N/A self _userChangeListeners N/A N/A N/A N/A N/A self _userChangeListeners remove listener N/A N/A N/A isinstance listener IWindowAttachListener N/A N/A iface None N/A issubclass iface IWindowAttachListener N/A N/A N/A listener N/A self _windowAttachListeners N/A N/A N/A N/A N/A self _windowAttachListeners remove listener N/A N/A N/A isinstance listener IWindowDetachListener N/A N/A iface None N/A issubclass iface IWindowDetachListener N/A N/A N/A listener N/A self _windowDetachListeners N/A N/A N/A N/A N/A self _windowDetachListeners remove listener N/A N/A N/A N/A super Application self addListener listener iface N/A removeCallback N/A N/A self callback eventType N/A None N/A N/A N/A eventType None N/A N/A eventType N/A callback _eventType N/A N/A issubclass eventType UserChangeEvent N/A N/A N/A callback N/A self _userChangeCallbacks N/A N/A N/A N/A self _userChangeCallbacks N/A callback N/A N/A N/A issubclass eventType WindowAttachEvent N/A N/A N/A callback N/A self _windowAttachCallbacks N/A N/A N/A N/A self _windowAttachCallbacks N/A callback N/A N/A N/A issubclass eventType WindowDetachEvent N/A N/A N/A callback N/A self _windowDetachCallbacks N/A N/A N/A N/A self _windowDetachCallbacks N/A callback N/A N/A N/A N/A N/A super Application self removeCallback callback eventType N/A getLogoutURL N/A N/A self N/A N/A N/A Returns the URL user is redirected to on application close. If the
        URL is C{None}, the application is closed normally as defined by the
        application running environment.

        Desktop application just closes the application window and
        web-application redirects the browser to application main URL.

        @return: the URL.
         N/A N/A self _logoutURL N/A setLogoutURL N/A N/A self logoutURL N/A N/A N/A Sets the URL user is redirected to on application close. If the URL
        is C{None}, the application is closed normally as defined by the
        application running environment: Desktop application just closes the
        application window and web-application redirects the browser to
        application main URL.

        @param logoutURL:
                   the logoutURL to set.
         N/A N/A self _logoutURL logoutURL N/A getSystemMessages N/A N/A cls N/A N/A N/A Gets the SystemMessages for this application. SystemMessages are
        used to notify the user of various critical situations that can occur,
        such as session expiration, client/server out of sync, and internal
        server error.

        You can customize the messages by "overriding" this method and
        returning L{CustomizedSystemMessages}. To "override" this method,
        re-implement this method in your application (the class that extends
        L{Application}). Even though overriding class methods is not
        possible in Python, Muntjac selects to call the static method from the
        subclass instead of the original L{getSystemMessages} if such a
        method exists.

        @return: the SystemMessages for this application
         N/A N/A cls _DEFAULT_SYSTEM_MESSAGES N/A classmethod terminalError N/A N/A self event N/A N/A N/A Invoked by the terminal on any exception that occurs in application
        and is thrown by the C{setVariable} to the terminal. The default
        implementation sets the exceptions as C{ComponentErrors} to the
        component that initiated the exception and prints stack trace to standard
        error stream.

        You can safely override this method in your application in order to
        direct the errors to some other destination (for example log).

        @param event:
                   the change event.
        @see: L{IErrorListener.terminalError}
         N/A t N/A N/A event getThrowable N/A N/A isinstance t IOError N/A N/A N/A N/A logger exception SocketException in CommunicationManager. Most likely client (browser) closed socket. N/A N/A owner None N/A N/A isinstance event VariableOwnerErrorEvent N/A N/A owner N/A N/A event getVariableOwner N/A N/A N/A isinstance event URIHandlerErrorEvent N/A N/A owner N/A N/A event getURIHandler N/A N/A N/A isinstance event ParameterHandlerErrorEvent N/A N/A owner N/A N/A event getParameterHandler N/A N/A N/A isinstance event ChangeVariablesErrorEvent N/A N/A owner N/A N/A event getComponent N/A N/A isinstance owner AbstractComponent N/A N/A N/A isinstance t IErrorMessage N/A N/A N/A N/A owner setComponentError t N/A N/A N/A N/A owner setComponentError N/A SysError t N/A N/A N/A logger exception N/A ITerminal error:  N/A str t N/A N/A exc_type _ exc_traceback N/A N/A sys exc_info N/A N/A N/A traceback print_exception exc_type t exc_traceback file N/A sys stdout N/A getContext N/A N/A self N/A N/A N/A Gets the application context.

        The application context is the environment where the application is
        running in. The actual implementation class of may contains quite a lot
        more functionality than defined in the L{ApplicationContext}
        interface.

        By default, when you are deploying your application to a servlet
        container, the implementation class is L{WebApplicationContext} -
        you can safely cast to this class and use the methods from there.

        @return: the application context.
         N/A N/A self _context N/A getVersion N/A N/A self N/A N/A N/A Override this method to return correct version number of your
        Application. Version information is delivered for example to Testing
        Tools test results. By default this returns a string "NONVERSIONED".

        @return: version string
         N/A NONVERSIONED N/A getErrorHandler N/A N/A self N/A N/A N/A Gets the application error handler.

        The default error handler is the application itself.

        @return: Application error handler
         N/A N/A self _errorHandler N/A setErrorHandler N/A N/A self errorHandler N/A N/A N/A Sets the application error handler.

        The default error handler is the application itself. By overriding
        this, you can redirect the error messages to your selected target
        (log for example).
         N/A N/A self _errorHandler errorHandler N/A N/A UserChangeEvent N/A EventObject N/A N/A An event that characterizes a change in the current selection.

    Application user change event sent when the setUser is called to change
    the current user of the application.

    @version: @VERSION@
     __init__ N/A N/A self source newUser prevUser N/A N/A N/A Constructor for user change event.

        @param source:
                   the application source.
        @param newUser:
                   the new user.
        @param prevUser:
                   the previous user.
         N/A N/A N/A N/A super UserChangeEvent self __init__ source N/A N/A self _newUser newUser N/A N/A self _prevUser prevUser N/A getNewUser N/A N/A self N/A N/A N/A Gets the new user of the application.

        @return: the new user.
         N/A N/A self _newUser N/A getPreviousUser N/A N/A self N/A N/A N/A Gets the previous user of the application.

        @return: the previous Muntjac user, if user has not changed ever on
                 application it returns C{None}
         N/A N/A self _prevUser N/A getApplication N/A N/A self N/A N/A N/A Gets the application where the user change occurred.

        @return: the Application.
         N/A N/A N/A self getSource N/A N/A IUserChangeListener N/A IEventListener N/A N/A The C{UserChangeListener} interface for listening application
    user changes.

    @version: @VERSION@
     applicationUserChanged N/A N/A self event N/A N/A N/A The C{applicationUserChanged} method Invoked when the
        application user has changed.

        @param event:
                   the change event.
         N/A NotImplementedError N/A N/A WindowDetachEvent N/A EventObject N/A N/A Window detach event.

    This event is sent each time a window is removed from the application
    with L{Application.removeWindow}.
     __init__ N/A N/A self window N/A N/A N/A Creates a event.

        @param window:
                   the detached window.
         N/A N/A N/A N/A super WindowDetachEvent self __init__ self N/A N/A self _window window N/A getWindow N/A N/A self N/A N/A N/A Gets the detached window.

        @return: the detached window.
         N/A N/A self _window N/A getApplication N/A N/A self N/A N/A N/A Gets the application from which the window was detached.

        @return: the application.
         N/A N/A N/A self getSource N/A N/A WindowAttachEvent N/A EventObject N/A N/A Window attach event.

    This event is sent each time a window is attached to the application with
    L{Application.addWindow}.
     __init__ N/A N/A self window N/A N/A N/A Creates a event.

        @param window:
                   the attached window.
         N/A N/A N/A N/A super WindowAttachEvent self __init__ self N/A N/A self _window window N/A getWindow N/A N/A self N/A N/A N/A Gets the attached window.

        @return: the attached window.
         N/A N/A self _window N/A getApplication N/A N/A self N/A N/A N/A Gets the application to which the window was attached.

        @return: the application.
         N/A N/A N/A self getSource N/A N/A IWindowAttachListener N/A object N/A N/A Window attach listener interface. windowAttached N/A N/A self event N/A N/A N/A Window attached

        @param event:
                   the window attach event.
         N/A NotImplementedError N/A N/A IWindowDetachListener N/A object N/A N/A Window detach listener interface. windowDetached N/A N/A self event N/A N/A N/A Window detached.

        @param event:
                   the window detach event.
         N/A NotImplementedError N/A N/A ApplicationError N/A IErrorEvent N/A N/A Application error is an error message defined on the application level.

    When an error occurs on the application level, this error message type
    should be used. This indicates that the problem is caused by the
    application - not by the user.
     __init__ N/A N/A self throwable N/A N/A N/A N/A self _throwable throwable N/A getThrowable N/A N/A self N/A N/A N/A N/A self _throwable N/A N/A SingletonApplication N/A Application N/A N/A _singleton None __init__ N/A N/A self N/A N/A N/A N/A N/A N/A super SingletonApplication self __init__ N/A N/A N/A self setMainWindow N/A Window N/A get N/A N/A cls N/A N/A N/A N/A N/A cls _singleton None N/A N/A N/A cls _singleton N/A SingletonApplication N/A N/A cls _singleton N/A classmethod init N/A N/A self N/A N/A N/A N/A N/A