|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDirectEditing
The Interface IDirectEditing.
| Field Summary | |
|---|---|
static int |
TYPE_CUSTOM
With this type the customers can provide their own cell editors for the direct editing mode. |
static int |
TYPE_DROPDOWN
combo box is wanted for editing. |
static int |
TYPE_DROPDOWN_READ_ONLY
read only combo box is wanted for editing. |
static int |
TYPE_MULTILINETEXT
multi line text box is wanted for editing. |
static int |
TYPE_NONE
no special UI is wanted for editing. |
static int |
TYPE_TEXT
text field is wanted for editing. |
| Method Summary | |
|---|---|
boolean |
canDirectEdit(IDirectEditingContext context)
Checks if the feature can perform direct editing on the context handed over. |
String |
checkValueValid(String value,
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,
String choosenValue,
IDirectEditingContext context)
Framework calls this method to let the feature calculate the new value. |
int |
getEditingType()
Framework calls this method to decide which UI to show up. |
String |
getInitialValue(IDirectEditingContext context)
Provides the initial value for the opened text editing UI component. |
String[] |
getPossibleValues(IDirectEditingContext context)
This value will be used if the cell editor is a combo box. |
IProposalSupport |
getProposalSupport()
The direct editing mode contains controls for code completion and the selection from a combo box. |
String[] |
getValueProposals(String value,
int caretPosition,
IDirectEditingContext context)
This proposals will be used for the completion list of a simple text cell editor. |
boolean |
isAutoCompletionEnabled()
Checks if auto completion is enabled. |
boolean |
isCompletionAvailable()
Checks if completion is available. |
void |
setValue(String value,
IDirectEditingContext context)
Set the new value. |
boolean |
stretchFieldToFitText()
Stretch input field to fit its contents. |
| Field Detail |
|---|
static final int TYPE_NONE
static final int TYPE_TEXT
static final int TYPE_MULTILINETEXT
static final int TYPE_DROPDOWN
static final int TYPE_DROPDOWN_READ_ONLY
static final int TYPE_CUSTOM
org.eclipse.graphiti.ui.platform.ICellEditorProvider
| Method Detail |
|---|
int getEditingType()
boolean canDirectEdit(IDirectEditingContext context)
context - the context
IFeature.canExecute(org.eclipse.graphiti.features.context.IContext)String getInitialValue(IDirectEditingContext context)
context - the context
String[] getPossibleValues(IDirectEditingContext context)
context - the context
String[] getValueProposals(String value,
int caretPosition,
IDirectEditingContext context)
value - current valuecaretPosition - current cursor positioncontext - the context
String completeValue(String value,
int caretPosition,
String choosenValue,
IDirectEditingContext context)
value - current valuecaretPosition - current cursor positionchoosenValue - value choosen by usercontext - the context
boolean isCompletionAvailable()
boolean isAutoCompletionEnabled()
boolean stretchFieldToFitText()
String checkValueValid(String value,
IDirectEditingContext context)
value - the valuecontext - the context
void setValue(String value,
IDirectEditingContext context)
value - the valuecontext - the contextIProposalSupport getProposalSupport()
If the customer wants to work with Objects he must provide an
implementation of IProposalSupport. In this case the following
methods of IDirectEditing are ignored:
* String checkValueValid(String value, IDirectEditingContext context);
* String completeValue(String value, int caretPosition, String choosenValue, IDirectEditingContext context);
* String[] getPossibleValues(IDirectEditingContext context);
* String[] getValueProposals(String value, int caretPosition, IDirectEditingContext context);
* void setValue(String value, IDirectEditingContext context);
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||