to.etc.domui.state
Class UIGoto

java.lang.Object
  extended by to.etc.domui.state.UIGoto

public final class UIGoto
extends java.lang.Object

Moving to other pages.

Author:
Frits Jalvingh Created on Jan 9, 2009

Field Summary
static java.lang.String SINGLESHOT_MESSAGE
           
 
Method Summary
static void back()
          Move to the previously-shelved page.
static void clearPageAndReload(Page pg, java.lang.Class<? extends UrlPage> target, PageParameters pp, java.lang.String msg)
          Destroy the current page and replace it with the new page specified.
static void clearPageAndReload(Page pg, java.lang.String msg)
          Destroy the current page and replace it with the new page specified.
static void clearPageAndReload(Page pg, java.lang.String msg, PageParameters pp)
          Destroy the current page and replace it with the new page specified with provided page parameters.
static void clearPageAndReload(Page pg, UIMessage msg)
          Destroy the current page and replace it with the new page specified.
static void clearPageAndReload(Page pg, UIMessage msg, PageParameters pp)
          Destroy the current page and replace it with the new page specified.
static void moveNew(java.lang.Class<? extends UrlPage> clz)
          Clear the entire shelve, then goto a new page.
static void moveNew(java.lang.Class<? extends UrlPage> clz, java.lang.Object... param)
          Clear the entire shelf, then goto a new page.
static void moveNew(java.lang.Class<? extends UrlPage> clz, PageParameters pp)
          Clear the entire shelf, then goto a new page.
static void moveSub(java.lang.Class<? extends UrlPage> clz)
          Push (shelve) the current page, then move to a new page.
static void moveSub(java.lang.Class<? extends UrlPage> clz, ConversationContext cc, PageParameters pp)
          Push (shelve) the current page, then move to a new page.
static void moveSub(java.lang.Class<? extends UrlPage> clz, java.lang.Object... param)
          Push (shelve) the current page, then move to a new page.
static void moveSub(java.lang.Class<? extends UrlPage> clz, PageParameters pp)
          Push (shelve) the current page, then move to a new page.
static void redirect(java.lang.String targeturl)
           
static void reload()
          Destroy the current page and reload the exact same page with the same parameters as a new one.
static void replace(java.lang.Class<? extends UrlPage> clz)
          Replace the "current" page with a new page.
static void replace(java.lang.Class<? extends UrlPage> clz, PageParameters pp)
          Replace the "current" page with a new page.
static void replace(Page pg, java.lang.Class<? extends UrlPage> clz, PageParameters pp, UIMessage msg)
          Replace the "current" page with a new page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SINGLESHOT_MESSAGE

public static final java.lang.String SINGLESHOT_MESSAGE
See Also:
Constant Field Values
Method Detail

reload

public static void reload()
Destroy the current page and reload the exact same page with the same parameters as a new one. This has the effect of fully refreshing all data, and reinitializing the page at it's initial state.


moveSub

public static void moveSub(java.lang.Class<? extends UrlPage> clz)
Push (shelve) the current page, then move to a new page. The page is parameterless, and is started in a NEW ConversationContext.

Parameters:
clz -

moveSub

public static void moveSub(java.lang.Class<? extends UrlPage> clz,
                           PageParameters pp)
Push (shelve) the current page, then move to a new page. The page is started in a NEW ConversationContext.

Parameters:
clz -
pp -

moveSub

public static void moveSub(java.lang.Class<? extends UrlPage> clz,
                           java.lang.Object... param)
Push (shelve) the current page, then move to a new page. The page is started in a NEW ConversationContext.

Parameters:
clz -
param - A list of parameters, in PageParameters.addParameters(Object...) format.

moveSub

public static void moveSub(java.lang.Class<? extends UrlPage> clz,
                           ConversationContext cc,
                           PageParameters pp)
Push (shelve) the current page, then move to a new page. The page JOINS the conversation context passed; if the page does not accept that conversation an exception is thrown.

Parameters:
clz -
cc -
pp -

moveNew

public static void moveNew(java.lang.Class<? extends UrlPage> clz,
                           PageParameters pp)
Clear the entire shelf, then goto a new page. The page uses a NEW ConversationContext.

Parameters:
clz -
pp -

moveNew

public static void moveNew(java.lang.Class<? extends UrlPage> clz,
                           java.lang.Object... param)
Clear the entire shelf, then goto a new page. The page uses a NEW ConversationContext.

Parameters:
clz -
param - A list of parameters, in PageParameters.addParameters(Object...) format.

moveNew

public static void moveNew(java.lang.Class<? extends UrlPage> clz)
Clear the entire shelve, then goto a new page. The page uses a NEW ConversationContext.

Parameters:
clz -

replace

public static void replace(java.lang.Class<? extends UrlPage> clz)
Replace the "current" page with a new page. The current page is destroyed; the shelve stack is not changed.

Parameters:
clz -

replace

public static void replace(java.lang.Class<? extends UrlPage> clz,
                           PageParameters pp)
Replace the "current" page with a new page. The current page is destroyed; the shelve stack is not changed.

Parameters:
clz -
pp -

replace

public static final void replace(Page pg,
                                 java.lang.Class<? extends UrlPage> clz,
                                 PageParameters pp,
                                 UIMessage msg)
Replace the "current" page with a new page. The current page is destroyed; the shelve stack is not changed. On the new page show the specified message as an UI message.

Parameters:
pg -
clz -
pp -
msg -

redirect

public static void redirect(java.lang.String targeturl)

back

public static void back()
Move to the previously-shelved page. That page is UNSHELVED and activated. If the shelve is EMPTY when this call is made the application moves back to the HOME page.


clearPageAndReload

public static final void clearPageAndReload(Page pg,
                                            java.lang.String msg)
Destroy the current page and replace it with the new page specified. On the new page show the specified message as an ERROR message.

Parameters:
pg -
msg -

clearPageAndReload

public static final void clearPageAndReload(Page pg,
                                            java.lang.String msg,
                                            PageParameters pp)
Destroy the current page and replace it with the new page specified with provided page parameters. On the new page show the specified message as an ERROR message.

Parameters:
pg -
msg -
pp -

clearPageAndReload

public static final void clearPageAndReload(Page pg,
                                            java.lang.Class<? extends UrlPage> target,
                                            PageParameters pp,
                                            java.lang.String msg)
Destroy the current page and replace it with the new page specified. On the new page show the specified message as an ERROR message.

Parameters:
pg -
target -
pp -
msg -

clearPageAndReload

public static final void clearPageAndReload(Page pg,
                                            UIMessage msg)
Destroy the current page and replace it with the new page specified. On the new page show the specified message.

Parameters:
pg -
msg -

clearPageAndReload

public static final void clearPageAndReload(Page pg,
                                            UIMessage msg,
                                            PageParameters pp)
Destroy the current page and replace it with the new page specified. On the new page show the specified message.

Parameters:
pg -
msg -
pp -