com.wewebu.ow.server.dmsdialogs.views
Class OwToolView

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

public abstract class OwToolView
extends OwView

Base class for OwToolViewItem based views.

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
 class OwToolView.OwToolClickTarget
          Click event tatrger wrapp for OwToolViewItems.
 
Field Summary
static int DEFAULT_ITEM_COLUMNS_COUNT
           
 
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
OwToolView()
           
OwToolView(int columnItemsCount_p)
           
 
Method Summary
 String createToolItemClickURL(OwToolViewItem item_p)
           
 void detach()
          remove view and all subviews from context
 int getColumnItemsCount()
           
abstract  Collection getToolItems()
          to be implemented by the subclass, iterates over the tools to display
abstract  void invoke(OwToolViewItem item_p)
          Called when a tool has been clicked by a user.
protected  void onRender(Writer w_p)
          called when the view should create its HTML content to be displayed
 
Methods inherited from class com.wewebu.ow.server.ui.OwView
activate, addView, getBreadcrumbPart, getDocument, getExternalFormEventTarget, getFormName, getFormTarget, getIcon, getIterator, getMaximizeView, getParent, getRenderedNamedRegion, getRenderedRegion, getTitle, 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
 

Field Detail

DEFAULT_ITEM_COLUMNS_COUNT

public static final int DEFAULT_ITEM_COLUMNS_COUNT
See Also:
Constant Field Values
Constructor Detail

OwToolView

public OwToolView()

OwToolView

public OwToolView(int columnItemsCount_p)
Method Detail

getColumnItemsCount

public int getColumnItemsCount()

getToolItems

public abstract Collection getToolItems()
to be implemented by the subclass, iterates over the tools to display

Returns:
Collection of OwToolItem

createToolItemClickURL

public String createToolItemClickURL(OwToolViewItem item_p)
Parameters:
item_p -
Returns:
the click event URL associated with the a click target for the givet item
See Also:
OwToolView.OwToolClickTarget

invoke

public abstract void invoke(OwToolViewItem item_p)
Called when a tool has been clicked by a user.

Parameters:
item_p - the clicked tool item

onRender

protected void onRender(Writer w_p)
                 throws Exception
Description copied from class: OwView
called when the view should create its HTML content to be displayed

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

detach

public void detach()
Description copied from class: OwView
remove view and all subviews from context

Overrides:
detach in class OwView


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.