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

java.lang.Object
  extended by com.wewebu.ow.server.dmsdialogs.views.OwStandardPasteMetadataHandler
All Implemented Interfaces:
OwPasteMetadataHandler

public class OwStandardPasteMetadataHandler
extends Object
implements OwPasteMetadataHandler

OwStandardPasteMetadataHandler - Used for plugins with JSPForm. Provide support for paste operations inside properties 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

Since:
3.1.0.0

Field Summary
protected  OwPropertyCollection m_properties
          properties from the object
protected static String QUERY_KEY_PROPNAME
          query string for the property name
 
Constructor Summary
OwStandardPasteMetadataHandler(OwMainAppContext context_p, boolean isSystemPropertiesView_p, boolean hasPasteMetadataEnabled_p)
          Constructor
 
Method Summary
protected  OwClipboard getClipboard()
          Get current Clipboard, often used in this class.
 boolean isPasteMetadataActivated()
          check if paste metadata is active and should be displayed for user
 void onPasteAllMetaData(javax.servlet.http.HttpServletRequest request_p)
          called when user presses the paste all metadata button
 void onPasteThisMetaData(javax.servlet.http.HttpServletRequest request_p)
          called when user presses the paste this metadata button
 void renderPasteAllMetadata(Writer w_p, OwEventTarget view_p)
          Render the "paste all" metadata HTML code.
 void renderPasteMetadata(Writer w_p, OwProperty prop_p, OwEventTarget view_p)
          Render the "paste" metadata HTML code
 void setProperties(OwPropertyCollection properties_p)
          Set the current properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QUERY_KEY_PROPNAME

protected static final String QUERY_KEY_PROPNAME
query string for the property name

See Also:
Constant Field Values

m_properties

protected OwPropertyCollection m_properties
properties from the object

Constructor Detail

OwStandardPasteMetadataHandler

public OwStandardPasteMetadataHandler(OwMainAppContext context_p,
                                      boolean isSystemPropertiesView_p,
                                      boolean hasPasteMetadataEnabled_p)
Constructor

Method Detail

setProperties

public void setProperties(OwPropertyCollection properties_p)
Description copied from interface: OwPasteMetadataHandler
Set the current properties.

Specified by:
setProperties in interface OwPasteMetadataHandler
Parameters:
properties_p - - the properties.

onPasteAllMetaData

public void onPasteAllMetaData(javax.servlet.http.HttpServletRequest request_p)
                        throws Exception
Description copied from interface: OwPasteMetadataHandler
called when user presses the paste all metadata button

Specified by:
onPasteAllMetaData in interface OwPasteMetadataHandler
Throws:
Exception

onPasteThisMetaData

public void onPasteThisMetaData(javax.servlet.http.HttpServletRequest request_p)
                         throws Exception
Description copied from interface: OwPasteMetadataHandler
called when user presses the paste this metadata button

Specified by:
onPasteThisMetaData in interface OwPasteMetadataHandler
Throws:
Exception

getClipboard

protected OwClipboard getClipboard()
Get current Clipboard, often used in this class.

Returns:
OwClipboard the current exist

isPasteMetadataActivated

public boolean isPasteMetadataActivated()
Description copied from interface: OwPasteMetadataHandler
check if paste metadata is active and should be displayed for user

Specified by:
isPasteMetadataActivated in interface OwPasteMetadataHandler

renderPasteAllMetadata

public void renderPasteAllMetadata(Writer w_p,
                                   OwEventTarget view_p)
                            throws Exception
Description copied from interface: OwPasteMetadataHandler
Render the "paste all" metadata HTML code.

Specified by:
renderPasteAllMetadata in interface OwPasteMetadataHandler
Parameters:
w_p - - the writer
view_p - - the view
Throws:
Exception

renderPasteMetadata

public void renderPasteMetadata(Writer w_p,
                                OwProperty prop_p,
                                OwEventTarget view_p)
                         throws Exception
Description copied from interface: OwPasteMetadataHandler
Render the "paste" metadata HTML code

Specified by:
renderPasteMetadata in interface OwPasteMetadataHandler
Throws:
Exception


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.