Class CmsRenameView

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.gwt.client.ui.rename.CmsRenameView
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 CmsRenameView extends com.google.gwt.user.client.ui.Composite
The dialog contents of the 'Rename' dialog.

  • Nested Class Summary

    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 CmsPushButton
    The Cancel button.
    protected com.google.gwt.user.client.ui.Panel
    The container for the resource info box.
    protected CmsTextBox
    The input field for the new name.
    protected com.google.gwt.user.client.ui.HasText
    The label for the input box.
    protected CmsPushButton
    The OK button.
    protected com.google.gwt.user.client.ui.HasText
    The label for the old name.
    protected com.google.gwt.user.client.ui.HasText
    The label containing the old name.

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

    DEBUG_ID_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
    CmsRenameView(org.opencms.gwt.shared.CmsRenameInfoBean renameInfo, com.google.gwt.user.client.rpc.AsyncCallback<String> renameCallback)
    Creates a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the buttons which should be inserted into the parent dialog.
    protected void
    onClickCancel(com.google.gwt.event.dom.client.ClickEvent e)
    Event handler for the Cancel button.
    protected void
    onClickOk(com.google.gwt.event.dom.client.ClickEvent e)
    Event handler for the OK button.
    void
    Sets the dialog in which this view is contained.

    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_cancelButton

      @UiField protected CmsPushButton m_cancelButton
      The Cancel button.
    • m_infoBoxContainer

      @UiField protected com.google.gwt.user.client.ui.Panel m_infoBoxContainer
      The container for the resource info box.
    • m_newNameInput

      @UiField protected CmsTextBox m_newNameInput
      The input field for the new name.
    • m_newNameLabel

      @UiField protected com.google.gwt.user.client.ui.HasText m_newNameLabel
      The label for the input box.
    • m_okButton

      @UiField protected CmsPushButton m_okButton
      The OK button.
    • m_oldNameLabel

      @UiField protected com.google.gwt.user.client.ui.HasText m_oldNameLabel
      The label for the old name.
    • m_oldNameValue

      @UiField protected com.google.gwt.user.client.ui.HasText m_oldNameValue
      The label containing the old name.
  • Constructor Details

    • CmsRenameView

      public CmsRenameView(org.opencms.gwt.shared.CmsRenameInfoBean renameInfo, com.google.gwt.user.client.rpc.AsyncCallback<String> renameCallback)
      Creates a new instance.

      Parameters:
      renameInfo - the information for the resource which is being renamed
      renameCallback - the callback which should be called when the resource has been successfully renamed
  • Method Details

    • getDialogButtons

      Gets the buttons which should be inserted into the parent dialog.

      Returns:
      the list of buttons for the parent dialog
    • setDialog

      public void setDialog(CmsPopup popup)
      Sets the dialog in which this view is contained.

      Parameters:
      popup - the dialog containing this view
    • onClickCancel

      @UiHandler("m_cancelButton") protected void onClickCancel(com.google.gwt.event.dom.client.ClickEvent e)
      Event handler for the Cancel button.

      Parameters:
      e - the click event
    • onClickOk

      @UiHandler("m_okButton") protected void onClickOk(com.google.gwt.event.dom.client.ClickEvent e)
      Event handler for the OK button.

      Parameters:
      e - the click event