com.levigo.jadice.swing.tool
Class Tool.ActivationRequest

java.lang.Object
  extended by 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.
 
Constructor Summary
Tool.ActivationRequest(String activity)
           
Tool.ActivationRequest(String activity, Cursor cursor)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getActivity()
           
 Cursor getCursor()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

Tool.ActivationRequest

public Tool.ActivationRequest(String activity)

Tool.ActivationRequest

public Tool.ActivationRequest(String activity,
                              Cursor cursor)
Method Detail

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.