public class JCrop
extends com.vaadin.server.AbstractJavaScriptExtension
Image
extension that operates JCrop JQuery plugin (http://deepliquid.com/content/Jcrop.html
).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 and Description |
---|
JCrop(JCropHandler handler) |
Modifier and Type | Method and Description |
---|---|
void |
animateTo(SelectionArea area) |
protected SelectionArea |
AreaFromJSON(elemental.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) |
addFunction, callFunction, registerRpc
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, beforeClientResponse, createState, detach, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isConnectorEnabled, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
public JCrop(JCropHandler handler)
public CroppableImage getParent()
getParent
in interface com.vaadin.server.ClientConnector
getParent
in interface com.vaadin.shared.Connector
getParent
in class com.vaadin.server.AbstractExtension
protected SelectionArea AreaFromJSON(elemental.json.JsonObject json)
public void attach()
attach
in interface com.vaadin.server.ClientConnector
attach
in class com.vaadin.server.AbstractClientConnector
protected JCropState getState(boolean markAsDirty)
getState
in class com.vaadin.server.AbstractClientConnector
public JCropState getState()
getState
in class com.vaadin.server.AbstractJavaScriptExtension
protected Class<com.vaadin.ui.Image> getSupportedParentType()
getSupportedParentType
in class com.vaadin.server.AbstractExtension
public void setAspectRatio(double aspectRatio)
public void animateTo(SelectionArea area)
public boolean isCropVisible()
public void setCropVisible(boolean isVisible)
public void enable()
public void disable()
public void setSelectionStatusComponent(com.vaadin.ui.Component c)
public void setBackgroundColor(String color)
public void setBackgroundOpacity(double opacity)
public void setMinHeight(int height)
public void setMaxHeight(int height)
public void setMaxWidth(int width)
public void setMinWidth(int width)
public void setEnabled(boolean enabled)
public void invalidate()
public void setTrueHeight(int height)
public void setTrueWidth(int width)
public void select(SelectionArea area)
Copyright © 2017 Magnolia International Ltd.. All rights reserved.