com.wewebu.ow.server.ui
Class OwDialog

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.ui.OwDialog
All Implemented Interfaces:
OwBaseView, OwUpdateTarget
Direct Known Subclasses:
OwStandardDialog

public class OwDialog
extends OwLayout

Base Class for Dialog Views. Dialog Views display as a dialog with the OwAppContext.openDialog(...) Method.

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
static interface OwDialog.OwDialogListener
           Event listener for dialog events.
 
Nested classes/interfaces inherited from class com.wewebu.ow.server.ui.OwLayout
OwLayout.OwDispatchRegion
 
Field Summary
 int m_iDEBUG_DocumentViewSize
          count of the attached views to the dialog manager document must not change after close
 OwDocument m_iDEBUG_InitDocument
          init document must not change in dialog if it changes, attached views may not be detached and cause memory overflow
 int m_iDEBUG_TargetCount
          count that keeps track of the target count deltas before/after opening a dialog.
protected  OwDialog.OwDialogListener m_Listener
          Listener that wants to be notified upon dialog events.
 
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
OwDialog()
           
 
Method Summary
 void closeDialog()
          visually close the Dialog.
 void setListener(OwDialog.OwDialogListener listener_p)
          set the view that opens the dialog
 
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, 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

m_Listener

protected OwDialog.OwDialogListener m_Listener
Listener that wants to be notified upon dialog events.


m_iDEBUG_TargetCount

public int m_iDEBUG_TargetCount
count that keeps track of the target count deltas before/after opening a dialog. The target counts must return to their previous values on close dialog. Used for debug reasons only to throw an exception and to prevent the target map from infinite increases.


m_iDEBUG_InitDocument

public OwDocument m_iDEBUG_InitDocument
init document must not change in dialog if it changes, attached views may not be detached and cause memory overflow


m_iDEBUG_DocumentViewSize

public int m_iDEBUG_DocumentViewSize
count of the attached views to the dialog manager document must not change after close

Constructor Detail

OwDialog

public OwDialog()
Method Detail

closeDialog

public void closeDialog()
                 throws Exception
visually close the Dialog. The behavior depends on usage If this view is a child of a DialogManager, the View gets removed from it.

Throws:
Exception

setListener

public void setListener(OwDialog.OwDialogListener listener_p)
set the view that opens the dialog

Parameters:
listener_p - Listener that wants to be notified upon dialog events.


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.