public class AbstractProposalSupport extends java.lang.Object implements IProposalSupport
| Constructor and Description |
|---|
AbstractProposalSupport() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
checkValueValid(java.lang.String text,
IProposal proposal,
IDirectEditingContext context)
This method will be called by clients many times to see if current value
is valid and could be set.
|
java.lang.String |
completeValue(java.lang.String value,
int caretPosition,
IProposal choosenValue,
IDirectEditingContext context)
Framework calls this method to let the feature calculate the new value.
|
IProposal[] |
getPossibleValues(IDirectEditingContext context)
This value will be used if the cell editor is a combo box.
|
IProposal[] |
getValueProposals(java.lang.String value,
int caretPosition,
IDirectEditingContext context)
This proposals will be used for the completion list of a simple text cell
editor.
|
void |
setValue(java.lang.String text,
IProposal proposal,
IDirectEditingContext context)
Set the new value.
|
public IProposal[] getPossibleValues(IDirectEditingContext context)
IProposalSupportgetPossibleValues in interface IProposalSupportcontext - the contextpublic java.lang.String completeValue(java.lang.String value,
int caretPosition,
IProposal choosenValue,
IDirectEditingContext context)
IProposalSupportcompleteValue in interface IProposalSupportvalue - current valuecaretPosition - current cursor positionchoosenValue - value choosen by usercontext - the contextpublic java.lang.String checkValueValid(java.lang.String text,
IProposal proposal,
IDirectEditingContext context)
IProposalSupportcheckValueValid in interface IProposalSupporttext - the value as textproposal - the value as proposalcontext - the contextpublic IProposal[] getValueProposals(java.lang.String value, int caretPosition, IDirectEditingContext context)
IProposalSupportgetValueProposals in interface IProposalSupportvalue - current valuecaretPosition - current cursor positioncontext - the contextpublic void setValue(java.lang.String text,
IProposal proposal,
IDirectEditingContext context)
IProposalSupportsetValue in interface IProposalSupporttext - the valueproposal - the selected proposalcontext - the context