|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.ecm.gwt.runtime.client.ui.view.ViewSite
public class ViewSite
| Constructor Summary | |
|---|---|
ViewSite(java.lang.String name,
View view)
|
|
| Method Summary | |
|---|---|
void |
activate()
Activate this site. |
void |
close()
Close this site. |
void |
deactivate()
Deactivate this site. |
void |
disable()
Disable this site. |
void |
enable()
Enable this site. |
java.lang.Object |
getHandle()
The handle is an object created by the underlying widget framework and is used to associate a view site with a real widget. |
java.lang.String |
getIcon()
Gets the icon to be used for that site. |
java.lang.String |
getName()
Gets the site name. |
java.lang.String |
getTitle()
Gets the title to be used for this site. |
View |
getView()
Gets the view attached to that site. |
boolean |
isActive()
Whether or not this view is activated. |
boolean |
isEnabled()
Whether or not this site is enabled. |
void |
open(Container container,
java.lang.Object input)
Opens an input in that site. |
void |
updateIcon()
Ask the site to update its icon based on its view icon. |
void |
updateTitle()
Ask the site to update its title based on its view title. |
void |
updateWidget()
Ask the site to update its widget based on its view widget. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ViewSite(java.lang.String name,
View view)
| Method Detail |
|---|
public View getView()
Site
getView in interface Sitepublic java.lang.String getName()
Site
getName in interface Sitepublic java.lang.Object getHandle()
SiteContainer object that is connected to the view manager.
The type of the handle is specific to each UI implementation
getHandle in interface Sitepublic java.lang.String getTitle()
Site
getTitle in interface Sitepublic java.lang.String getIcon()
Site
getIcon in interface Site
public void open(Container container,
java.lang.Object input)
SiteThe 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.
open in interface Sitepublic void updateIcon()
SiteView.getIcon() operation.
updateIcon in interface Sitepublic void updateTitle()
SiteView.getTitle() operation.
updateTitle in interface Sitepublic void updateWidget()
SiteDrawable.getWidget() operation.
updateWidget in interface Sitepublic void enable()
Site
enable in interface Sitepublic void disable()
Site
disable in interface Sitepublic void activate()
Site
activate in interface Sitepublic void deactivate()
Site
deactivate in interface Sitepublic void close()
Site
close in interface Sitepublic boolean isActive()
Site
isActive in interface Sitepublic boolean isEnabled()
Site
isEnabled in interface Site
|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||