|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Site
Defines an site for a view. This is an abstract concept that helps to separate the logical part of managing views from the widget management.
Widget frameworks must implement the Container
class in order to be
able to interact with view sites.
A site defines the place where the view will be placed. This 'place' can have a title and an icon. For example it can be a TAB in a tabbed view or a SECTION in an accordion view.
When a site will open an input object the view will be initialized with that input and the container updated if the title or icon changed.
A site is keeping a reference to the underlying data (that can be an widget or a data object) through the handle member. The handle is created by the container when the site will be installed into the container.
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. |
Method Detail |
---|
java.lang.String getName()
java.lang.Object getHandle()
Container
object that is connected to the view manager.
The type of the handle is specific to each UI implementation
View getView()
java.lang.String getTitle()
java.lang.String getIcon()
void open(Container container, java.lang.Object input)
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
enable()
or activate()
can be called later.
void updateTitle()
View.getTitle()
operation.
void updateIcon()
View.getIcon()
operation.
void updateWidget()
Drawable.getWidget()
operation.
void enable()
void disable()
void activate()
void deactivate()
void close()
boolean isActive()
boolean isEnabled()
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |