JIDE 3.5.15

com.jidesoft.paging
Class PageNavigationEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.jidesoft.paging.PageNavigationEvent
All Implemented Interfaces:
Serializable

public class PageNavigationEvent
extends EventObject

An EventObject that adds support for PageTableModel objects as the event source.

See Also:
Serialized Form

Field Summary
static int CURRENT_PAGE_CHANGED
          This event is delivered when the page index changes.
static int PAGE_COUNT_CHANGED
          This event is delivered when total page count changes
static int PAGE_NAVIGATION_EVENT_FIRST
          The first number in the range of IDs used for AbstractPage events.
static int PAGE_NAVIGATION_EVENT_LAST
          The last number in the range of IDs used for AbstractPage events.
static int PAGE_SIZE_CHANGED
          This event is delivered when the page size changes.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PageNavigationEvent(Object source, int id, int oldValue, int newValue)
          Constructs an AbstractPageEvent object.
 
Method Summary
 int getID()
          Returns the event type.
 int getNewValue()
          Gets the new value associated with this event.
 int getOldValue()
          Gets the old value associated with this event.
 String paramString()
          Returns a parameter string identifying this event.
 String toString()
           
 
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

PAGE_NAVIGATION_EVENT_FIRST

public static final int PAGE_NAVIGATION_EVENT_FIRST
The first number in the range of IDs used for AbstractPage events.

See Also:
Constant Field Values

PAGE_NAVIGATION_EVENT_LAST

public static final int PAGE_NAVIGATION_EVENT_LAST
The last number in the range of IDs used for AbstractPage events.

See Also:
Constant Field Values

PAGE_COUNT_CHANGED

public static final int PAGE_COUNT_CHANGED
This event is delivered when total page count changes

See Also:
Constant Field Values

PAGE_SIZE_CHANGED

public static final int PAGE_SIZE_CHANGED
This event is delivered when the page size changes.

See Also:
Constant Field Values

CURRENT_PAGE_CHANGED

public static final int CURRENT_PAGE_CHANGED
This event is delivered when the page index changes.

See Also:
Constant Field Values
Constructor Detail

PageNavigationEvent

public PageNavigationEvent(Object source,
                           int id,
                           int oldValue,
                           int newValue)
Constructs an AbstractPageEvent object.

Parameters:
source - the AbstractPage object that originated the event
id - an integer indicating the type of event
oldValue - the old value associated with this event.
newValue - the new value associated with this event.
Method Detail

getID

public int getID()
Returns the event type.

Returns:
event id.

getOldValue

public int getOldValue()
Gets the old value associated with this event.

Returns:
the old value associated with this event.

getNewValue

public int getNewValue()
Gets the new value associated with this event.

Returns:
the new value associated with this event.

paramString

public String paramString()
Returns a parameter string identifying this event. This method is useful for event logging and for debugging.

Returns:
a string identifying the event and its attributes

toString

public String toString()
Overrides:
toString in class EventObject

JIDE 3.5.15