info.magnolia.ui.vaadin.editor
Class JCrop

java.lang.Object
  extended by com.vaadin.server.AbstractClientConnector
      extended by com.vaadin.server.AbstractExtension
          extended by com.vaadin.server.AbstractJavaScriptExtension
              extended by info.magnolia.ui.vaadin.editor.JCrop
All Implemented Interfaces:
com.vaadin.event.MethodEventSource, com.vaadin.server.ClientConnector, com.vaadin.server.Extension, com.vaadin.shared.Connector, Serializable

public class JCrop
extends com.vaadin.server.AbstractJavaScriptExtension

An Image extension that operates JCrop JQuery plugin (http://deepliquid.com/content/Jcrop.html).

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
 
Constructor Summary
JCrop(JCropHandler handler)
           
 
Method Summary
 void animateTo(SelectionArea area)
           
protected  SelectionArea AreaFromJSON(org.json.JSONObject json)
           
 void attach()
           
 void disable()
           
 void enable()
           
 CroppableImage getParent()
           
 JCropState getState()
           
protected  JCropState getState(boolean markAsDirty)
           
protected  Class<com.vaadin.ui.Image> getSupportedParentType()
           
 void invalidate()
           
 boolean isCropVisible()
           
 void select(SelectionArea area)
           
 void setAspectRatio(double aspectRatio)
           
 void setBackgroundColor(String color)
           
 void setBackgroundOpacity(double opacity)
           
 void setCropVisible(boolean isVisible)
           
 void setEnabled(boolean enabled)
           
 void setMaxHeight(int height)
           
 void setMaxWidth(int width)
           
 void setMinHeight(int height)
           
 void setMinWidth(int width)
           
 void setSelectionStatusComponent(com.vaadin.ui.Component c)
           
 void setTrueHeight(int height)
           
 void setTrueWidth(int width)
           
 
Methods inherited from class com.vaadin.server.AbstractJavaScriptExtension
addFunction, callFunction, registerRpc
 
Methods inherited from class com.vaadin.server.AbstractExtension
extend, remove, setParent
 
Methods inherited from class com.vaadin.server.AbstractClientConnector
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, beforeClientResponse, createState, detach, encodeState, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hasListeners, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
 
Methods inherited from interface com.vaadin.shared.Connector
getConnectorId
 

Constructor Detail

JCrop

public JCrop(JCropHandler handler)
Method Detail

getParent

public CroppableImage getParent()
Specified by:
getParent in interface com.vaadin.server.ClientConnector
Specified by:
getParent in interface com.vaadin.shared.Connector
Overrides:
getParent in class com.vaadin.server.AbstractExtension

AreaFromJSON

protected SelectionArea AreaFromJSON(org.json.JSONObject json)

attach

public void attach()
Specified by:
attach in interface com.vaadin.server.ClientConnector
Overrides:
attach in class com.vaadin.server.AbstractClientConnector

getState

protected JCropState getState(boolean markAsDirty)
Overrides:
getState in class com.vaadin.server.AbstractClientConnector

getState

public JCropState getState()
Overrides:
getState in class com.vaadin.server.AbstractJavaScriptExtension

getSupportedParentType

protected Class<com.vaadin.ui.Image> getSupportedParentType()
Overrides:
getSupportedParentType in class com.vaadin.server.AbstractExtension

setAspectRatio

public void setAspectRatio(double aspectRatio)

animateTo

public void animateTo(SelectionArea area)

isCropVisible

public boolean isCropVisible()

setCropVisible

public void setCropVisible(boolean isVisible)

enable

public void enable()

disable

public void disable()

setSelectionStatusComponent

public void setSelectionStatusComponent(com.vaadin.ui.Component c)

setBackgroundColor

public void setBackgroundColor(String color)

setBackgroundOpacity

public void setBackgroundOpacity(double opacity)

setMinHeight

public void setMinHeight(int height)

setMaxHeight

public void setMaxHeight(int height)

setMaxWidth

public void setMaxWidth(int width)

setMinWidth

public void setMinWidth(int width)

setEnabled

public void setEnabled(boolean enabled)

invalidate

public void invalidate()

setTrueHeight

public void setTrueHeight(int height)

setTrueWidth

public void setTrueWidth(int width)

select

public void select(SelectionArea area)


Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.