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
-
RESIZE_CELL
- The id for this event.
-
JCResizeCellEvent(Table, int, int, String, int, int)
-
-
getAllowResize()
- Gets the AllowResize value.
-
getColumn()
- Gets the column being resized.
-
getCurrentColumnWidth()
- Gets the current column width.
-
getCurrentRowHeight()
- Gets the current row height.
-
getNewColumnWidth()
- Gets the new column width.
-
getNewRowHeight()
- Gets the new row height.
-
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
-
getRow()
- Gets the row being resized.
-
setAllowResize(boolean)
- Determines whether to allow an interactive resize (default: true).
-
setNewColumnWidth(int)
- Sets the new column width.
-
setNewRowHeight(int)
- Sets the new row height.
RESIZE_CELL
public static final int RESIZE_CELL
- The id for this event.
JCResizeCellEvent
public JCResizeCellEvent(Table table,
int r,
int c,
String param,
int curr_width,
int curr_height)
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:
- JCTblEnum.NOVALUE if only a row is being resized
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
getCurrentRowHeight
public int getCurrentRowHeight()
- Gets the current row height.
- Returns:
- JCTblEnum.NOVALUE if only a column is being resized
getNewRowHeight
public int getNewRowHeight()
- Gets the new row height.
- Returns:
- JCTblEnum.NOVALUE if only a column is being resized
setNewRowHeight
public void setNewRowHeight(int v)
- Sets the new row height.
This has no effect if only a column is being resized.
getCurrentColumnWidth
public int getCurrentColumnWidth()
- Gets the current column width.
- Returns:
- JCTblEnum.NOVALUE if only a row is being resized
getNewColumnWidth
public int getNewColumnWidth()
- Gets the new column width.
- Returns:
- JCTblEnum.NOVALUE if only a row is being resized
setNewColumnWidth
public void setNewColumnWidth(int v)
- Sets the new column width.
This has no effect if only a row is being resized.
getAllowResize
public boolean getAllowResize()
- Gets the AllowResize value.
- See Also:
- setAllowResize
setAllowResize
public void setAllowResize(boolean v)
- Determines whether to allow an interactive resize (default: true).
All Packages Class Hierarchy This Package Previous Next Index