borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.view 

HeaderEvent class

java.lang.Object
   +----java.util.EventObject
           +----borland.jbcl.util.DispatchableEvent
                   +----borland.jbcl.view.HeaderEvent

About the HeaderEvent class

Variables  Constructors  Properties  Methods  

Implements Serializable

Indicates that the user performed an action on a header, such as clicking or resizing.

See also: List of Matrix, grid, and header classes in the view package overview.


HeaderEvent variables

Variables implemented in this class

Variables implemented in java.util.EventObject

HeaderEvent constructors

HeaderEvent properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in borland.jbcl.util.DispatchableEvent

Properties implemented in java.lang.Object

Properties implemented in java.util.EventObject

HeaderEvent methods

Methods implemented in this class

Methods implemented in borland.jbcl.util.DispatchableEvent

Methods implemented in java.lang.Object


HeaderEvent variables

ITEM_CLICKED

  public static final int ITEM_CLICKED = 0
A header item was clicked.

START_MOVE

  public static final int START_MOVE = 1
A header item has started being moved.

START_RESIZE

  public static final int START_RESIZE = 4
A header item has started being resized.

STOP_MOVE

  public static final int STOP_MOVE = 3
A header item has stopped being moved.

STOP_RESIZE

  public static final int STOP_RESIZE = 6
A header item has finished being resized.

WHILE_MOVE

  public static final int WHILE_MOVE = 2
A header item is being moved.

WHILE_RESIZE

  public static final int WHILE_RESIZE = 5
A header item is being resized.


HeaderEvent constructors

HeaderEvent(java.lang.Object, int, int, int, int)

  public HeaderEvent(java.lang.Object source, int id, int index, int x, int y)
Constructs a HeaderEvent by calling jbcl.util.DispatchableEvent.DispatchableEvent(source).

HeaderEvent properties

ID

 public int getID()
Returns an integer that identifies the type of header event. The returned value represents one of the header event variables.

index

 public int getIndex()

x

 public int getX()

y

 public int getY()


HeaderEvent methods

dispatch(java.util.EventListener)

  public void dispatch(java.util.EventListener listener)
If ITEM_CLICKED, calls HeaderListener.headerItemClicked().
If STOP_MOVE, calls HeaderListener.headerItemMoving().
If STOP_RESIZE, calls HeaderListener.headerItemResizing().

Overrides: borland.jbcl.util.DispatchableEvent.dispatch(EventListener)

paramString()

  protected String paramString()
Appends the matrix-selection event object's parameter string to the parameter string of the superclass. The string that is appended is:
return "id=" + id + " index=" + index + " x=" + x + " y=" + y;

Overrides: borland.jbcl.util.DispatchableEvent.paramString()

See also: borland.jbcl.model.SelectionEvent.paramString()