JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table
Class JCScrollEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.klg.jclass.table.JCScrollEvent
All Implemented Interfaces:
Serializable

public class JCScrollEvent
extends EventObject

The event posted before and after the table is scrolled.

See Also:
JCTable.addScrollListener(com.klg.jclass.table.JCScrollListener), JCScrollAdapter, JCScrollListener, Serialized Form

Field Summary
protected  Adjustable adjustable
           
static int AFTER_SCROLL
           
protected  int direction
           
protected  AdjustmentEvent event
           
static int SCROLL
           
protected  int type
           
protected  int value
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
JCScrollEvent(Object source, int type, Adjustable adjustable, int direction, int value, AdjustmentEvent event)
           
 
Method Summary
 Adjustable getAdjustable()
          Gets the affected adjustable object.
 int getDirection()
          Gets the scrolling direction.
 AdjustmentEvent getEvent()
          Gets the event which initiated the action.
 int getType()
          Gets the event type.
 int getValue()
          Gets the scrollbar's current value.
 void setValue(int value)
          Sets the scrollbar's current value.
 String toString()
          Returns a String representation of the event.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SCROLL

public static final int SCROLL
See Also:
Constant Field Values

AFTER_SCROLL

public static final int AFTER_SCROLL
See Also:
Constant Field Values

adjustable

protected Adjustable adjustable

type

protected int type

value

protected int value

event

protected AdjustmentEvent event

direction

protected int direction
Constructor Detail

JCScrollEvent

public JCScrollEvent(Object source,
                     int type,
                     Adjustable adjustable,
                     int direction,
                     int value,
                     AdjustmentEvent event)
Method Detail

getAdjustable

public Adjustable getAdjustable()
Gets the affected adjustable object.

Returns:

getDirection

public int getDirection()
Gets the scrolling direction. One of Adjustable.HORIZONTAL or Adjustable.VERTICAL.

Returns:

getEvent

public AdjustmentEvent getEvent()
Gets the event which initiated the action.

Returns:

getType

public int getType()
Gets the event type.

Returns:

getValue

public int getValue()
Gets the scrollbar's current value.

Returns:

setValue

public void setValue(int value)
Sets the scrollbar's current value.

Parameters:
value -

toString

public String toString()
Returns a String representation of the event.

Overrides:
toString in class EventObject
Returns:
String representation of the event

Copyright © 2004 Quest Software Inc..
All rights reserved.