JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table
Interface JCResizeCellListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
CellSizeEditor, JCResizeCellAdapter

public interface JCResizeCellListener
extends EventListener

The interface that receives JCResizeCellEvent objects.

See Also:
JCTable.addResizeCellListener(com.klg.jclass.table.JCResizeCellListener), JCResizeCellEvent, 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.
 

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.

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.

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.

Parameters:
e - The resize cell event
See Also:
resizeCell(com.klg.jclass.table.JCResizeCellEvent), JCResizeCellEvent.isCancelled()

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