|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.graphiti.func.AbstractProposalSupport
public class AbstractProposalSupport
Field Summary | |
---|---|
protected static IProposal[] |
EMPTY_PROPOSAL_ARRAY
|
Constructor Summary | |
---|---|
AbstractProposalSupport()
|
Method Summary | |
---|---|
String |
checkValueValid(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. |
String |
completeValue(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(String value,
int caretPosition,
IDirectEditingContext context)
This proposals will be used for the completion list of a simple text cell editor. |
void |
setValue(String text,
IProposal proposal,
IDirectEditingContext context)
Set the new value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final IProposal[] EMPTY_PROPOSAL_ARRAY
Constructor Detail |
---|
public AbstractProposalSupport()
Method Detail |
---|
public IProposal[] getPossibleValues(IDirectEditingContext context)
IProposalSupport
getPossibleValues
in interface IProposalSupport
context
- the context
public String completeValue(String value, int caretPosition, IProposal choosenValue, IDirectEditingContext context)
IProposalSupport
completeValue
in interface IProposalSupport
value
- current valuecaretPosition
- current cursor positionchoosenValue
- value choosen by usercontext
- the context
public String checkValueValid(String text, IProposal proposal, IDirectEditingContext context)
IProposalSupport
checkValueValid
in interface IProposalSupport
text
- the value as textproposal
- the value as proposalcontext
- the context
public IProposal[] getValueProposals(String value, int caretPosition, IDirectEditingContext context)
IProposalSupport
getValueProposals
in interface IProposalSupport
value
- current valuecaretPosition
- current cursor positioncontext
- the context
public void setValue(String text, IProposal proposal, IDirectEditingContext context)
IProposalSupport
setValue
in interface IProposalSupport
text
- the valueproposal
- the selected proposalcontext
- the context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |