es.caib.ibkey.bpm.tasks
Class PreviewDocumentToSignTaskV2

java.lang.Object
  extended by org.zkoss.zk.ui.AbstractComponent
      extended by org.zkoss.zk.ui.HtmlBasedComponent
          extended by org.zkoss.zul.impl.XulElement
              extended by org.zkoss.zul.Window
                  extended by es.caib.bpm.toolkit.WorkflowWindow
                      extended by es.caib.ibkey.bpm.tasks.PreviewDocumentToSignTaskV2
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, org.zkoss.zk.ui.Component, org.zkoss.zk.ui.IdSpace, org.zkoss.zk.ui.sys.ComponentCtrl

public class PreviewDocumentToSignTaskV2
extends es.caib.bpm.toolkit.WorkflowWindow

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.zkoss.zul.Window
org.zkoss.zul.Window.ExtraCtrl
 
Field Summary
protected  java.lang.String documentURL
           
protected  java.lang.String[] enabledPositions
           
protected  java.lang.String enabledStampType
          SIGN VARS
protected  java.lang.String forcedAdditionalText
           
protected  int previewMaxHeight
          PREVIEW PARAMS
protected  int previewMaxWidth
           
protected  java.util.Map previews
          PREVIEW VARS
protected  int selectedPreview
           
static java.lang.String STAMP_POSITION_ADOBE_BOTTOM_LEFT
           
static java.lang.String STAMP_POSITION_ADOBE_BOTTOM_RIGHT
           
static java.lang.String STAMP_POSITION_ADOBE_TOP_LEFT
           
static java.lang.String STAMP_POSITION_ADOBE_TOP_RIGHT
           
static java.lang.String STAMP_POSITION_ALL_BOTTOM
           
static java.lang.String STAMP_POSITION_ALL_TOP
           
static java.lang.String STAMP_POSITION_PDF417_LEFT
           
static java.lang.String STAMP_POSITION_PDF417_RIGHT
           
static java.lang.String STAMP_TYPE_ADOBE
           
static java.lang.String STAMP_TYPE_ALL
          CONSTANTS
static java.lang.String STAMP_TYPE_NONE
           
static java.lang.String STAMP_TYPE_PDF417
           
protected  float stampHeight
           
protected  float stampLeft
           
protected  float stampRotation
           
protected  float stampTop
           
protected  float stampWidth
           
 es.caib.ibkey.bpm.document.stage.StageManager stgMgr
          STAGE VARS
 
Fields inherited from class es.caib.bpm.toolkit.WorkflowWindow
COMPLETE_TRANSITION_EVENT, DELEGATION_INIT_EVENT, LOAD_EVENT, log, PREPARE_TRANSITION_EVENT, SAVE_EVENT, TAB_SELECTED_EVENT
 
Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent
RS_NO_DISPLAY, RS_NO_HEIGHT, RS_NO_WIDTH
 
Fields inherited from interface org.zkoss.zk.ui.Component
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE
 
Constructor Summary
PreviewDocumentToSignTaskV2()
           
 
Method Summary
protected static byte[] getInputObject(es.caib.ibkey.bpm.document.stage.StageManager stgMgr)
           
 int getSelectedPreview()
           
 es.caib.zkib.zkiblaf.Stamp getStampElement()
           
 float getStampTop()
           
 float getStampWidth()
           
 void onCreateTask()
           
protected  void prepareTransition(java.lang.String transicionEjecutada)
          validaciones
 void setPreviewMaxHeight(int previewMaxHeight)
           
 void setPreviewMaxWidth(int previewMaxWidth)
           
 void setSelectedPreview(int selectedPreview)
           
 void setStampElement(es.caib.zkib.zkiblaf.Stamp stampElement)
           
 void setStampHeight(float stampHeight)
           
 void setStampTop(float stampTop)
           
 void setStampWidth(float stampWidth)
           
 void showImagePreview(int page)
           
 void showStamp(java.lang.String src, int top, int left)
           
 
Methods inherited from class es.caib.bpm.toolkit.WorkflowWindow
completeTransition, getEngine, getProcessInstance, getSignatureHandler, getTask, isAllowDelegate, isCanAddAttachments, isCanDeleteAttachments, isShowAttachments, load, onDelegationInit, onTaskTabSelected, refresh, save, setAllowDelegate, setCanAddAttachments, setCanDeleteAttachments, setEngine, setProcessInstance, setShowAttachments, setSignatureHandler, setTask
 
Methods inherited from class org.zkoss.zul.Window
clone, doEmbedded, doHighlighted, doModal, doOverlapped, doPopup, getBorder, getCaption, getContentSclass, getContentStyle, getDefaultActionOnShow, getMode, getOuterAttrs, getPosition, getRealStyle, getSclass, getTitle, getTitleSclass, inEmbedded, inHighlighted, inModal, inOverlapped, inPopup, insertBefore, isClosable, isSizable, newExtraCtrl, onChildRemoved, onClose, onModal, setBorder, setClosable, setContentSclass, setContentStyle, setDefaultActionOnShow, setDraggable, setMode, setMode, setPage, setParent, setPosition, setSclass, setSizable, setTitle, setVisible
 
Methods inherited from class org.zkoss.zul.impl.XulElement
getAction, getActionAttrs, getAllOnClickAttrs, getContext, getCtrlKeys, getInnerAttrs, getPopup, getTooltip, setAction, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip
 
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
focus, getAllOnClickAttrs, getDraggable, getDroppable, getHeight, getLeft, getRealSclass, getRealStyleFlags, getStyle, getTooltiptext, getTop, getWidth, getZIndex, setClass, setDroppable, setFocus, setHeight, setLeft, setStyle, setTooltiptext, setTop, setWidth, setZIndex
 
Methods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addAnnotation, addEventHandler, addEventListener, addForward, addForward, addForward, addForward, addMoved, addSharedAnnotationMap, addSharedEventHandlerMap, appendAsapAttr, appendAsapAttr, appendChild, applyProperties, containsVariable, detach, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getCommand, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getExtraCtrl, getFellow, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getMoldURI, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getPropagatee, getRoot, getSpaceOwner, getUuid, getVariable, invalidate, isAsapRequired, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onDrawNewChild, onPageAttached, onPageDetached, onWrongValue, redraw, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setComponentDefinition, setId, setMold, setPageBefore, setVariable, smartUpdate, smartUpdate, smartUpdate, smartUpdateDeferred, smartUpdateValues, toString, unsetVariable
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.zkoss.zk.ui.IdSpace
getFellow, getFellowIfAny, getFellows
 

Field Detail

STAMP_TYPE_ALL

public static final java.lang.String STAMP_TYPE_ALL
CONSTANTS

See Also:
Constant Field Values

STAMP_TYPE_ADOBE

public static final java.lang.String STAMP_TYPE_ADOBE
See Also:
Constant Field Values

STAMP_TYPE_PDF417

public static final java.lang.String STAMP_TYPE_PDF417
See Also:
Constant Field Values

STAMP_TYPE_NONE

public static final java.lang.String STAMP_TYPE_NONE
See Also:
Constant Field Values

STAMP_POSITION_ALL_TOP

public static final java.lang.String STAMP_POSITION_ALL_TOP
See Also:
Constant Field Values

STAMP_POSITION_ADOBE_TOP_LEFT

public static final java.lang.String STAMP_POSITION_ADOBE_TOP_LEFT
See Also:
Constant Field Values

STAMP_POSITION_ADOBE_TOP_RIGHT

public static final java.lang.String STAMP_POSITION_ADOBE_TOP_RIGHT
See Also:
Constant Field Values

STAMP_POSITION_PDF417_LEFT

public static final java.lang.String STAMP_POSITION_PDF417_LEFT
See Also:
Constant Field Values

STAMP_POSITION_PDF417_RIGHT

public static final java.lang.String STAMP_POSITION_PDF417_RIGHT
See Also:
Constant Field Values

STAMP_POSITION_ALL_BOTTOM

public static final java.lang.String STAMP_POSITION_ALL_BOTTOM
See Also:
Constant Field Values

STAMP_POSITION_ADOBE_BOTTOM_LEFT

public static final java.lang.String STAMP_POSITION_ADOBE_BOTTOM_LEFT
See Also:
Constant Field Values

STAMP_POSITION_ADOBE_BOTTOM_RIGHT

public static final java.lang.String STAMP_POSITION_ADOBE_BOTTOM_RIGHT
See Also:
Constant Field Values

stgMgr

public es.caib.ibkey.bpm.document.stage.StageManager stgMgr
STAGE VARS


enabledStampType

protected java.lang.String enabledStampType
SIGN VARS


enabledPositions

protected java.lang.String[] enabledPositions

forcedAdditionalText

protected java.lang.String forcedAdditionalText

stampTop

protected float stampTop

stampLeft

protected float stampLeft

stampHeight

protected float stampHeight

stampWidth

protected float stampWidth

stampRotation

protected float stampRotation

documentURL

protected java.lang.String documentURL

previewMaxHeight

protected int previewMaxHeight
PREVIEW PARAMS


previewMaxWidth

protected int previewMaxWidth

previews

protected java.util.Map previews
PREVIEW VARS


selectedPreview

protected int selectedPreview
Constructor Detail

PreviewDocumentToSignTaskV2

public PreviewDocumentToSignTaskV2()
Method Detail

onCreateTask

public void onCreateTask()
                  throws java.lang.Exception
Throws:
java.lang.Exception

showStamp

public void showStamp(java.lang.String src,
                      int top,
                      int left)

showImagePreview

public void showImagePreview(int page)
                      throws java.lang.Exception
Throws:
java.lang.Exception

prepareTransition

protected void prepareTransition(java.lang.String transicionEjecutada)
                          throws es.caib.bpm.toolkit.exception.WorkflowException
validaciones

Overrides:
prepareTransition in class es.caib.bpm.toolkit.WorkflowWindow
Throws:
es.caib.bpm.toolkit.exception.WorkflowException

getInputObject

protected static byte[] getInputObject(es.caib.ibkey.bpm.document.stage.StageManager stgMgr)
                                throws java.lang.Exception
Throws:
java.lang.Exception

getStampElement

public es.caib.zkib.zkiblaf.Stamp getStampElement()
Returns:
the stampElement

setStampElement

public void setStampElement(es.caib.zkib.zkiblaf.Stamp stampElement)
Parameters:
stampElement - the stampElement to set

setPreviewMaxHeight

public void setPreviewMaxHeight(int previewMaxHeight)
Parameters:
previewMaxHeight - the previewMaxHeight to set

setPreviewMaxWidth

public void setPreviewMaxWidth(int previewMaxWidth)
Parameters:
previewMaxWidth - the previewMaxWidth to set

setStampHeight

public void setStampHeight(float stampHeight)
Parameters:
stampHeight - the stampHeight to set

setStampWidth

public void setStampWidth(float stampWidth)
Parameters:
stampWidth - the stampWidth to set

getSelectedPreview

public int getSelectedPreview()
Returns:
the selectedPreview

setSelectedPreview

public void setSelectedPreview(int selectedPreview)
Parameters:
selectedPreview - the selectedPreview to set

getStampTop

public float getStampTop()
Returns:
the stampTop

setStampTop

public void setStampTop(float stampTop)
Parameters:
stampTop - the stampTop to set

getStampWidth

public float getStampWidth()
Returns:
the stampWidth


Copyright © 2012 Direcció General de Tecnologia i Comunicacions. Govern de les Illes Balears. All Rights Reserved.