ElegantJ Tables Java API Specification v1.1

com.elegantj.awt.table
Class TableCellResizeEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.elegantj.awt.table.TableCellResizeEvent
All Implemented Interfaces:
java.io.Serializable

public class TableCellResizeEvent
extends java.util.EventObject

TableCellResizeEvent is used to notify interested parties that state has changed in the event source

See Also:
Serialized Form

Field Summary
static int COLUMN_RESIZE
          COLUMN_RESIZE static int for the eventType
static int ROW_RESIZE
          ROW_RESIZE static int for the eventType
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TableCellResizeEvent(java.lang.Object source, int eventID, int index, int size)
          Constructs a TableCellResizeEvent object.
 
Method Summary
 int getEventID()
          Returns the eventID The possible values are ROW_RESIZE and COLUMN_RESIZE
 int getIndex()
          This method returns the value of the index of the resizing row or column
 int getSize()
          This method returns the value of the size of the resizing row or column if the currently the column is resizing it returns the width of the resizing column else if the currently the row is resizing it returns the height of the resizing row
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ROW_RESIZE

public static int ROW_RESIZE
ROW_RESIZE static int for the eventType


COLUMN_RESIZE

public static int COLUMN_RESIZE
COLUMN_RESIZE static int for the eventType

Constructor Detail

TableCellResizeEvent

public TableCellResizeEvent(java.lang.Object source,
                            int eventID,
                            int index,
                            int size)
Constructs a TableCellResizeEvent object.

Parameters:
source - the Object that is the source of the event
eventID - The type of the event either ROW_RESIZE or COLUMN_RESIZE
index - The index of the row or column
size - The width of the column or height of the row depending on the type
Method Detail

getIndex

public int getIndex()
This method returns the value of the index of the resizing row or column

Returns:
The index of the resizing row or column

getSize

public int getSize()
This method returns the value of the size of the resizing row or column if the currently the column is resizing it returns the width of the resizing column else if the currently the row is resizing it returns the height of the resizing row

Returns:
the size of the resizing row or column

getEventID

public int getEventID()
Returns the eventID The possible values are ROW_RESIZE and COLUMN_RESIZE


ElegantJ Tables Java API Specification v1.1

Submit a bug or feature

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjbeans.com
All Rights Reserved.