Class CmsPropertyDialogExtensionConnector

java.lang.Object
com.vaadin.client.ui.AbstractConnector
com.vaadin.client.extensions.AbstractExtensionConnector
org.opencms.ui.client.CmsPropertyDialogExtensionConnector
All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler, com.vaadin.client.communication.StateChangeEvent.StateChangeHandler, com.vaadin.client.ServerConnector, com.vaadin.shared.communication.ClientRpc, com.vaadin.shared.Connector, Serializable, CmsEditProperties.I_MultiFileNavigation, org.opencms.ui.shared.rpc.I_CmsPropertyClientRpc

public class CmsPropertyDialogExtensionConnector extends com.vaadin.client.extensions.AbstractExtensionConnector implements org.opencms.ui.shared.rpc.I_CmsPropertyClientRpc, CmsEditProperties.I_MultiFileNavigation
Connector for the property dialog extension.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    class 
    Context menu handler.
    class 
    The property saver.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected List<String>
    Changed ids.
    protected com.google.gwt.user.client.rpc.AsyncCallback<Void>
    Callback to be called after the properties have been saved.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    close(long delayMillis)
    Disposes of the extension on the server side and notifies the server of which resources have been changed.
    void
     
    void
    editProperties(String editStructureId, boolean editName, boolean disablePrevNext)
     
    void
     
    protected void
    extend(com.vaadin.client.ServerConnector target)
     
    void
    requestNextFile(int offset, com.google.gwt.user.client.rpc.AsyncCallback<org.opencms.util.CmsUUID> callback)
    Requests the next / previous file id.
    void
     

    Methods inherited from class com.vaadin.client.extensions.AbstractExtensionConnector

    setParent

    Methods inherited from class com.vaadin.client.ui.AbstractConnector

    addStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, forceStateChange, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getRpcProxy, getState, getStateType, getTag, hasEventListener, init, isEnabled, onStateChanged, onUnregister, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, setTag, unregisterRpc, updateEnabledState

    Methods inherited from class java.lang.Object

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

    • m_changed

      protected List<String> m_changed
      Changed ids.
    • m_propertySaveCallback

      protected com.google.gwt.user.client.rpc.AsyncCallback<Void> m_propertySaveCallback
      Callback to be called after the properties have been saved.
  • Constructor Details

  • Method Details

    • confirmSaveForNew

      public void confirmSaveForNew()
      Specified by:
      confirmSaveForNew in interface org.opencms.ui.shared.rpc.I_CmsPropertyClientRpc
      See Also:
      • I_CmsPropertyClientRpc.confirmSaveForNew()
    • editProperties

      public void editProperties(String editStructureId, boolean editName, boolean disablePrevNext)
      Specified by:
      editProperties in interface org.opencms.ui.shared.rpc.I_CmsPropertyClientRpc
      See Also:
      • I_CmsPropertyClientRpc.editProperties(java.lang.String, boolean, boolean)
    • editPropertiesForNewResource

      public void editPropertiesForNewResource(String propertyDataString)
      Specified by:
      editPropertiesForNewResource in interface org.opencms.ui.shared.rpc.I_CmsPropertyClientRpc
      See Also:
      • I_CmsPropertyClientRpc.editPropertiesForNewResource(java.lang.String)
    • requestNextFile

      public void requestNextFile(int offset, com.google.gwt.user.client.rpc.AsyncCallback<org.opencms.util.CmsUUID> callback)
      Description copied from interface: CmsEditProperties.I_MultiFileNavigation
      Requests the next / previous file id.

      Specified by:
      requestNextFile in interface CmsEditProperties.I_MultiFileNavigation
      Parameters:
      offset - should be 1 for the next file, or -1 for the previous file
      callback - the callback to call with the id
      See Also:
    • sendNextId

      public void sendNextId(String id)
      Specified by:
      sendNextId in interface org.opencms.ui.shared.rpc.I_CmsPropertyClientRpc
      See Also:
      • I_CmsPropertyClientRpc.sendNextId(java.lang.String)
    • close

      protected void close(long delayMillis)
      Disposes of the extension on the server side and notifies the server of which resources have been changed.

      Parameters:
      delayMillis - the time to wait on the server before refreshing the view
    • extend

      protected void extend(com.vaadin.client.ServerConnector target)
      Specified by:
      extend in class com.vaadin.client.extensions.AbstractExtensionConnector
      See Also:
      • AbstractExtensionConnector.extend(com.vaadin.client.ServerConnector)