info.magnolia.ui.vaadin.editor
Class JCropField

java.lang.Object
  extended by com.vaadin.server.AbstractClientConnector
      extended by com.vaadin.ui.AbstractComponent
          extended by com.vaadin.ui.AbstractField<T>
              extended by com.vaadin.ui.CustomField<SelectionArea>
                  extended by info.magnolia.ui.vaadin.editor.JCropField
All Implemented Interfaces:
com.vaadin.data.Buffered, com.vaadin.data.BufferedValidatable, com.vaadin.data.Property<SelectionArea>, com.vaadin.data.Property.Editor, com.vaadin.data.Property.ReadOnlyStatusChangeListener, com.vaadin.data.Property.ReadOnlyStatusChangeNotifier, com.vaadin.data.Property.ValueChangeListener, com.vaadin.data.Property.ValueChangeNotifier, com.vaadin.data.Property.Viewer, com.vaadin.data.Validatable, com.vaadin.event.Action.ShortcutNotifier, com.vaadin.event.MethodEventSource, com.vaadin.server.ClientConnector, com.vaadin.server.Sizeable, com.vaadin.shared.Connector, com.vaadin.ui.Component, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Field<SelectionArea>, com.vaadin.ui.HasComponents, Serializable, Iterable<com.vaadin.ui.Component>

public class JCropField
extends com.vaadin.ui.CustomField<SelectionArea>

Field that wraps A CroppableImage, manages the SelectionArea as a value.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.vaadin.ui.AbstractField
com.vaadin.ui.AbstractField.FocusShortcut, com.vaadin.ui.AbstractField.ReadOnlyStatusChangeEvent
 
Nested classes/interfaces inherited from interface com.vaadin.ui.HasComponents
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
 
Nested classes/interfaces inherited from interface com.vaadin.ui.Component
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
 
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
 
Nested classes/interfaces inherited from interface com.vaadin.server.Sizeable
com.vaadin.server.Sizeable.Unit
 
Nested classes/interfaces inherited from interface com.vaadin.ui.Field
com.vaadin.ui.Field.ValueChangeEvent
 
Nested classes/interfaces inherited from interface com.vaadin.data.Buffered
com.vaadin.data.Buffered.SourceException
 
Nested classes/interfaces inherited from interface com.vaadin.data.Property
com.vaadin.data.Property.Editor, com.vaadin.data.Property.ReadOnlyException, com.vaadin.data.Property.ReadOnlyStatusChangeListener, com.vaadin.data.Property.ReadOnlyStatusChangeNotifier, com.vaadin.data.Property.Transactional<T>, com.vaadin.data.Property.ValueChangeListener, com.vaadin.data.Property.ValueChangeNotifier, com.vaadin.data.Property.Viewer
 
Field Summary
 
Fields inherited from interface com.vaadin.server.Sizeable
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
 
Constructor Summary
JCropField()
           
 
Method Summary
 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)
           
 
Methods inherited from class com.vaadin.ui.CustomField
attach, iterator
 
Methods inherited from class com.vaadin.ui.AbstractField
addListener, addListener, addReadOnlyStatusChangeListener, addValidator, addValueChangeListener, beforeClientResponse, commit, detach, discard, fireReadOnlyStatusChange, fireValueChange, focus, getConversionError, getConversionError, getConvertedValue, getConverter, getCurrentBufferedSourceException, getErrorMessage, getInternalValue, getModelType, getPropertyDataSource, getRequiredError, getState, getState, getTabIndex, getValidators, getValue, isBuffered, isEmpty, isInvalidAllowed, isInvalidCommitted, isModified, isReadOnly, isRequired, isValid, isValidationVisible, readOnlyStatusChange, removeAllValidators, removeListener, removeListener, removeReadOnlyStatusChangeListener, removeValidator, removeValueChangeListener, setBuffered, setConversionError, setConvertedValue, setConverter, setConverter, setCurrentBufferedSourceException, setInternalValue, setInvalidAllowed, setInvalidCommitted, setLocale, setPropertyDataSource, setReadOnly, setRequired, setRequiredError, setTabIndex, setValidationVisible, setValue, shouldHideErrors, toString, validate, validate, valueChange
 
Methods inherited from class com.vaadin.ui.AbstractComponent
addListener, addShortcutListener, addStyleName, findAncestor, fireComponentErrorEvent, fireComponentEvent, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isConnectorEnabled, isEnabled, isImmediate, isVisible, removeListener, removeShortcutListener, removeStyleName, setCaption, setComponentError, setData, setDebugId, setDescription, setHeight, setIcon, setId, setImmediate, setParent, setPrimaryStyleName, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth
 
Methods inherited from class com.vaadin.server.AbstractClientConnector
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hasListeners, isAttached, markAsDirty, markAsDirtyRecursive, registerRpc, 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, wait, wait, wait
 
Methods inherited from interface com.vaadin.ui.Component
addListener, addStyleName, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible
 
Methods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
 
Methods inherited from interface com.vaadin.shared.Connector
getConnectorId
 
Methods inherited from interface com.vaadin.server.Sizeable
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setSizeFull, setSizeUndefined, setWidth
 
Methods inherited from interface com.vaadin.event.Action.ShortcutNotifier
addShortcutListener, removeShortcutListener
 

Constructor Detail

JCropField

public JCropField()
Method Detail

getContent

protected CroppableImage getContent()
Overrides:
getContent in class com.vaadin.ui.CustomField<SelectionArea>

setStatusComponent

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

getImageSource

public com.vaadin.server.Resource getImageSource()

setAspectRatio

public void setAspectRatio(double aspectRatio)

setCropVisible

public void setCropVisible(boolean isVisible)

addSelectionListener

public void addSelectionListener(CroppableImage.SelectionListener listener)

addReleaseListener

public void addReleaseListener(CroppableImage.ReleaseListener listener)

setImageSource

public void setImageSource(com.vaadin.server.Resource source)

setBackgroundColor

public void setBackgroundColor(String color)

setBackgroundOpacity

public void setBackgroundOpacity(double opacity)

setMinHeight

public void setMinHeight(int height)

setMaxHeight

public void setMaxHeight(int height)

setMinWidth

public void setMinWidth(int width)

setMaxWidth

public void setMaxWidth(int width)

setRatio

public void setRatio(double ratio)

select

public void select(SelectionArea area)

setWidth

public void setWidth(float width,
                     com.vaadin.server.Sizeable.Unit unit)
Specified by:
setWidth in interface com.vaadin.server.Sizeable
Overrides:
setWidth in class com.vaadin.ui.CustomField<SelectionArea>

setHeight

public void setHeight(float height,
                      com.vaadin.server.Sizeable.Unit unit)
Specified by:
setHeight in interface com.vaadin.server.Sizeable
Overrides:
setHeight in class com.vaadin.ui.CustomField<SelectionArea>

setValue

public void setValue(SelectionArea newFieldValue)
              throws com.vaadin.data.Property.ReadOnlyException,
                     com.vaadin.data.util.converter.Converter.ConversionException
Specified by:
setValue in interface com.vaadin.data.Property<SelectionArea>
Overrides:
setValue in class com.vaadin.ui.AbstractField<SelectionArea>
Throws:
com.vaadin.data.Property.ReadOnlyException
com.vaadin.data.util.converter.Converter.ConversionException

initContent

protected com.vaadin.ui.Component initContent()
Specified by:
initContent in class com.vaadin.ui.CustomField<SelectionArea>

getType

public Class<? extends SelectionArea> getType()
Specified by:
getType in interface com.vaadin.data.Property<SelectionArea>
Specified by:
getType in class com.vaadin.ui.AbstractField<SelectionArea>

setEnabled

public void setEnabled(boolean enabled)
Specified by:
setEnabled in interface com.vaadin.ui.Component
Overrides:
setEnabled in class com.vaadin.ui.AbstractComponent

animateSelection

public void animateSelection(SelectionArea selectionArea)

setTrueHeight

public void setTrueHeight(int height)

setTrueWidth

public void setTrueWidth(int width)


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