public class JCropField extends com.vaadin.v7.ui.CustomField<SelectionArea>
CroppableImage
, manages the SelectionArea
as a value.com.vaadin.v7.ui.AbstractField.FocusShortcut, com.vaadin.v7.ui.AbstractField.ReadOnlyStatusChangeEvent
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
com.vaadin.server.Sizeable.Unit
com.vaadin.v7.ui.Field.ValueChangeEvent
com.vaadin.v7.data.Buffered.SourceException
com.vaadin.v7.data.Property.Editor, com.vaadin.v7.data.Property.ReadOnlyException, com.vaadin.v7.data.Property.ReadOnlyStatusChangeListener, com.vaadin.v7.data.Property.ReadOnlyStatusChangeNotifier, com.vaadin.v7.data.Property.Transactional<T>, com.vaadin.v7.data.Property.ValueChangeListener, com.vaadin.v7.data.Property.ValueChangeNotifier, com.vaadin.v7.data.Property.Viewer
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 CroppableImage |
getContent() |
com.vaadin.server.Resource |
getImageSource() |
Class<? extends SelectionArea> |
getType() |
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, getTabIndex, iterator, setFocusDelegate, setTabIndex
addListener, addListener, addReadOnlyStatusChangeListener, addValidator, addValueChangeListener, beforeClientResponse, clear, commit, detach, discard, fireReadOnlyStatusChange, fireValueChange, getConversionError, getConversionError, getConvertedValue, getConverter, getCurrentBufferedSourceException, getCustomAttributes, getErrorMessage, getInternalValue, getModelType, getPropertyDataSource, getRequiredError, getState, getState, getValidators, getValue, isBuffered, isEmpty, isInvalidAllowed, isInvalidCommitted, isModified, isReadOnly, isRequired, isValid, isValidationVisible, readDesign, readOnlyStatusChange, removeAllValidators, removeListener, removeListener, removeReadOnlyStatusChangeListener, removeValidator, removeValueChangeListener, setBuffered, setConversionError, setConvertedValue, setConverter, setConverter, setCurrentBufferedSourceException, setInternalValue, setInvalidAllowed, setInvalidCommitted, setLocale, setPropertyDataSource, setReadOnly, setRequired, setRequiredError, setValidationVisible, setValue, setValue, shouldHideErrors, validate, validate, valueChange, writeDesign
getExplicitImmediateValue, isImmediate, setImmediate
addContextClickListener, addListener, addShortcutListener, addStyleName, findAncestor, fireComponentErrorEvent, fireComponentEvent, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isRequiredIndicatorVisible, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setHeight, setHeightUndefined, setIcon, setId, setParent, setPrimaryStyleName, setRequiredIndicatorVisible, 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.v7.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.v7.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.v7.ui.CustomField<SelectionArea>
public void setValue(SelectionArea newFieldValue) throws com.vaadin.v7.data.Property.ReadOnlyException, com.vaadin.v7.data.util.converter.Converter.ConversionException
setValue
in interface com.vaadin.v7.data.Property<SelectionArea>
setValue
in class com.vaadin.v7.ui.AbstractField<SelectionArea>
com.vaadin.v7.data.Property.ReadOnlyException
com.vaadin.v7.data.util.converter.Converter.ConversionException
protected com.vaadin.ui.Component initContent()
initContent
in class com.vaadin.v7.ui.CustomField<SelectionArea>
public Class<? extends SelectionArea> getType()
getType
in interface com.vaadin.v7.data.Property<SelectionArea>
getType
in class com.vaadin.v7.ui.AbstractField<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 © 2019 Magnolia International Ltd.. All rights reserved.