JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table
Class JCResizeCellEvent

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

public class JCResizeCellEvent
extends EventObject

The event posted as a user resizes a row and/or column.

See Also:
JCTable.addResizeCellListener(com.klg.jclass.table.JCResizeCellListener), JCResizeCellAdapter, JCResizeCellListener, Serialized Form

Field Summary
static int AFTER_RESIZE
           
static int BEFORE_RESIZE
           
protected  boolean cancelled
           
protected  int column
           
protected  int current_column_width
           
protected  int current_row_height
           
protected  int new_column_width
           
protected  int new_row_height
           
static int RESIZE
           
static int RESIZE_DRAG
           
protected  int row
           
protected  int type
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
JCResizeCellEvent(Object source, int type, int row, int column, int current_width, int current_height)
           
 
Method Summary
 int getColumn()
          Gets the column being resized.
 int getCurrentColumnWidth()
          Gets the current column width.
 int getCurrentRowHeight()
          Gets the current row height.
 int getNewColumnWidth()
          Gets the new column width.
 int getNewRowHeight()
          Gets the new row height.
 int getRow()
          Gets the row being resized.
 int getType()
          Gets the event type.
 boolean isCancelled()
          Gets the Cancelled value.
 void setCancelled(boolean value)
          Determines whether to allow an interactive resize (default is true).
 void setNewColumnWidth(int value)
          Sets the new column width.
 void setNewRowHeight(int value)
          Sets the new row height.
 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

BEFORE_RESIZE

public static final int BEFORE_RESIZE
See Also:
Constant Field Values

RESIZE

public static final int RESIZE
See Also:
Constant Field Values

RESIZE_DRAG

public static final int RESIZE_DRAG
See Also:
Constant Field Values

AFTER_RESIZE

public static final int AFTER_RESIZE
See Also:
Constant Field Values

type

protected int type

row

protected int row

column

protected int column

current_row_height

protected int current_row_height

current_column_width

protected int current_column_width

new_row_height

protected int new_row_height

new_column_width

protected int new_column_width

cancelled

protected boolean cancelled
Constructor Detail

JCResizeCellEvent

public JCResizeCellEvent(Object source,
                         int type,
                         int row,
                         int column,
                         int current_width,
                         int current_height)
Method Detail

getRow

public int getRow()
Gets the row being resized.

Returns:
JCTblEnum.NOVALUE if only a column is being resized

getColumn

public int getColumn()
Gets the column being resized.

Returns:
JCTableEnum.NOVALUE if only a row is being resized

getCurrentRowHeight

public int getCurrentRowHeight()
Gets the current row height.

Returns:
JCTableEnum.NOVALUE if only a column is being resized

getNewRowHeight

public int getNewRowHeight()
Gets the new row height.

Returns:
JCTableEnum.NOVALUE if only a column is being resized

setNewRowHeight

public void setNewRowHeight(int value)
Sets the new row height. This has no effect if only a column is being resized.

Parameters:
value - The new row height

getCurrentColumnWidth

public int getCurrentColumnWidth()
Gets the current column width.

Returns:
JCTableEnum.NOVALUE if only a row is being resized

getNewColumnWidth

public int getNewColumnWidth()
Gets the new column width.

Returns:
JCTableEnum.NOVALUE if only a row is being resized

setNewColumnWidth

public void setNewColumnWidth(int value)
Sets the new column width. This has no effect if only a row is being resized.

Parameters:
value - The new column width.

isCancelled

public boolean isCancelled()
Gets the Cancelled value.

Returns:
The current Cancelled value.
See Also:
setCancelled(boolean)

setCancelled

public void setCancelled(boolean value)
Determines whether to allow an interactive resize (default is true).

Parameters:
value - The new Cancelled value

getType

public int getType()
Gets the event type.

Returns:
The event type

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.