Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.gwt.runtime.client.ui.editor
Class EditorSite

java.lang.Object
  extended by org.nuxeo.ecm.gwt.runtime.client.ui.view.ViewSite
      extended by org.nuxeo.ecm.gwt.runtime.client.ui.editor.EditorSite
All Implemented Interfaces:
Site

public class EditorSite
extends ViewSite

Author:
Bogdan Stefanescu

Constructor Summary
EditorSite(Editor editor)
           
EditorSite(java.lang.String name, Editor editor)
           
 
Method Summary
 Editor getEditor()
           
 void open(Container container, java.lang.Object input)
          Opens an input in that site.
 
Methods inherited from class org.nuxeo.ecm.gwt.runtime.client.ui.view.ViewSite
activate, close, deactivate, disable, enable, getHandle, getIcon, getName, getTitle, getView, isActive, isEnabled, updateIcon, updateTitle, updateWidget
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditorSite

public EditorSite(Editor editor)

EditorSite

public EditorSite(java.lang.String name,
                  Editor editor)
Method Detail

open

public void open(Container container,
                 java.lang.Object input)
Description copied from interface: Site
Opens an input in that site.

The connection to the container will be created if it is not yet existing. In that case the container will create a handle for that site.

Then the view is asked if it is accepting the input. If not the container will be asked to hide this site.

If the view is accepting the input it will be installed in the container if it is not installed.

Then the view will have its input refreshed which may trigger UI updates like view content, title or icon.

The site is remembering its container so that methods like Site.enable() or Site.activate() can be called later.

Specified by:
open in interface Site
Overrides:
open in class ViewSite

getEditor

public Editor getEditor()

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.