All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jclass.table.JCResizeCellEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----java.awt.AWTEvent
                   |
                   +----jclass.table.TableAWTEvent
                           |
                           +----jclass.table.JCResizeCellEvent

public class JCResizeCellEvent
extends TableAWTEvent
The event posted as a user resizes a row and/or column.

See Also:
addResizeCellListener, JCResizeCellAdapter, JCResizeCellListener

Variable Index

 o RESIZE_CELL
The id for this event.

Constructor Index

 o JCResizeCellEvent(Table, int, int, String, int, int)

Method Index

 o getAllowResize()
Gets the AllowResize value.
 o getColumn()
Gets the column being resized.
 o getCurrentColumnWidth()
Gets the current column width.
 o getCurrentRowHeight()
Gets the current row height.
 o getNewColumnWidth()
Gets the new column width.
 o getNewRowHeight()
Gets the new row height.
 o getParam()
Gets a string indicating the resize stage:
 START   Begin interactive resize
 MOVE    Select new height/width
 END     Finish resize selection
 CANCEL  Cancels the current resize
 
 o getRow()
Gets the row being resized.
 o setAllowResize(boolean)
Determines whether to allow an interactive resize (default: true).
 o setNewColumnWidth(int)
Sets the new column width.
 o setNewRowHeight(int)
Sets the new row height.

Variables

 o RESIZE_CELL
 public static final int RESIZE_CELL
The id for this event.

Constructors

 o JCResizeCellEvent
 public JCResizeCellEvent(Table table,
                          int r,
                          int c,
                          String param,
                          int curr_width,
                          int curr_height)

Methods

 o getRow
 public int getRow()
Gets the row being resized.

Returns:
JCTblEnum.NOVALUE if only a column is being resized
 o getColumn
 public int getColumn()
Gets the column being resized.

Returns:
JCTblEnum.NOVALUE if only a row is being resized
 o getParam
 public String getParam()
Gets a string indicating the resize stage:
 START   Begin interactive resize
 MOVE    Select new height/width
 END     Finish resize selection
 CANCEL  Cancels the current resize
 

 o getCurrentRowHeight
 public int getCurrentRowHeight()
Gets the current row height.

Returns:
JCTblEnum.NOVALUE if only a column is being resized
 o getNewRowHeight
 public int getNewRowHeight()
Gets the new row height.

Returns:
JCTblEnum.NOVALUE if only a column is being resized
 o setNewRowHeight
 public void setNewRowHeight(int v)
Sets the new row height. This has no effect if only a column is being resized.

 o getCurrentColumnWidth
 public int getCurrentColumnWidth()
Gets the current column width.

Returns:
JCTblEnum.NOVALUE if only a row is being resized
 o getNewColumnWidth
 public int getNewColumnWidth()
Gets the new column width.

Returns:
JCTblEnum.NOVALUE if only a row is being resized
 o setNewColumnWidth
 public void setNewColumnWidth(int v)
Sets the new column width. This has no effect if only a row is being resized.

 o getAllowResize
 public boolean getAllowResize()
Gets the AllowResize value.

See Also:
setAllowResize
 o setAllowResize
 public void setAllowResize(boolean v)
Determines whether to allow an interactive resize (default: true).


All Packages  Class Hierarchy  This Package  Previous  Next  Index