com.wewebu.ow.server.app
Class OwSubLayout

java.lang.Object
  extended by com.wewebu.ow.server.ui.OwEventTarget
      extended by com.wewebu.ow.server.ui.OwView
          extended by com.wewebu.ow.server.ui.OwLayout
              extended by com.wewebu.ow.server.app.OwSubLayout
All Implemented Interfaces:
OwBaseView, OwUpdateTarget

public class OwSubLayout
extends OwLayout

Layout of the tab/plugin areas.

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
 
Nested classes/interfaces inherited from class com.wewebu.ow.server.ui.OwLayout
OwLayout.OwDispatchRegion
 
Field Summary
static int DND_REGION
          DnD applet region
static int HOT_KEY_REGION
          region for the optional hot key region e.g.
protected  OwConfiguration m_Configuration
          application m_Configuration reference
protected  boolean m_isDynamicSplitInUse
          flag indicating that the layout is using EXTJS
protected  OwMainAppContext m_MainContext
          reference to the cast AppContext
protected  boolean m_saveSplitPosition
          flag indicating if splitter position should be saved
protected  OwDynamicLayoutSettings m_settings
          Holder for layout settings.
static int MAIN_REGION
          main region
static int MENU_REGION
          region for the optional menu
static int NAVIGATION_REGION
          region for the navigation part
 
Fields inherited from class com.wewebu.ow.server.ui.OwLayout
m_Regions
 
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
OwSubLayout()
           
 
Method Summary
protected  OwDynamicLayoutSettings createLayoutSettings()
          Create the layout settings object
protected  String getBagID()
          Compute the bag ID.
protected  OwDynamicLayoutSettings getLayoutSettings()
          Get the created layout settings.
 int getNavigationPanelWidth()
          Get the width for navigation panel
protected  void init()
          initialize the view after the context is set.
 void onAjaxNavigationPanelResize(javax.servlet.http.HttpServletRequest request_p, javax.servlet.http.HttpServletResponse response_p)
          AJAX handler invoked when the user resize the navigation panel.
protected  void onRender(Writer w_p)
          Render the view.
 
Methods inherited from class com.wewebu.ow.server.ui.OwLayout
addRegion, addView, addView, addViewReference, getIterator, getViewRegion, isRegion, isRegionMaximized, isRegionMinimized, isRegionNormal, renderNamedRegion, renderRegion
 
Methods inherited from class com.wewebu.ow.server.ui.OwView
activate, detach, getBreadcrumbPart, getDocument, getExternalFormEventTarget, getFormName, getFormTarget, getIcon, getMaximizeView, getParent, getRenderedNamedRegion, getRenderedRegion, getTitle, getViewList, isFormTargetExternal, isNamedRegion, isShowMaximized, isShowMinimized, isShowNormal, onActivate, 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

NAVIGATION_REGION

public static final int NAVIGATION_REGION
region for the navigation part

See Also:
Constant Field Values

MENU_REGION

public static final int MENU_REGION
region for the optional menu

See Also:
Constant Field Values

MAIN_REGION

public static final int MAIN_REGION
main region

See Also:
Constant Field Values

HOT_KEY_REGION

public static final int HOT_KEY_REGION
region for the optional hot key region e.g. a recent record list

See Also:
Constant Field Values

DND_REGION

public static final int DND_REGION
DnD applet region

See Also:
Constant Field Values

m_MainContext

protected OwMainAppContext m_MainContext
reference to the cast AppContext


m_Configuration

protected OwConfiguration m_Configuration
application m_Configuration reference


m_isDynamicSplitInUse

protected boolean m_isDynamicSplitInUse
flag indicating that the layout is using EXTJS

Since:
3.1.0.0

m_saveSplitPosition

protected boolean m_saveSplitPosition
flag indicating if splitter position should be saved

Since:
3.1.0.0

m_settings

protected OwDynamicLayoutSettings m_settings
Holder for layout settings.

Since:
3.1.0.0
Constructor Detail

OwSubLayout

public OwSubLayout()
Method Detail

init

protected void init()
             throws Exception
initialize the view after the context is set.

Overrides:
init in class OwView
Throws:
Exception

createLayoutSettings

protected OwDynamicLayoutSettings createLayoutSettings()
Create the layout settings object

Returns:
the layout settings object

getLayoutSettings

protected OwDynamicLayoutSettings getLayoutSettings()
Get the created layout settings.

Returns:
the OwDynamicLayoutSettings object
Since:
3.1.0.0

onRender

protected void onRender(Writer w_p)
                 throws Exception
Render the view.

Overrides:
onRender in class OwView
Parameters:
w_p - Writer object to write HTML to
Throws:
Exception

onAjaxNavigationPanelResize

public void onAjaxNavigationPanelResize(javax.servlet.http.HttpServletRequest request_p,
                                        javax.servlet.http.HttpServletResponse response_p)
AJAX handler invoked when the user resize the navigation panel.

Parameters:
request_p - - the HttpServletRequest object.
response_p - - the HttpServletResponse object
Since:
3.1.0.0

getNavigationPanelWidth

public int getNavigationPanelWidth()
Get the width for navigation panel

Returns:
- the initial width for navigation panel
Since:
3.1.0.0

getBagID

protected String getBagID()
Compute the bag ID.

Returns:
the bag ID.
Since:
3.1.0.0


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.