|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wewebu.ow.server.ui.OwEventTarget
com.wewebu.ow.server.ui.OwView
com.wewebu.ow.server.ui.OwLayout
public abstract class OwLayout
Layout Class, which can add further Views to regions and act as a container.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
| Nested Class Summary | |
|---|---|
protected class |
OwLayout.OwDispatchRegion
dispatch region wrapper used by addRegion to dispatch to a region in the attached Renderable |
| Field Summary | |
|---|---|
protected HashMap |
m_Regions
map of the contained views, keyed by Region Name |
| Fields inherited from class com.wewebu.ow.server.ui.OwView |
|---|
CURRENT_MODULE_KEY, FORMULAR_PLACEHOLDER_END_DELIMITER, FORMULAR_PLACEHOLDER_START_DELIMITER, m_externalFormEventTarget |
| Fields inherited from interface com.wewebu.ow.server.ui.OwBaseView |
|---|
EMPTY_STRING |
| Constructor Summary | |
|---|---|
OwLayout()
|
|
| Method Summary | |
|---|---|
void |
addRegion(OwBaseView view_p,
int iRegion_p,
int iDispatchRegion_p)
adds a region out of the given view with a name key to the layout NOTE: Does not attach the view. |
void |
addView(OwView view_p,
int iRegion_p,
String strName_p)
adds a view with a name key to the layout and attaches the view |
void |
addView(OwView view_p,
String strName_p)
add a view and initialize it |
void |
addViewReference(OwBaseView view_p,
int iRegion_p)
adds a OwBaseView with a name key to the layout, but does not attach it. |
Iterator |
getIterator()
get a iterator object for the child views |
OwView |
getViewRegion(int iRegion_p)
get the registered view reference |
boolean |
isRegion(int iRegion_p)
determine if region exists |
boolean |
isRegionMaximized(int iRegion_p)
checks if the region is shown maximized |
boolean |
isRegionMinimized(int iRegion_p)
checks if the region is shown minimized |
boolean |
isRegionNormal(int iRegion_p)
checks if the region is shown normal |
void |
renderNamedRegion(Writer w_p,
String strRegion_p)
render only a region in the view, used by derived classes |
void |
renderRegion(Writer w_p,
int iRegion_p)
render the views of the region |
| Methods inherited from class com.wewebu.ow.server.ui.OwView |
|---|
activate, detach, getBreadcrumbPart, getDocument, getExternalFormEventTarget, getFormName, getFormTarget, getIcon, getMaximizeView, getParent, getRenderedNamedRegion, getRenderedRegion, getTitle, getViewList, init, isFormTargetExternal, isNamedRegion, isShowMaximized, isShowMinimized, isShowNormal, onActivate, onRender, onUpdate, render, renderHTMLFormular, serverSideDesignInclude, serverSideInclude, setDocument, setExternalFormTarget, setMaximizeView, setParent, showMaximized, showMinimized, showNormal, usesFormWithAttributes |
| Methods inherited from class com.wewebu.ow.server.ui.OwEventTarget |
|---|
attach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest, updateExternalFormTarget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected HashMap m_Regions
| Constructor Detail |
|---|
public OwLayout()
| Method Detail |
|---|
public void addRegion(OwBaseView view_p,
int iRegion_p,
int iDispatchRegion_p)
throws Exception
view_p - OwBaseView to addiRegion_p - ID of the regioniDispatchRegion_p - ID of the sub region i.e. this will call renderRegion(iDispatchRegion_p) instead of render(...)
Exception
public void addView(OwView view_p,
int iRegion_p,
String strName_p)
throws Exception
view_p - the view to addstrName_p - Name / ID of the view, can be nulliRegion_p - ID of the region
Exception
public void addView(OwView view_p,
String strName_p)
throws Exception
addView in class OwViewview_p - View to addstrName_p - Name / ID of the view, can be null
Exception
public void addViewReference(OwBaseView view_p,
int iRegion_p)
throws Exception
view_p - the view to addiRegion_p - ID of the region
Exceptionpublic Iterator getIterator()
getIterator in class OwView
public OwView getViewRegion(int iRegion_p)
throws OwObjectNotFoundException
iRegion_p - ID of the region to render
OwObjectNotFoundExceptionpublic boolean isRegion(int iRegion_p)
isRegion in interface OwBaseViewisRegion in class OwViewiRegion_p - ID of the region to render
public boolean isRegionMaximized(int iRegion_p)
public boolean isRegionMinimized(int iRegion_p)
public boolean isRegionNormal(int iRegion_p)
public void renderNamedRegion(Writer w_p,
String strRegion_p)
throws Exception
renderNamedRegion in interface OwBaseViewrenderNamedRegion in class OwVieww_p - Writer object to write HTML tostrRegion_p - named region to render
Exception
public void renderRegion(Writer w_p,
int iRegion_p)
throws Exception
renderRegion in interface OwBaseViewrenderRegion in class OwVieww_p - Writer object to write HTML toiRegion_p - ID of the region to render
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||