Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.gwt.ui.client
Class SmartClient

java.lang.Object
  extended by org.nuxeo.ecm.gwt.ui.client.SmartClient
All Implemented Interfaces:
com.google.gwt.core.client.EntryPoint

public class SmartClient
extends java.lang.Object
implements com.google.gwt.core.client.EntryPoint

This class is there to fix any problem found in smartgwt like unexposed JS API or real bugs. Ideally this class should not exist.

See also NuxeoDataSource.

Author:
Bogdan Stefanescu

Constructor Summary
SmartClient()
           
 
Method Summary
static void addSectionItem(com.smartgwt.client.widgets.layout.SectionStack stack, java.lang.String id, com.smartgwt.client.widgets.Canvas widget)
           
static com.smartgwt.client.widgets.tree.TreeNode findNodeById(com.smartgwt.client.widgets.tree.TreeGrid tree, java.lang.String id)
          Tree is not yet exposing findNodeById method.
static com.smartgwt.client.widgets.tree.TreeNode findNodeById(com.smartgwt.client.widgets.tree.Tree tree, java.lang.String id)
           
static void fixCursorTrackerPath()
          The cursor tracker path is not correctly initialized by ISC - because of the JS load order which is first loading RPCManager class and then the loadSkin JS.
static int getSectionsCount(com.smartgwt.client.widgets.layout.SectionStack stack)
           
static java.lang.String getTabId(com.smartgwt.client.widgets.tab.events.TabCloseClickEvent event)
          Hack to get the tab id - event.getTab() is not working - throws a ClassCastExcpetion
static void install()
           
 void onModuleLoad()
          This is the entry point method.
static void setSectionIcon(com.smartgwt.client.widgets.layout.SectionStack stack, java.lang.String id, java.lang.String icon)
           
static void setSectionTitle(com.smartgwt.client.widgets.layout.SectionStack stack, java.lang.String id, java.lang.String title)
           
static void setTabIcon(com.smartgwt.client.widgets.tab.TabSet tabs, java.lang.String tab, java.lang.String icon)
           
static void setTabIcon(com.smartgwt.client.widgets.tab.TabSet tabs, com.smartgwt.client.widgets.tab.Tab tab, java.lang.String icon)
          Hack to set the icon - this method is missing from the API
static void setTabTitle(com.smartgwt.client.widgets.tab.TabSet tabs, com.smartgwt.client.widgets.tab.Tab tab, java.lang.String title)
           
static com.smartgwt.client.widgets.Canvas toCanvas(com.google.gwt.user.client.ui.Widget widget)
           
static void unloadChildren(com.smartgwt.client.widgets.tree.Tree tree, com.google.gwt.core.client.JavaScriptObject node)
           
static void unloadChildren(com.smartgwt.client.widgets.tree.Tree tree, com.smartgwt.client.widgets.tree.TreeNode node)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmartClient

public SmartClient()
Method Detail

onModuleLoad

public void onModuleLoad()
This is the entry point method.

Specified by:
onModuleLoad in interface com.google.gwt.core.client.EntryPoint

toCanvas

public static com.smartgwt.client.widgets.Canvas toCanvas(com.google.gwt.user.client.ui.Widget widget)

install

public static void install()

fixCursorTrackerPath

public static void fixCursorTrackerPath()
The cursor tracker path is not correctly initialized by ISC - because of the JS load order which is first loading RPCManager class and then the loadSkin JS.


findNodeById

public static com.smartgwt.client.widgets.tree.TreeNode findNodeById(com.smartgwt.client.widgets.tree.TreeGrid tree,
                                                                     java.lang.String id)
Tree is not yet exposing findNodeById method.


findNodeById

public static com.smartgwt.client.widgets.tree.TreeNode findNodeById(com.smartgwt.client.widgets.tree.Tree tree,
                                                                     java.lang.String id)

unloadChildren

public static void unloadChildren(com.smartgwt.client.widgets.tree.Tree tree,
                                  com.smartgwt.client.widgets.tree.TreeNode node)

unloadChildren

public static void unloadChildren(com.smartgwt.client.widgets.tree.Tree tree,
                                  com.google.gwt.core.client.JavaScriptObject node)

getTabId

public static java.lang.String getTabId(com.smartgwt.client.widgets.tab.events.TabCloseClickEvent event)
Hack to get the tab id - event.getTab() is not working - throws a ClassCastExcpetion

Parameters:
event -
Returns:

setTabIcon

public static void setTabIcon(com.smartgwt.client.widgets.tab.TabSet tabs,
                              com.smartgwt.client.widgets.tab.Tab tab,
                              java.lang.String icon)
Hack to set the icon - this method is missing from the API

Parameters:
tabs -
tab -
icon -

setTabIcon

public static void setTabIcon(com.smartgwt.client.widgets.tab.TabSet tabs,
                              java.lang.String tab,
                              java.lang.String icon)

setTabTitle

public static void setTabTitle(com.smartgwt.client.widgets.tab.TabSet tabs,
                               com.smartgwt.client.widgets.tab.Tab tab,
                               java.lang.String title)

setSectionTitle

public static void setSectionTitle(com.smartgwt.client.widgets.layout.SectionStack stack,
                                   java.lang.String id,
                                   java.lang.String title)

setSectionIcon

public static void setSectionIcon(com.smartgwt.client.widgets.layout.SectionStack stack,
                                  java.lang.String id,
                                  java.lang.String icon)

getSectionsCount

public static int getSectionsCount(com.smartgwt.client.widgets.layout.SectionStack stack)

addSectionItem

public static void addSectionItem(com.smartgwt.client.widgets.layout.SectionStack stack,
                                  java.lang.String id,
                                  com.smartgwt.client.widgets.Canvas widget)

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.