com.wewebu.ow.server.ui
Class OwDialogManager

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.OwDialogManager
All Implemented Interfaces:
OwBaseView, OwUpdateTarget

public class OwDialogManager
extends OwView

Dialog Manager. Opens Dialogs, redirects requests to dialogs, handles recursive calls to dialogs.
Dialog Manager itself is treated as a view and can show up anywhere in the layout.

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


Field Summary
 
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
OwDialogManager()
           
 
Method Summary
 void closeAllDialogs()
          closes all dialogs
 void closeDialog(OwDialog dialog_p)
          closes the latest dialog and removes it from the dialog list, and the context.
protected  OwDialog getCurrentDialog()
          get the current topmost dialog
 String getTitle()
          overridable title of the view
 boolean isDialogOpen()
          check if a dialog is currently open
protected  void onRender(Writer w_p)
          render the view
 void openDialog(OwDialog dialog_p, OwDialog.OwDialogListener listener_p)
          display a new dialog, adds it to the context for Event handling.
 
Methods inherited from class com.wewebu.ow.server.ui.OwView
activate, addView, detach, getBreadcrumbPart, getDocument, getExternalFormEventTarget, getFormName, getFormTarget, getIcon, getIterator, getMaximizeView, getParent, getRenderedNamedRegion, getRenderedRegion, getViewList, init, isFormTargetExternal, isNamedRegion, isRegion, isShowMaximized, isShowMinimized, isShowNormal, onActivate, onUpdate, render, renderHTMLFormular, renderNamedRegion, renderRegion, 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
 

Constructor Detail

OwDialogManager

public OwDialogManager()
Method Detail

openDialog

public void openDialog(OwDialog dialog_p,
                       OwDialog.OwDialogListener listener_p)
                throws Exception
display a new dialog, adds it to the context for Event handling. After it is closed it gets removed from the DialogManager and the context to finalize the Dialog View

Parameters:
dialog_p - Dialog-View of the new dialog
listener_p - Listener that wants to be notified upon dialog events.
Throws:
Exception

closeDialog

public void closeDialog(OwDialog dialog_p)
                 throws Exception
closes the latest dialog and removes it from the dialog list, and the context.

Parameters:
dialog_p - Dialog-View to get closed
Throws:
Exception

isDialogOpen

public boolean isDialogOpen()
check if a dialog is currently open

Returns:
true if dialog needs to be shown, otherwise false.

closeAllDialogs

public void closeAllDialogs()
                     throws Exception
closes all dialogs

Throws:
Exception

getCurrentDialog

protected OwDialog getCurrentDialog()
get the current topmost dialog

Returns:
OwDialog

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

getTitle

public String getTitle()
Description copied from class: OwView
overridable title of the view

Specified by:
getTitle in interface OwBaseView
Overrides:
getTitle in class OwView
Returns:
String localized display name for the view


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.