org.cruxframework.crux.core.client.screen.views
Class ViewFactoryUtils

java.lang.Object
  extended by org.cruxframework.crux.core.client.screen.views.ViewFactoryUtils

public class ViewFactoryUtils
extends Object

Do not use this class directly.

Author:
Thiago da Rosa de Bustamante

Field Summary
static String ENCLOSING_PANEL_PREFIX
           
 
Constructor Summary
ViewFactoryUtils()
           
 
Method Summary
static String getEnclosingPanelId(String widgetId, View view)
           
static String getEnclosingPanelPrefix()
           
static String getLazyPanelId(String wrappedWidgetId, LazyPanelWrappingType wrappingType)
          Return the id created to the panel that wraps the given widget id.
static String getWrappedWidgetIdFromLazyPanel(String lazyPanelId)
          Return the id of the widget wrapped by the given lazy panel id.
static boolean isChildrenWidgetLazyWrapper(String wrappedWidgetId)
          Check if the wrappedWidgetId is a valid lazy id generated for a LazyPanelWrappingType.wrapChidren lazy model
static boolean isWholeWidgetLazyWrapper(String wrappedWidgetId)
          Check if the wrappedWidgetId is a valid lazy id generated for a LazyPanelWrappingType.wrapWholeWidget lazy model
static void updateWidgetElementId(String widgetId, com.google.gwt.user.client.ui.IsWidget widget, View view)
           
static void updateWidgetElementId(String widgetId, com.google.gwt.user.client.ui.Widget widget, View view)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENCLOSING_PANEL_PREFIX

public static final String ENCLOSING_PANEL_PREFIX
See Also:
Constant Field Values
Constructor Detail

ViewFactoryUtils

public ViewFactoryUtils()
Method Detail

updateWidgetElementId

public static void updateWidgetElementId(String widgetId,
                                         com.google.gwt.user.client.ui.IsWidget widget,
                                         View view)
Parameters:
widgetId -
widget -
view -

updateWidgetElementId

public static void updateWidgetElementId(String widgetId,
                                         com.google.gwt.user.client.ui.Widget widget,
                                         View view)
Parameters:
widgetId -
widget -
view -

getEnclosingPanelPrefix

public static String getEnclosingPanelPrefix()
Returns:

getEnclosingPanelId

public static String getEnclosingPanelId(String widgetId,
                                         View view)
Returns:

getLazyPanelId

public static String getLazyPanelId(String wrappedWidgetId,
                                    LazyPanelWrappingType wrappingType)
Return the id created to the panel that wraps the given widget id.

Parameters:
wrappedWidgetId -
wrappingType -
Returns:

getWrappedWidgetIdFromLazyPanel

public static String getWrappedWidgetIdFromLazyPanel(String lazyPanelId)
Return the id of the widget wrapped by the given lazy panel id.

Parameters:
lazyPanelId -
Returns:

isChildrenWidgetLazyWrapper

public static boolean isChildrenWidgetLazyWrapper(String wrappedWidgetId)
Check if the wrappedWidgetId is a valid lazy id generated for a LazyPanelWrappingType.wrapChidren lazy model

Parameters:
wrappedWidgetId -
Returns:

isWholeWidgetLazyWrapper

public static boolean isWholeWidgetLazyWrapper(String wrappedWidgetId)
Check if the wrappedWidgetId is a valid lazy id generated for a LazyPanelWrappingType.wrapWholeWidget lazy model

Parameters:
wrappedWidgetId -
Returns:


Copyright © 2014. All rights reserved.