Package adams.gui.event
Class WekaInvestigatorDataEvent
- java.lang.Object
-
- java.util.EventObject
-
- adams.gui.event.WekaInvestigatorDataEvent
-
- All Implemented Interfaces:
Serializable
public class WekaInvestigatorDataEvent extends EventObject
Event that gets sent when the data in anInvestigatorPanel
changes.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
ATTRIBUTE_NAMES_SORTED
sort attribute names.static int
ATTRIBUTES_NAMES_UNSORTED
don't sort attribute names.static int
DESERIALIZED
the data got deserialized.protected int[]
m_Rows
the affected rows, null for all.protected int
m_Type
the event type.static int
ROW_ACTIVATED
row got activated.static int
ROWS_ADDED
rows got added.static int
ROWS_DELETED
rows got deleted.static int
ROWS_MODIFIED
rows got modified.static int
TABLE_CHANGED
the whole table changed.static int
UNDO_DISABLED
undo disabled.static int
UNDO_ENABLED
undo enabled.-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description WekaInvestigatorDataEvent(InvestigatorPanel source)
Constructor if the whole table changed.WekaInvestigatorDataEvent(InvestigatorPanel source, int type)
Constructor for specifying the type of change.WekaInvestigatorDataEvent(InvestigatorPanel source, int type, int row)
Constructor for specifying the type of change.WekaInvestigatorDataEvent(InvestigatorPanel source, int type, int[] rows)
Constructor for specifying the type of change.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]
getRows()
The affected rows.int
getType()
Returns the type.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Field Detail
-
TABLE_CHANGED
public static final int TABLE_CHANGED
the whole table changed.- See Also:
- Constant Field Values
-
ROWS_ADDED
public static final int ROWS_ADDED
rows got added.- See Also:
- Constant Field Values
-
ROWS_DELETED
public static final int ROWS_DELETED
rows got deleted.- See Also:
- Constant Field Values
-
ROWS_MODIFIED
public static final int ROWS_MODIFIED
rows got modified.- See Also:
- Constant Field Values
-
ROW_ACTIVATED
public static final int ROW_ACTIVATED
row got activated.- See Also:
- Constant Field Values
-
DESERIALIZED
public static final int DESERIALIZED
the data got deserialized.- See Also:
- Constant Field Values
-
UNDO_ENABLED
public static final int UNDO_ENABLED
undo enabled.- See Also:
- Constant Field Values
-
UNDO_DISABLED
public static final int UNDO_DISABLED
undo disabled.- See Also:
- Constant Field Values
-
ATTRIBUTE_NAMES_SORTED
public static final int ATTRIBUTE_NAMES_SORTED
sort attribute names.- See Also:
- Constant Field Values
-
ATTRIBUTES_NAMES_UNSORTED
public static final int ATTRIBUTES_NAMES_UNSORTED
don't sort attribute names.- See Also:
- Constant Field Values
-
m_Type
protected int m_Type
the event type.
-
m_Rows
protected int[] m_Rows
the affected rows, null for all.
-
-
Constructor Detail
-
WekaInvestigatorDataEvent
public WekaInvestigatorDataEvent(InvestigatorPanel source)
Constructor if the whole table changed.- Parameters:
source
- the source panel
-
WekaInvestigatorDataEvent
public WekaInvestigatorDataEvent(InvestigatorPanel source, int type)
Constructor for specifying the type of change.- Parameters:
source
- the source paneltype
- the event type
-
WekaInvestigatorDataEvent
public WekaInvestigatorDataEvent(InvestigatorPanel source, int type, int row)
Constructor for specifying the type of change.- Parameters:
source
- the source paneltype
- the event typerow
- the affected row
-
WekaInvestigatorDataEvent
public WekaInvestigatorDataEvent(InvestigatorPanel source, int type, int[] rows)
Constructor for specifying the type of change.- Parameters:
source
- the source paneltype
- the event typerow
- the affected rows
-
-