com.wewebu.ow.server.app
Class OwMaxMinButtonControlView

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.button.OwImageButtonView
              extended by com.wewebu.ow.server.app.OwMaxMinButtonControlView
All Implemented Interfaces:
OwBaseView, OwUpdateTarget

public class OwMaxMinButtonControlView
extends OwImageButtonView

View Module to display a maximize minimize button and maximize minimize the attached view.

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
protected  OwView m_view
          attached OwView to be maximized minimized
static int MODE_MAXIMIZE_BUTTON
          flag for maximize button
static int MODE_MINIMIZE_BUTTON
          flag for maximize button
 
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
OwMaxMinButtonControlView(OwView view_p)
          attach a view to the control use maximize button
OwMaxMinButtonControlView(OwView view_p, int iMode_p)
          attach a view to the control, select button mode
 
Method Summary
 List<OwImageButton> getButtonList()
          Get a list of buttons which should be rendered.
 String getControlledViewTitle()
          get the title of the controlled view
 int getDisplayMode()
          get the display mode
 boolean getIsShowNormal()
          get the isShowNormal flag
 String getMaximizeIcon()
          overridable get the icon URL
 String getMinimizeIcon()
          overridable get the icon URL
 String getNormalIcon()
          overridable get the icon URL
protected  void init()
          init the target after the context is set.
 void onMaximize(javax.servlet.http.HttpServletRequest request_p)
          event called when user clicked maximize
 void onMinimize(javax.servlet.http.HttpServletRequest request_p)
          event called when user clicked minimize
 void onNormal(javax.servlet.http.HttpServletRequest request_p)
          event called when user clicked minimize
 
Methods inherited from class com.wewebu.ow.server.ui.button.OwImageButtonView
getDesignClasses, getHtmlId, onRender, setHtmlId
 
Methods inherited from class com.wewebu.ow.server.ui.OwView
activate, addView, detach, getBreadcrumbPart, getDocument, getExternalFormEventTarget, getFormName, getFormTarget, getIcon, getIterator, getMaximizeView, getParent, getRenderedNamedRegion, getRenderedRegion, getTitle, getViewList, 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

m_view

protected OwView m_view
attached OwView to be maximized minimized


MODE_MAXIMIZE_BUTTON

public static final int MODE_MAXIMIZE_BUTTON
flag for maximize button

See Also:
Constant Field Values

MODE_MINIMIZE_BUTTON

public static final int MODE_MINIMIZE_BUTTON
flag for maximize button

See Also:
Constant Field Values
Constructor Detail

OwMaxMinButtonControlView

public OwMaxMinButtonControlView(OwView view_p)
attach a view to the control use maximize button

Parameters:
view_p - OwView to be maximized minimized

OwMaxMinButtonControlView

public OwMaxMinButtonControlView(OwView view_p,
                                 int iMode_p)
attach a view to the control, select button mode

Parameters:
view_p - OwView to be maximized minimized
iMode_p - int any combination of MODE_...
Method Detail

init

protected void init()
             throws Exception
Description copied from class: OwView
init the target after the context is set.

Overrides:
init in class OwImageButtonView
Throws:
Exception

getMaximizeIcon

public String getMaximizeIcon()
                       throws Exception
overridable get the icon URL

Returns:
String URL to the icon
Throws:
Exception

getMinimizeIcon

public String getMinimizeIcon()
                       throws Exception
overridable get the icon URL

Returns:
String URL to the icon
Throws:
Exception

getNormalIcon

public String getNormalIcon()
                     throws Exception
overridable get the icon URL

Returns:
String URL to the icon
Throws:
Exception

getControlledViewTitle

public String getControlledViewTitle()
get the title of the controlled view

Returns:
String

getDisplayMode

public int getDisplayMode()
get the display mode

Returns:
int

getIsShowNormal

public boolean getIsShowNormal()
get the isShowNormal flag

Returns:
boolean

onMaximize

public void onMaximize(javax.servlet.http.HttpServletRequest request_p)
                throws Exception
event called when user clicked maximize

Parameters:
request_p - HttpServletRequest
Throws:
Exception

onNormal

public void onNormal(javax.servlet.http.HttpServletRequest request_p)
              throws Exception
event called when user clicked minimize

Parameters:
request_p - HttpServletRequest
Throws:
Exception

onMinimize

public void onMinimize(javax.servlet.http.HttpServletRequest request_p)
                throws Exception
event called when user clicked minimize

Parameters:
request_p - HttpServletRequest
Throws:
Exception

getButtonList

public List<OwImageButton> getButtonList()
Description copied from class: OwImageButtonView
Get a list of buttons which should be rendered.

Overrides:
getButtonList in class OwImageButtonView
Returns:
List


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.