buoy.event

Class CellValueChangedEvent

Implemented Interfaces:
WidgetEvent

public class CellValueChangedEvent
extends EventObject
implements WidgetEvent

A CellValueChangedEvent is generated when the user edits the value in a cell of a BTable.
Author:
Peter Eastman

Constructor Summary

CellValueChangedEvent(Widget widget, int row, int col)
Create a CellValueChangedEvent.

Method Summary

int
getColumn()
Get the column containing the cell whose value was edited.
int
getRow()
Get the row containing the cell whose value was edited.
Widget
getWidget()
Get the Widget which generated this event.

Constructor Details

CellValueChangedEvent

public CellValueChangedEvent(Widget widget,
                             int row,
                             int col)
Create a CellValueChangedEvent.
Parameters:
widget - the Widget whose value has changed
row - the row containing the cell whose value was edited
col - the column containing the cell whose value was edited

Method Details

getColumn

public int getColumn()
Get the column containing the cell whose value was edited.

getRow

public int getRow()
Get the row containing the cell whose value was edited.

getWidget

public Widget getWidget()
Get the Widget which generated this event.
Specified by:
getWidget in interface WidgetEvent

Written by Peter Eastman.