Class TemplateProviderInlinePage


  • public class TemplateProviderInlinePage
    extends InlinePage
    Represents a template provider page in inline mode
    Since:
    4.2M1
    Version:
    $Id: 064ae6d3ead8cef8b8715d42968d2a40126502d5 $
    • Constructor Detail

      • TemplateProviderInlinePage

        public TemplateProviderInlinePage()
    • Method Detail

      • getTemplateName

        public String getTemplateName()
      • setTemplateName

        public void setTemplateName​(String value)
      • getTemplate

        public String getTemplate()
      • setTemplate

        public void setTemplate​(String value,
                                boolean waitForSuggestion)
        Set the template value.
        Parameters:
        value - the value to fill.
        waitForSuggestion - if true, it will wait for suggestion before choosing a value: it will avoid a StaleElementReferenceException if the suggestion takes a bit of time. If false, directly takes the typed text: this should be used if there is no suggestion.
        Since:
        11.5RC1
      • setTemplate

        public void setTemplate​(String value)
      • isPageTemplate

        public boolean isPageTemplate()
      • setPageTemplate

        public void setPageTemplate​(boolean isPageTemplate)
      • isTerminal

        public boolean isTerminal()
      • setTerminal

        public void setTerminal​(boolean isTerminal)
      • getVisibilityRestrictions

        public List<String> getVisibilityRestrictions()
        Returns:
        the list of spaces
        Since:
        8.2M3 (renamed from getSpaces)
      • setVisibilityRestrictions

        public void setVisibilityRestrictions​(List<String> spaces)
        Parameters:
        spaces - the list of spaces
        Since:
        8.2M3 (renamed from setSpaces)
      • setCreationRestrictions

        public void setCreationRestrictions​(List<String> spaces)
        Parameters:
        spaces - the list of spaces to set
        Since:
        8.3M2
      • getCreationRestrictions

        public List<String> getCreationRestrictions()
        Returns:
        the list of spaces
        Since:
        8.2M2
      • setActionOnCreate

        public void setActionOnCreate​(String actionName)
        The action to execute when the create button is pushed, you can configure here whether the new document is saved before it is opened for edition or not.
        Parameters:
        actionName - the behavior to have on create; valid values are "saveandedit" and "edit". See ACTION_EDITONLY and ACTION_SAVEANDEDIT
        Since:
        7.2M2
      • isCreationRestrictionsSuggestions

        public boolean isCreationRestrictionsSuggestions()
        Returns:
        true if the creationRestrictions are suggestions, false otherwise
        Since:
        8.3M2
      • setCreationRestrictionsSuggestions

        public void setCreationRestrictionsSuggestions​(boolean selected)
        Parameters:
        selected - true if the creationRestrictions should be suggestions, false otherwise
        Since:
        8.3M2