Class CmsImageInfoDisplay

java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.opencms.ade.galleries.client.preview.ui.CmsImageInfoDisplay
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget

public class CmsImageInfoDisplay extends com.google.gwt.user.client.ui.Composite
Widget for displaying image information.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static interface 
     

    Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

    com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected com.google.gwt.user.client.ui.Label
    Label.
    protected com.google.gwt.user.client.ui.Label
    The format label.
    protected com.google.gwt.user.client.ui.Label
    The path label.
    protected com.google.gwt.user.client.ui.Label
    Label.
    protected com.google.gwt.user.client.ui.Label
    The type label.
    protected com.google.gwt.user.client.ui.Label
    Label.
    protected com.google.gwt.user.client.ui.Label
    The format label.
    protected com.google.gwt.user.client.ui.Label
    The path label.
    protected com.google.gwt.user.client.ui.Label
    Label.
    protected com.google.gwt.user.client.ui.Label
    The type label.
    protected CmsPushButton
    Button for removing crop.
    protected CmsPushButton
    Button for removing focal point.

    Fields inherited from class com.google.gwt.user.client.ui.UIObject

    DEBUG_ID_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
    CmsImageInfoDisplay(Runnable removeCropAction, Runnable removePointAction)
    The constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    fillContent(org.opencms.ade.galleries.shared.CmsResourceInfoBean infoBean, String crop, String point)
    Fills the contend data.
    void
    setCropFormat(String cropFormat)
    Sets the crop format.
    void
    setFocalPoint(String focalPoint)
    Sets the focal point.

    Methods inherited from class com.google.gwt.user.client.ui.Composite

    claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget

    Methods inherited from class com.google.gwt.user.client.ui.Widget

    addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents

    Methods inherited from class com.google.gwt.user.client.ui.UIObject

    addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • m_displayCropFormat

      @UiField protected com.google.gwt.user.client.ui.Label m_displayCropFormat
      Label.
    • m_displayFormat

      @UiField protected com.google.gwt.user.client.ui.Label m_displayFormat
      The format label.
    • m_displayPath

      @UiField protected com.google.gwt.user.client.ui.Label m_displayPath
      The path label.
    • m_displayPoint

      @UiField protected com.google.gwt.user.client.ui.Label m_displayPoint
      Label.
    • m_displayType

      @UiField protected com.google.gwt.user.client.ui.Label m_displayType
      The type label.
    • m_labelCropFormat

      @UiField protected com.google.gwt.user.client.ui.Label m_labelCropFormat
      Label.
    • m_labelFormat

      @UiField protected com.google.gwt.user.client.ui.Label m_labelFormat
      The format label.
    • m_labelPath

      @UiField protected com.google.gwt.user.client.ui.Label m_labelPath
      The path label.
    • m_labelPoint

      @UiField protected com.google.gwt.user.client.ui.Label m_labelPoint
      Label.
    • m_labelType

      @UiField protected com.google.gwt.user.client.ui.Label m_labelType
      The type label.
    • m_removeCrop

      @UiField protected CmsPushButton m_removeCrop
      Button for removing crop.
    • m_removePoint

      @UiField protected CmsPushButton m_removePoint
      Button for removing focal point.
  • Constructor Details

    • CmsImageInfoDisplay

      public CmsImageInfoDisplay(Runnable removeCropAction, Runnable removePointAction)
      The constructor.

      Parameters:
      removeCropAction - action to remove the cropping
      removePointAction - action to remove the image point
  • Method Details

    • fillContent

      public void fillContent(org.opencms.ade.galleries.shared.CmsResourceInfoBean infoBean, String crop, String point)
      Fills the contend data.

      Parameters:
      infoBean - the image info bean
      crop - the cropping text
      point - the focal point text
    • setCropFormat

      public void setCropFormat(String cropFormat)
      Sets the crop format.

      Parameters:
      cropFormat - the crop format
    • setFocalPoint

      public void setFocalPoint(String focalPoint)
      Sets the focal point.

      Parameters:
      focalPoint - the focal point