Class ApplicationClassEditPage


  • public class ApplicationClassEditPage
    extends ApplicationEditPage
    Represents the actions available when editing the application class. This is also the second step of the App Within Minutes wizard, in which the application structure defined.
    Since:
    4.2M1
    Version:
    $Id: e0765a522512f35f31868f23d49a760d089cd15c $
    • Field Detail

      • EMPTY_CANVAS_HINT

        public static final String EMPTY_CANVAS_HINT
        The message displayed when the canvas is empty.
        Since:
        13.3RC1, 12.10.6
        See Also:
        Constant Field Values
    • Constructor Detail

      • ApplicationClassEditPage

        public ApplicationClassEditPage()
        Default constructor which waits on xaction_save button.
    • Method Detail

      • clickNextStep

        public ApplicationTemplateProviderEditPage clickNextStep()
        Clicks on the Next Step button.
        Returns:
        the page that represents the next step of the App Within Minutes wizard
      • clickPreviousStep

        public ApplicationCreatePage clickPreviousStep()
        Clicks on the Previous Step button.
        Returns:
        the page that represents the previous step of the App Within Minutes wizard
      • hasPreviousStep

        public boolean hasPreviousStep()
        Returns:
        true if the Previous Step button is present, false otherwise
      • addField

        public ClassFieldEditPane addField​(String fieldType)
        Drags a field of the specified type from the field palette to the field canvas.
        Parameters:
        fieldType - the type of field to add, as displayed on the field palette
        Returns:
        the newly added field page object
      • moveFieldBefore

        public void moveFieldBefore​(String fieldToMove,
                                    String beforeField)
        Moves the class field specified by the first parameter before the class field specified by the second parameter
        Parameters:
        fieldToMove - the class field to be moved
        beforeField - the class field before which to insert the field being moved
      • setUpdateClassSheet

        public void setUpdateClassSheet​(boolean update)
        Sets whether the class sheet should be updated or not.
        Parameters:
        update - true to update the class sheet, false otherwise
      • goToEditor

        public static ApplicationClassEditPage goToEditor​(org.xwiki.model.reference.EntityReference reference)
        Opens an AWM class editor at the provided document location.
        Parameters:
        reference - the location of the document
        Returns:
        the corresponding AWM class editor page object
        Since:
        13.2, 12.10.6
      • createNewApplication

        public static ApplicationClassEditPage createNewApplication​(String appName)
        Creates a new application with the given name.
        Parameters:
        appName - the application name
        Returns:
        the corresponding page object
        Since:
        13.2, 12.10.6