Class CmsEditProperties.PropertyEditingContext

java.lang.Object
org.opencms.gwt.client.ui.contextmenu.CmsEditProperties.PropertyEditingContext
Enclosing class:
CmsEditProperties

Helper class which encapsulates the differences between the contexts where the property edit dialog is opened.

  • Field Details

  • Constructor Details

  • Method Details

    • allowCreateProperties

      public boolean allowCreateProperties()
      Returns true if the property definition button should be enabled.

      Returns:
      true if the user should be able to define new properties
    • createPropertyDefinitionButton

      Creates the property definition button.

      Returns:
      the property definition button
    • getDialog

      Gets the form dialog.

      Returns:
      the form dialog
    • getPropertySaver

      Gets the property saver.

      Returns:
      the property saver
    • initCloseHandler

      public void initCloseHandler()
      Initializes the close handler of the dialog.

    • isFocusNameField

      public boolean isFocusNameField()
      Return true if the file name field should be focused after opening the dialog.

      Returns:
      true if the file name field should be focused
    • setAllowCreateProperties

      public void setAllowCreateProperties(boolean allowCreateProperties)
      Enables / disables the 'define property' functionality.

      Parameters:
      allowCreateProperties - true if the user should be able to create new properties
    • setCancelHandler

      public void setCancelHandler(Runnable cancelHandler)
      Sets the cancel handler.

      Parameters:
      cancelHandler - the cancel handler
    • setDialog

      public void setDialog(CmsFormDialog formDialog)
      Sets the form dialog.

      Parameters:
      formDialog - the form dialog
    • setFocusNameField

      public void setFocusNameField(boolean focusNameField)
      Enables / disables focusing on the name field.
      Parameters:
      focusNameField - true if the file name field should be focused after opening the dialog
    • setFormHandler

      public void setFormHandler(I_CmsFormHandler formHandler)
      Sets the form handler.

      Parameters:
      formHandler - the form handler
    • setMultiFileNavigation

      Sets the file navigation object.

      Parameters:
      nav - the file navigation object
    • setPropertySaver

      public void setPropertySaver(I_CmsPropertySaver saver)
      Sets the property saver.

      Parameters:
      saver - the property saver
    • setRestart

      public void setRestart(Runnable command)
      Sets the restart command (used to open the property dialog again after a secondary dialog).
      Parameters:
      command - the restart command