com.levigo.jadice.swing.tool
Class Tool.ActivationRequest
java.lang.Object
com.levigo.jadice.swing.tool.Tool.ActivationRequest
- Enclosing class:
- Tool
public static class Tool.ActivationRequest
- extends Object
This class describes an auto-activation request issued by a tool in response to an event. Using
auto-activation requests, tools signal their readiness to be activated and perform some
meaningful task.
The task they intend to perform is detailed using the activity
parameter. The latter may be resolved using a resource bundle and presented - for instance - in
a status bar in order to provide feedback to the user. Further feedback may be provided by
supplying a Cursor
indicating the type of operation to be performed.
Field Summary |
static int |
DEFAULT_ACTIVATION_PRIORITY
This priority indicates that the Tool 's dispatch priority should be used to
prioritize the activation request. |
static int |
OVER_HANDLE_PRIORITY
The priority to be used to indicate that some action with a handle could be performed upon
activation. |
static int |
OVER_SELECTION_PRIORITY
The priority to be used to indicate that some action related to some kind of selection could
be performed upon activation. |
DEFAULT_ACTIVATION_PRIORITY
public static final int DEFAULT_ACTIVATION_PRIORITY
- This priority indicates that the
Tool
's dispatch priority should be used to
prioritize the activation request.
- See Also:
- Constant Field Values
OVER_HANDLE_PRIORITY
public static final int OVER_HANDLE_PRIORITY
- The priority to be used to indicate that some action with a handle could be performed upon
activation.
- See Also:
- Constant Field Values
OVER_SELECTION_PRIORITY
public static final int OVER_SELECTION_PRIORITY
- The priority to be used to indicate that some action related to some kind of selection could
be performed upon activation.
- See Also:
- Constant Field Values
Tool.ActivationRequest
public Tool.ActivationRequest(String activity)
Tool.ActivationRequest
public Tool.ActivationRequest(String activity,
Cursor cursor)
getActivity
public String getActivity()
getCursor
public Cursor getCursor()
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.