|
GEF v2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Responsible for providing one type of editing behavior to an EditPart. An editing behavior consists of one or more of the following:
getCommand(Request)
| Field Summary | |
static String |
COMPONENT_ROLE
|
static String |
CONNECTION_BENDPOINTS_ROLE
|
static String |
CONNECTION_ENDPOINTS_ROLE
|
static String |
CONNECTION_ROLE
|
static String |
CONTAINER_ROLE
|
static String |
DIRECT_EDIT_ROLE
|
static String |
GRAPHICAL_NODE_ROLE
|
static String |
LAYOUT_ROLE
|
static String |
NODE_ROLE
|
static String |
PRIMARY_DRAG_ROLE
|
static String |
SELECTION_FEEDBACK_ROLE
|
static String |
TREE_CONTAINER_ROLE
|
| Method Summary | |
void |
activate()
This policy will initialize and establish any necessary listeners. |
void |
deactivate()
This policy should shutdown and remove all listeners established in activate(). |
void |
eraseSourceFeedback(Request request)
Erases source feedback based on the given request. |
void |
eraseTargetFeedback(Request request)
Erases target feedback based on the given request. |
Command |
getCommand(Request request)
Returns the command for a given request, or null if the EditPolicy does not work with that request type. |
EditPart |
getTargetEditPart(Request request)
Returns the host EditPart if the EditPolicy works with the given request type, otherwise return null. |
void |
setHost(EditPart editpart)
Sets the host in which this EditPolicy is installed. |
void |
showSourceFeedback(Request request)
Shows or updates source feedback if the receiver works with the request type. |
void |
showTargetFeedback(Request request)
Shows or updates target feedback if the receiver works with the request type. |
boolean |
understandsRequest(Request request)
|
| Field Detail |
public static final String COMPONENT_ROLE
public static final String CONNECTION_ENDPOINTS_ROLE
public static final String CONNECTION_BENDPOINTS_ROLE
public static final String CONNECTION_ROLE
public static final String CONTAINER_ROLE
public static final String DIRECT_EDIT_ROLE
public static final String GRAPHICAL_NODE_ROLE
public static final String LAYOUT_ROLE
public static final String NODE_ROLE
public static final String PRIMARY_DRAG_ROLE
public static final String SELECTION_FEEDBACK_ROLE
public static final String TREE_CONTAINER_ROLE
| Method Detail |
public void activate()
EditPart.activate(),
deactivate(),
EditPart.installEditPolicy(Object, EditPolicy)public void deactivate()
activate().
deactivate() will be called either when the host is deactivated, or when
this policy is uninstalled from its host.EditPart.deactivate(),
activate(),
EditPart.removeEditPolicy(Object)public void eraseSourceFeedback(Request request)
public void eraseTargetFeedback(Request request)
public Command getCommand(Request request)
null is treated as a no-op by the caller, or a zero contribution.
The EditPolicy must return an UnexectuableCommand
if it wishes to prevent the operation from being performed.public EditPart getTargetEditPart(Request request)
null. For all practical uses, this method has
"boolean" behavior. It is possible, although rarely useful, to
return an EditPart other than the host.public void setHost(EditPart editpart)
public void showSourceFeedback(Request request)
public void showTargetFeedback(Request request)
public boolean understandsRequest(Request request)
|
GEF v2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||