Package de.gebit.integrity.fixtures
Class CustomProposalProvider.CustomProposalDefinition
- java.lang.Object
-
- de.gebit.integrity.fixtures.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDisplayValue()
boolean
getDoPrefixFiltering()
java.lang.String
getHtmlDescription()
java.lang.String
getPlainDescription()
int
getPriority()
java.lang.String
getValue()
-
-
-
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 proposalaDisplayValue
- The value displayed to the user in the proposal list. Is optional; if not present, the value fromvalue
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 thevalue
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 proposalaDisplayValue
- The value displayed to the user in the proposal list. Is optional; if not present, the value fromvalue
is used.aDoPrefixFilteringFlag
- Whether this proposal shall be subject to prefix filtering (uses thevalue
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()
-
-