info.magnolia.ui.vaadin.editor
Class JCrop
java.lang.Object
com.vaadin.server.AbstractClientConnector
com.vaadin.server.AbstractExtension
com.vaadin.server.AbstractJavaScriptExtension
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 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 |
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 |
JCrop
public JCrop(JCropHandler handler)
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.