|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Site
public java.lang.String getName()
Site
getName
in interface Site
public java.lang.Object getHandle()
Site
Container
object that is connected to the view manager.
The type of the handle is specific to each UI implementation
getHandle
in interface Site
public java.lang.String getTitle()
Site
getTitle
in interface Site
public java.lang.String getIcon()
Site
getIcon
in interface Site
public void open(Container container, java.lang.Object input)
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.
open
in interface Site
public void updateIcon()
Site
View.getIcon()
operation.
updateIcon
in interface Site
public void updateTitle()
Site
View.getTitle()
operation.
updateTitle
in interface Site
public void updateWidget()
Site
Drawable.getWidget()
operation.
updateWidget
in interface Site
public void enable()
Site
enable
in interface Site
public void disable()
Site
disable
in interface Site
public void activate()
Site
activate
in interface Site
public void deactivate()
Site
deactivate
in interface Site
public void close()
Site
close
in interface Site
public boolean isActive()
Site
isActive
in interface Site
public 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 |