Package adams.event
Class SpreadSheetColumnInsertionEvent
- java.lang.Object
-
- java.util.EventObject
-
- adams.event.SpreadSheetColumnInsertionEvent
-
- All Implemented Interfaces:
Serializable
public class SpreadSheetColumnInsertionEvent extends EventObject
Event that gets sent in case of insertion of a column.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected intm_ColumnIndexthe index of the column that got inserted.-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description SpreadSheetColumnInsertionEvent(SpreadSheet source, int columnIndex)Initializes the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumnIndex()Returns the index of the column that got inserted.SpreadSheetgetSpreadSheet()Returns the spreadsheet that triggered this event.StringtoString()Returns a short description of the event.-
Methods inherited from class java.util.EventObject
getSource
-
-
-
-
Constructor Detail
-
SpreadSheetColumnInsertionEvent
public SpreadSheetColumnInsertionEvent(SpreadSheet source, int columnIndex)
Initializes the event.- Parameters:
source- the spreadsheet that triggered the eventcolumnIndex- te index of the column that got inserted
-
-
Method Detail
-
getSpreadSheet
public SpreadSheet getSpreadSheet()
Returns the spreadsheet that triggered this event.- Returns:
- the spreadsheet
-
getColumnIndex
public int getColumnIndex()
Returns the index of the column that got inserted.- Returns:
- the index
-
toString
public String toString()
Returns a short description of the event.- Overrides:
toStringin classEventObject- Returns:
- the description
-
-