Class CustomProposalProvider.CustomProposalDefinition

  • Enclosing interface:
    CustomProposalProvider

    public static class CustomProposalProvider.CustomProposalDefinition
    extends java.lang.Object
    A container for the definition of one proposal.
    Author:
    Rene Schneider - initial API and implementation
    • Constructor Summary

      Constructors 
      Constructor Description
      CustomProposalDefinition​(java.lang.String aValue, java.lang.String aDisplayValue, java.lang.Integer aPriority, java.lang.Boolean aDoPrefixFilteringFlag)
      Creates a new instance.
      CustomProposalDefinition​(java.lang.String aValue, java.lang.String aDisplayValue, java.lang.String anHTMLDescription, java.lang.String aPlainDescription, java.lang.Integer aPriority, java.lang.Boolean aDoPrefixFilteringFlag)
      Creates a new instance.
    • Constructor Detail

      • CustomProposalDefinition

        public CustomProposalDefinition​(java.lang.String aValue,
                                        java.lang.String aDisplayValue,
                                        java.lang.String anHTMLDescription,
                                        java.lang.String aPlainDescription,
                                        java.lang.Integer aPriority,
                                        java.lang.Boolean aDoPrefixFilteringFlag)
        Creates a new instance.
        Parameters:
        aValue - The actual value that will be inserted when the user accepts the proposal
        aDisplayValue - The value displayed to the user in the proposal list. Is optional; if not present, the value from value is used.
        anHTMLDescription - The longer HTML description / help text which will appear in the content assist window. This is entirely optional.
        aPlainDescription - The longer plaintext description / help text which will appear in the content assist window. This is entirely optional.
        aDoPrefixFilteringFlag - Whether this proposal shall be subject to prefix filtering (uses the value and the input from the user to filter non-matching proposals out, like when the user typed "gr", the proposal "great" would be valid, but "bad" wouldn't). Defaults to true.
      • CustomProposalDefinition

        public CustomProposalDefinition​(java.lang.String aValue,
                                        java.lang.String aDisplayValue,
                                        java.lang.Integer aPriority,
                                        java.lang.Boolean aDoPrefixFilteringFlag)
        Creates a new instance.
        Parameters:
        aValue - The actual value that will be inserted when the user accepts the proposal
        aDisplayValue - The value displayed to the user in the proposal list. Is optional; if not present, the value from value is used.
        aDoPrefixFilteringFlag - Whether this proposal shall be subject to prefix filtering (uses the value and the input from the user to filter non-matching proposals out, like when the user typed "gr", the proposal "great" would be valid, but "bad" wouldn't). Defaults to true.
    • Method Detail

      • getValue

        public java.lang.String getValue()
      • getDisplayValue

        public java.lang.String getDisplayValue()
      • getHtmlDescription

        public java.lang.String getHtmlDescription()
      • getPlainDescription

        public java.lang.String getPlainDescription()
      • getPriority

        public int getPriority()
      • getDoPrefixFiltering

        public boolean getDoPrefixFiltering()