JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table
Class JCResizeCellAdapter

java.lang.Object
  |
  +--com.klg.jclass.table.JCResizeCellAdapter
All Implemented Interfaces:
EventListener, JCResizeCellListener

public abstract class JCResizeCellAdapter
extends Object
implements JCResizeCellListener

The adapter which receives JCResizeCell events. The methods in this class are empty; this class is provided as a convenience for easily creating listeners by extending this class and overriding only the methods of interest.

See Also:
JCResizeCellEvent

Constructor Summary
JCResizeCellAdapter()
           
 
Method Summary
 void afterResizeCell(com.klg.jclass.table.JCResizeCellEvent e)
          Invoked after the row and/or column is resized and all listeners have been notified of the new value through resizeCell.
 void beforeResizeCell(com.klg.jclass.table.JCResizeCellEvent e)
          Invoked before the row and/or column is resized.
 void resizeCell(com.klg.jclass.table.JCResizeCellEvent e)
          Invoked after the mouse is released.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCResizeCellAdapter

public JCResizeCellAdapter()
Method Detail

beforeResizeCell

public void beforeResizeCell(com.klg.jclass.table.JCResizeCellEvent e)
Invoked before the row and/or column is resized. A JCResizeCellEvent isn't generated until the mouse moves. The event's setCancelled method can be called to prevent the resize.

Specified by:
beforeResizeCell in interface JCResizeCellListener
Parameters:
e - The resize cell event
See Also:
JCResizeCellEvent.setCancelled(boolean)

resizeCell

public void resizeCell(com.klg.jclass.table.JCResizeCellEvent e)
Invoked after the mouse is released. The event's setCancelled method can be called to prevent the resize and the new width or height can be changed by calling setNewColumnWidth or setNewRowHeight. The width or height is not updated until all listeners have received the event.

Specified by:
resizeCell in interface JCResizeCellListener
Parameters:
e - The resize cell event
See Also:
JCResizeCellEvent.setCancelled(boolean), JCResizeCellEvent.setNewRowHeight(int), JCResizeCellEvent.setNewColumnWidth(int)

afterResizeCell

public void afterResizeCell(com.klg.jclass.table.JCResizeCellEvent e)
Invoked after the row and/or column is resized and all listeners have been notified of the new value through resizeCell. This method is called after the new values has been set. If a listener cancelled the resize in the beforeResizeCell call, resizeCellEnd will be called with the cancelled flag set.

Specified by:
afterResizeCell in interface JCResizeCellListener
Parameters:
e - The resize cell event
See Also:
resizeCell(com.klg.jclass.table.JCResizeCellEvent), JCResizeCellEvent.isCancelled()

Copyright © 2004 Quest Software Inc..
All rights reserved.