public class JCropField extends com.vaadin.ui.CustomField<SelectionArea>
CroppableImage
, manages the SelectionArea
as a value.com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
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 |
---|
JCropField() |
Modifier and Type | Method and Description |
---|---|
void |
addReleaseListener(CroppableImage.ReleaseListener listener) |
void |
addSelectionListener(CroppableImage.SelectionListener listener) |
void |
animateSelection(SelectionArea selectionArea) |
protected void |
doSetValue(SelectionArea value) |
protected CroppableImage |
getContent() |
com.vaadin.server.Resource |
getImageSource() |
SelectionArea |
getValue() |
protected com.vaadin.ui.Component |
initContent() |
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 |
setHeight(float height,
com.vaadin.server.Sizeable.Unit unit) |
void |
setImageSource(com.vaadin.server.Resource source) |
void |
setMaxHeight(int height) |
void |
setMaxWidth(int width) |
void |
setMinHeight(int height) |
void |
setMinWidth(int width) |
void |
setRatio(double ratio) |
void |
setStatusComponent(com.vaadin.ui.Component c) |
void |
setTrueHeight(int height) |
void |
setTrueWidth(int width) |
void |
setValue(SelectionArea newFieldValue) |
void |
setWidth(float width,
com.vaadin.server.Sizeable.Unit unit) |
attach, focus, getState, getState, getTabIndex, iterator, setFocusDelegate, setTabIndex
addValueChangeListener, createValueChange, getCustomAttributes, isDifferentValue, isReadOnly, isRequiredIndicatorVisible, readDesign, setReadOnly, setRequiredIndicatorVisible, setValue, writeDesign
addContextClickListener, addListener, addShortcutListener, addStyleName, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setHeight, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthUndefined
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addListener, addStyleName, addStyleNames, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible, writeDesign
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidthUndefined
forEach, spliterator
protected CroppableImage getContent()
getContent
in class com.vaadin.ui.CustomField<SelectionArea>
public void setStatusComponent(com.vaadin.ui.Component c)
public com.vaadin.server.Resource getImageSource()
public void setAspectRatio(double aspectRatio)
public void setCropVisible(boolean isVisible)
public void addSelectionListener(CroppableImage.SelectionListener listener)
public void addReleaseListener(CroppableImage.ReleaseListener listener)
public void setImageSource(com.vaadin.server.Resource source)
public void setBackgroundColor(String color)
public void setBackgroundOpacity(double opacity)
public void setMinHeight(int height)
public void setMaxHeight(int height)
public void setMinWidth(int width)
public void setMaxWidth(int width)
public void setRatio(double ratio)
public void select(SelectionArea area)
public void setWidth(float width, com.vaadin.server.Sizeable.Unit unit)
setWidth
in interface com.vaadin.server.Sizeable
setWidth
in class com.vaadin.ui.CustomField<SelectionArea>
public void setHeight(float height, com.vaadin.server.Sizeable.Unit unit)
setHeight
in interface com.vaadin.server.Sizeable
setHeight
in class com.vaadin.ui.CustomField<SelectionArea>
public void setValue(SelectionArea newFieldValue)
setValue
in interface com.vaadin.data.HasValue<SelectionArea>
setValue
in class com.vaadin.ui.AbstractField<SelectionArea>
public SelectionArea getValue()
protected void doSetValue(SelectionArea value)
doSetValue
in class com.vaadin.ui.AbstractField<SelectionArea>
protected com.vaadin.ui.Component initContent()
initContent
in class com.vaadin.ui.CustomField<SelectionArea>
public void setEnabled(boolean enabled)
setEnabled
in interface com.vaadin.ui.Component
setEnabled
in class com.vaadin.ui.AbstractComponent
public void animateSelection(SelectionArea selectionArea)
public void setTrueHeight(int height)
public void setTrueWidth(int width)
Copyright © 2020 Magnolia International Ltd.. All rights reserved.