info.magnolia.ui.vaadin.editor
Class CroppableImage

java.lang.Object
  extended by com.vaadin.server.AbstractClientConnector
      extended by com.vaadin.ui.AbstractComponent
          extended by com.vaadin.ui.AbstractEmbedded
              extended by com.vaadin.ui.Image
                  extended by info.magnolia.ui.vaadin.editor.CroppableImage
All Implemented Interfaces:
com.vaadin.event.MethodEventSource, com.vaadin.server.ClientConnector, com.vaadin.server.Sizeable, com.vaadin.shared.Connector, com.vaadin.ui.Component, JCropHandler, Serializable

public final class CroppableImage
extends com.vaadin.ui.Image
implements JCropHandler

Image extended with JCrop.

See Also:
Serialized Form

Nested Class Summary
static class CroppableImage.JCropEvent
          JCropEvent.
static class CroppableImage.JCropReleaseEvent
          JCropReleaseEvent.
static class CroppableImage.JCropSelectionEvent
          JCropSelectionEvent.
static interface CroppableImage.ReleaseListener
          ReleaseListener.
static interface CroppableImage.SelectionListener
          SelectionListener.
 
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
 
Field Summary
 
Fields inherited from class com.vaadin.ui.Image
rpc
 
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
CroppableImage()
           
 
Method Summary
 void addReleaseListener(CroppableImage.ReleaseListener listener)
           
 void addSelectionListener(CroppableImage.SelectionListener listener)
           
 void addStyleName(String style)
           
 void fireEvent(EventObject event)
           
 JCrop getJcrop()
           
 void handleRelease()
           
 void handleSelection(SelectionArea area)
           
 void removeReleaseListener(CroppableImage.ReleaseListener listener)
           
 void removeSelectionListener(CroppableImage.SelectionListener listener)
           
 void removeStyleName(String style)
           
 void setHeight(float height, com.vaadin.server.Sizeable.Unit unit)
           
 void setWidth(float width, com.vaadin.server.Sizeable.Unit unit)
           
 
Methods inherited from class com.vaadin.ui.Image
addClickListener, addListener, getState, removeClickListener, removeListener
 
Methods inherited from class com.vaadin.ui.AbstractEmbedded
getAlternateText, getSource, setAlternateText, setSource
 
Methods inherited from class com.vaadin.ui.AbstractComponent
addListener, addShortcutListener, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getState, getStyleName, getWidth, getWidthUnits, isConnectorEnabled, isEnabled, isImmediate, isReadOnly, isVisible, removeListener, removeShortcutListener, setCaption, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth
 
Methods inherited from class com.vaadin.server.AbstractClientConnector
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, 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, toString, wait, wait, wait
 
Methods inherited from interface com.vaadin.ui.Component
getUI
 
Methods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
 
Methods inherited from interface com.vaadin.shared.Connector
getConnectorId
 

Constructor Detail

CroppableImage

public CroppableImage()
Method Detail

getJcrop

public JCrop getJcrop()

fireEvent

public void fireEvent(EventObject event)
Overrides:
fireEvent in class com.vaadin.server.AbstractClientConnector

addSelectionListener

public void addSelectionListener(CroppableImage.SelectionListener listener)
Specified by:
addSelectionListener in interface JCropHandler

removeSelectionListener

public void removeSelectionListener(CroppableImage.SelectionListener listener)
Specified by:
removeSelectionListener in interface JCropHandler

addReleaseListener

public void addReleaseListener(CroppableImage.ReleaseListener listener)
Specified by:
addReleaseListener in interface JCropHandler

removeReleaseListener

public void removeReleaseListener(CroppableImage.ReleaseListener listener)
Specified by:
removeReleaseListener in interface JCropHandler

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.AbstractComponent

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.AbstractComponent

addStyleName

public void addStyleName(String style)
Specified by:
addStyleName in interface com.vaadin.ui.Component
Overrides:
addStyleName in class com.vaadin.ui.AbstractComponent

removeStyleName

public void removeStyleName(String style)
Specified by:
removeStyleName in interface com.vaadin.ui.Component
Overrides:
removeStyleName in class com.vaadin.ui.AbstractComponent

handleSelection

public void handleSelection(SelectionArea area)
Specified by:
handleSelection in interface JCropHandler

handleRelease

public void handleRelease()
Specified by:
handleRelease in interface JCropHandler


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