com.wewebu.ow.server.dmsdialogs
Class OwStandardPropertyViewBridge

java.lang.Object
  extended by com.wewebu.ow.server.dmsdialogs.OwStandardPropertyViewBridge
All Implemented Interfaces:
OwPropertyViewBridge

public class OwStandardPropertyViewBridge
extends Object
implements OwPropertyViewBridge

OwObjectPropertyView based property view bridge.

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

Since:
3.0.0.0

Field Summary
protected  OwObjectPropertyView view
          the view
 
Constructor Summary
OwStandardPropertyViewBridge(OwObjectPropertyView view_p)
          constructor
 
Method Summary
 OwMenuView getMenu()
          Get the menu associated with this view.
 OwView getView()
           
 boolean isReadOnly()
          Get the status of the view.
 boolean isSystemPropertyView()
          Return true if the view is used to render system properties.
 boolean onApply(javax.servlet.http.HttpServletRequest request_p, Object reason_p)
          Event called when user clicked Apply button in menu
 void onBatchIndex()
          called by the client when the indexes should be set from the previous values as defined with setBatchProperties.
 void setGroupPropertiesConfiguration(OwGroupPropertiesConfiguration groupPropertyConfiguration_p)
          Set the configuration for grouped properties.
 void setObjectRefEx(OwObject objectRef_p, boolean showSystemProperties_p, Collection propertyInfos_p)
          Sets the object whose properties will be displayed.
 void setReadOnlyContext(int context_p)
          set context to be used for the read-only property
 void setSaveAllActive(boolean saveAllEnabled_p)
          Set the save all flag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

view

protected OwObjectPropertyView view
the view

Constructor Detail

OwStandardPropertyViewBridge

public OwStandardPropertyViewBridge(OwObjectPropertyView view_p)
constructor

Method Detail

getView

public OwView getView()
Specified by:
getView in interface OwPropertyViewBridge
Returns:
the underlying property rendering OwView

setReadOnlyContext

public void setReadOnlyContext(int context_p)
Description copied from interface: OwPropertyViewBridge
set context to be used for the read-only property

Specified by:
setReadOnlyContext in interface OwPropertyViewBridge
Parameters:
context_p - int as defined with OwPropertyClass.CONTEXT_...

setObjectRefEx

public void setObjectRefEx(OwObject objectRef_p,
                           boolean showSystemProperties_p,
                           Collection propertyInfos_p)
                    throws Exception
Description copied from interface: OwPropertyViewBridge
Sets the object whose properties will be displayed.

Specified by:
setObjectRefEx in interface OwPropertyViewBridge
Parameters:
objectRef_p - The objectRef to set.
showSystemProperties_p - if true show only system properties.
propertyInfos_p - collection of property info objects describing the properties to edit and their read only state, or null to edit all
Throws:
Exception

isSystemPropertyView

public boolean isSystemPropertyView()
Description copied from interface: OwPropertyViewBridge
Return true if the view is used to render system properties.

Specified by:
isSystemPropertyView in interface OwPropertyViewBridge
Returns:
true if the view is used to render system properties

onBatchIndex

public void onBatchIndex()
                  throws Exception
Description copied from interface: OwPropertyViewBridge
called by the client when the indexes should be set from the previous values as defined with setBatchProperties.

Specified by:
onBatchIndex in interface OwPropertyViewBridge
Throws:
Exception

onApply

public boolean onApply(javax.servlet.http.HttpServletRequest request_p,
                       Object reason_p)
                throws Exception
Description copied from interface: OwPropertyViewBridge
Event called when user clicked Apply button in menu

Specified by:
onApply in interface OwPropertyViewBridge
Parameters:
request_p - HttpServletRequest
reason_p - Optional reason object submitted in addMenuItem
Returns:
true = fields have been saved, false = one or more invalid fields
Throws:
Exception

getMenu

public OwMenuView getMenu()
Description copied from interface: OwPropertyViewBridge
Get the menu associated with this view.

Specified by:
getMenu in interface OwPropertyViewBridge
Returns:
the OwMenuView object associated with this view.

isReadOnly

public boolean isReadOnly()
Description copied from interface: OwPropertyViewBridge
Get the status of the view.

Specified by:
isReadOnly in interface OwPropertyViewBridge
Returns:
true if the view is in read-only mode.

setSaveAllActive

public void setSaveAllActive(boolean saveAllEnabled_p)
Description copied from interface: OwPropertyViewBridge
Set the save all flag.

Specified by:
setSaveAllActive in interface OwPropertyViewBridge

setGroupPropertiesConfiguration

public void setGroupPropertiesConfiguration(OwGroupPropertiesConfiguration groupPropertyConfiguration_p)
Description copied from interface: OwPropertyViewBridge
Set the configuration for grouped properties.

Specified by:
setGroupPropertiesConfiguration in interface OwPropertyViewBridge
Parameters:
groupPropertyConfiguration_p - - the configuration object.


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.