borland Packages Class Hierarchy jbcl.view Package Index
java.lang.Object +----java.util.EventObject +----borland.jbcl.util.DispatchableEvent +----borland.jbcl.view.HeaderEvent
Variables Constructors Properties Methods
Implements Serializable
A HeaderEvent object is created whenever a header event occurs. Header events occur when an item is clicked within the header, a cell is moved, or a cell is resized.
The id property specifies what created the event. The index property identifies the cell where the event occurred, and the x and y properties locate the exact spot within the cell where the event occurred.
public static final int ITEM_CLICKED = 0A header item was clicked.
public static final int START_MOVE = 1A header cell has begun moving.
public static final int START_RESIZE = 4A header cell has begun resizing.
public static final int STOP_MOVE = 3A header cell stopped moving.
public static final int STOP_RESIZE = 6A header cell has completed resizing.
public static final int WHILE_MOVE = 2A header cell is being moved.
public static final int WHILE_RESIZE = 5A header cell is being resized.
public HeaderEvent(java.lang.Object source, int id, int index, int x, int y)Constructs a HeaderEvent by calling jbcl.util.DispatchableEvent.DispatchableEvent(source) and passing along the specified source of the event, the event ID, the cell where the event occurred, and the position within the cell where the event occurred.
Parameters:
public int getID()Returns an integer that identifies the type of header event. The returned value represents one of the header event variables.
public int getIndex()Returns the position of the cell in the header where the event occurred. A returned value of 0 indicates the first cell.
public int getX()Returns the x-coordinate of the location within the cell where the event occurred. For example, the location of a mouse click would have an x- and a y- coordinate.
public int getY()Returns the y-coordinate of the location within the cell where the event occurred. For example, the location of a mouse click would have an x- and a y- coordinate.
public void dispatch(java.util.EventListener listener)If ITEM_CLICKED, calls HeaderListener.headerItemClicked().
Overrides: borland.jbcl.util.DispatchableEvent.dispatch(EventListener)
protected String paramString()Appends the header event object's parameter string to the parameter string of the superclass. The string that is appended is:
"id=" + id + " index=" + index + " x=" + x + " y=" + y;
Overrides: borland.jbcl.util.DispatchableEvent.paramString()
See also: borland.jbcl.model.SelectionEvent.paramString()