com.wewebu.ow.server.app
Class OwStandardSequenceDialog

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
                  extended by com.wewebu.ow.server.app.OwStandardDialog
                      extended by com.wewebu.ow.server.app.OwStandardSequenceDialog
All Implemented Interfaces:
OwSequenceView, OwBaseView, OwUpdateTarget
Direct Known Subclasses:
OwObjectSequenceDialog

public abstract class OwStandardSequenceDialog
extends OwStandardDialog
implements OwSequenceView

Extends the Standard Dialog with a prev / next button, as well as a overridden listener interface to handle sequences.

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.OwDialog
OwDialog.OwDialogListener
 
Nested classes/interfaces inherited from class com.wewebu.ow.server.ui.OwLayout
OwLayout.OwDispatchRegion
 
Field Summary
 
Fields inherited from class com.wewebu.ow.server.app.OwStandardDialog
CLOSE_BTN_REGION, FOOTER_REGION, HELP_BTN_REGION, INFO_ICON_REGION, LEFT_REGION, m_strHelpPath, m_strInfoIconURL, m_strTitle, MAIN_REGION, MENU_REGION, RIGHT_REGION, STANDARD_DIALOG_REGION_MAX, TITLE_REGION
 
Fields inherited from class com.wewebu.ow.server.ui.OwDialog
m_iDEBUG_DocumentViewSize, m_iDEBUG_InitDocument, m_iDEBUG_TargetCount, m_Listener
 
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
OwStandardSequenceDialog()
           
 
Method Summary
 boolean hasNext()
          called when the Dialog needs to know if there is a next item
 boolean hasPrev()
          called when the Dialog needs to know if there is a prev item
 void onNext(javax.servlet.http.HttpServletRequest request_p)
          event called when user clicked a close on the dialog
 void onPrev(javax.servlet.http.HttpServletRequest request_p)
          event called when user clicked a close on the dialog
 void renderNavigationButtons(Writer w_p)
          render Prev and Next buttons
 void renderRegion(Writer w_p, int iRegion_p)
          render the views of the region
 
Methods inherited from class com.wewebu.ow.server.app.OwStandardDialog
getInfoIcon, getTitle, hasHelpButton, isRegion, onClose, onHelp, onRender, renderCloseButton, renderHelpButton, setHelp, setInfoIcon, setTitle
 
Methods inherited from class com.wewebu.ow.server.ui.OwDialog
closeDialog, setListener
 
Methods inherited from class com.wewebu.ow.server.ui.OwLayout
addRegion, addView, addView, addViewReference, getIterator, getViewRegion, isRegionMaximized, isRegionMinimized, isRegionNormal, renderNamedRegion
 
Methods inherited from class com.wewebu.ow.server.ui.OwView
activate, detach, getBreadcrumbPart, getDocument, getExternalFormEventTarget, getFormName, getFormTarget, getIcon, getMaximizeView, getParent, getRenderedNamedRegion, getRenderedRegion, getViewList, init, 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
 
Methods inherited from interface com.wewebu.ow.server.app.OwSequenceView
getCount, next, prev
 

Constructor Detail

OwStandardSequenceDialog

public OwStandardSequenceDialog()
Method Detail

hasNext

public boolean hasNext()
                throws Exception
called when the Dialog needs to know if there is a next item

Specified by:
hasNext in interface OwSequenceView
Throws:
Exception

hasPrev

public boolean hasPrev()
                throws Exception
called when the Dialog needs to know if there is a prev item

Specified by:
hasPrev in interface OwSequenceView
Throws:
Exception

renderRegion

public void renderRegion(Writer w_p,
                         int iRegion_p)
                  throws Exception
render the views of the region

Specified by:
renderRegion in interface OwBaseView
Overrides:
renderRegion in class OwStandardDialog
Parameters:
w_p - Writer object to write HTML to
iRegion_p - ID of the region to render
Throws:
Exception

renderNavigationButtons

public void renderNavigationButtons(Writer w_p)
                             throws Exception
render Prev and Next buttons

Parameters:
w_p -
Throws:
Exception
Since:
3.1.0.0

onPrev

public void onPrev(javax.servlet.http.HttpServletRequest request_p)
            throws Exception
event called when user clicked a close on the dialog

Parameters:
request_p - HttpServletRequest
Throws:
Exception

onNext

public void onNext(javax.servlet.http.HttpServletRequest request_p)
            throws Exception
event called when user clicked a close on the dialog

Parameters:
request_p - HttpServletRequest
Throws:
Exception


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.