public class Screen extends Object
| Modifier and Type | Field and Description |
|---|---|
protected FastList<com.google.gwt.dom.client.Element> |
blockingDivs |
protected String |
id |
protected org.cruxframework.crux.core.client.screen.RootViewContainer |
rootViewContainer |
protected URLRewriter |
urlRewriter |
| Modifier and Type | Method and Description |
|---|---|
static void |
add(String id,
com.google.gwt.user.client.ui.IsWidget widget) |
static void |
add(String id,
com.google.gwt.user.client.ui.Widget widget) |
static com.google.gwt.event.shared.HandlerRegistration |
addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.Window> handler) |
static com.google.gwt.event.shared.HandlerRegistration |
addClosingHandler(com.google.gwt.user.client.Window.ClosingHandler handler) |
static com.google.gwt.event.shared.HandlerRegistration |
addHistoryChangedHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<String> handler) |
static com.google.gwt.event.shared.HandlerRegistration |
addOrientationChangeHandler(OrientationChangeHandler handler) |
static com.google.gwt.event.shared.HandlerRegistration |
addResizeHandler(com.google.gwt.event.logical.shared.ResizeHandler handler) |
static void |
addToHistory(String token) |
static void |
addToHistory(String token,
boolean issueEvent) |
protected void |
addTokenToHistory(String token) |
protected void |
addTokenToHistory(String token,
boolean issueEvent) |
protected void |
addWidget(String id,
com.google.gwt.user.client.ui.IsWidget widget) |
protected void |
addWidget(String id,
com.google.gwt.user.client.ui.Widget widget) |
protected com.google.gwt.event.shared.HandlerRegistration |
addWindowCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.Window> handler) |
protected com.google.gwt.event.shared.HandlerRegistration |
addWindowClosingHandler(com.google.gwt.user.client.Window.ClosingHandler handler) |
protected com.google.gwt.event.shared.HandlerRegistration |
addWindowHistoryChangedHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<String> handler) |
protected com.google.gwt.event.shared.HandlerRegistration |
addWindowOrientationChangeHandler(OrientationChangeHandler handler) |
protected com.google.gwt.event.shared.HandlerRegistration |
addWindowResizeHandler(com.google.gwt.event.logical.shared.ResizeHandler handler) |
static void |
blockToUser() |
static void |
blockToUser(String blockingDivStyleName) |
static void |
configureViewport(String content)
Configure a viewport using given content
|
static void |
configureViewport(String smallDisplayContent,
String largeDisplayContent)
Configure a viewport using given contents for small and large displays
|
static boolean |
contains(String id) |
protected boolean |
containsWidget(String id) |
static DataSource<?> |
createDataSource(String dataSource) |
protected void |
createRootView(String id) |
static void |
ensureDebugId(com.google.gwt.user.client.ui.Widget widget,
String id)
If the given widget does not have a non-empty ID attribute, sets the given id into it.
|
static Screen |
get()
Gets the current screen
|
static com.google.gwt.user.client.ui.Widget |
get(String id)
Gets a widget on the current screen
|
static <T extends com.google.gwt.user.client.ui.IsWidget> |
get(String id,
Class<T> clazz) |
static DeviceAdaptive.Device |
getCurrentDevice() |
static String |
getCurrentHistoryItem() |
protected String |
getCurrentHistoryToken() |
static String |
getId() |
protected String |
getIdentifier() |
static String |
getLocale() |
RegisteredControllers |
getRegisteredControllers() |
static View |
getRootView() |
protected View |
getView() |
protected com.google.gwt.user.client.ui.Widget |
getWidget(String id)
Retrieve a widget contained on this screen.
|
protected <T extends com.google.gwt.user.client.ui.IsWidget> |
getWidget(String id,
Class<T> clazz)
Generic version of
getWidget method |
protected void |
hideBlockDiv()
Hides the DIV that is blocking the Screen contents
|
static boolean |
isAndroid() |
static boolean |
isIos() |
static boolean |
isWindowsPhone() |
static FastList<String> |
listWidgetIds() |
static FastList<com.google.gwt.user.client.ui.Widget> |
listWidgets() |
static void |
reload() |
static void |
remove(String id)
Remove a widget on the current screen
|
static void |
remove(String id,
boolean removeFromDOM)
Remove a widget on the current screen
|
protected void |
removeWidget(String id) |
protected void |
removeWidget(String id,
boolean removeFromDOM) |
static String |
rewriteUrl(String url) |
protected String |
rewriteURL(String url) |
static void |
setRefreshEnabled(boolean enabled)
Enable or disable the browser refresh support.
|
protected void |
showBlockDiv(String blockingDivStyleName)
Creates and shows a DIV over the screen contents
|
static void |
unblockToUser() |
protected FastList<String> |
widgetsIdList() |
protected FastList<com.google.gwt.user.client.ui.Widget> |
widgetsList() |
protected org.cruxframework.crux.core.client.screen.RootViewContainer rootViewContainer
protected FastList<com.google.gwt.dom.client.Element> blockingDivs
protected String id
protected URLRewriter urlRewriter
protected Screen(String id)
protected void createRootView(String id)
id - protected void addTokenToHistory(String token)
token - protected void addTokenToHistory(String token, boolean issueEvent)
token - issueEvent - protected void addWidget(String id, com.google.gwt.user.client.ui.Widget widget)
id - widget - protected View getView()
protected void addWidget(String id, com.google.gwt.user.client.ui.IsWidget widget)
id - widget - protected com.google.gwt.event.shared.HandlerRegistration addWindowCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.Window> handler)
handler - protected com.google.gwt.event.shared.HandlerRegistration addWindowClosingHandler(com.google.gwt.user.client.Window.ClosingHandler handler)
handler - protected com.google.gwt.event.shared.HandlerRegistration addWindowHistoryChangedHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<String> handler)
handler - protected com.google.gwt.event.shared.HandlerRegistration addWindowResizeHandler(com.google.gwt.event.logical.shared.ResizeHandler handler)
handler - protected com.google.gwt.event.shared.HandlerRegistration addWindowOrientationChangeHandler(OrientationChangeHandler handler)
handler - protected String getCurrentHistoryToken()
protected String getIdentifier()
protected com.google.gwt.user.client.ui.Widget getWidget(String id)
id - protected <T extends com.google.gwt.user.client.ui.IsWidget> T getWidget(String id, Class<T> clazz)
getWidget methodT - id - clazz - protected void hideBlockDiv()
protected void removeWidget(String id)
protected void removeWidget(String id, boolean removeFromDOM)
protected boolean containsWidget(String id)
protected void showBlockDiv(String blockingDivStyleName)
blockingDivStyleName - protected FastList<com.google.gwt.user.client.ui.Widget> widgetsList()
public static View getRootView()
public static void add(String id, com.google.gwt.user.client.ui.Widget widget)
id - widget - public static void add(String id, com.google.gwt.user.client.ui.IsWidget widget)
id - widget - public static com.google.gwt.event.shared.HandlerRegistration addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.Window> handler)
handler - public static com.google.gwt.event.shared.HandlerRegistration addClosingHandler(com.google.gwt.user.client.Window.ClosingHandler handler)
handler - public static com.google.gwt.event.shared.HandlerRegistration addHistoryChangedHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<String> handler)
handler - public static com.google.gwt.event.shared.HandlerRegistration addResizeHandler(com.google.gwt.event.logical.shared.ResizeHandler handler)
handler - public static com.google.gwt.event.shared.HandlerRegistration addOrientationChangeHandler(OrientationChangeHandler handler)
handler - public static void addToHistory(String token)
token - public static void addToHistory(String token, boolean issueEvent)
token - issueEvent - public static void blockToUser()
public static void blockToUser(String blockingDivStyleName)
public static boolean contains(String id)
id - public static DataSource<?> createDataSource(String dataSource)
dataSource - public RegisteredControllers getRegisteredControllers()
public static void ensureDebugId(com.google.gwt.user.client.ui.Widget widget,
String id)
widget - id - public static Screen get()
public static com.google.gwt.user.client.ui.Widget get(String id)
id - public static <T extends com.google.gwt.user.client.ui.IsWidget> T get(String id, Class<T> clazz)
T - id - clazz - public static String getCurrentHistoryItem()
public static DeviceAdaptive.Device getCurrentDevice()
public static String getId()
public static String getLocale()
public static void configureViewport(String smallDisplayContent, String largeDisplayContent)
smallDisplayContent - largeDisplayContent - public static void configureViewport(String content)
content - public static FastList<com.google.gwt.user.client.ui.Widget> listWidgets()
public static void remove(String id)
id - public static void remove(String id, boolean removeFromDOM)
id - removeFromDOM - public static void unblockToUser()
public static boolean isWindowsPhone()
public static boolean isIos()
public static boolean isAndroid()
public static void reload()
public static void setRefreshEnabled(boolean enabled)
enabled - Copyright © 2015. All rights reserved.