|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
javax.swing.event.TableModelEvent
customEvents.DataTableModelEvent
public class DataTableModelEvent
The Class DataTableModelEvent. This class is used to send information from the DataSheet
to the GUI.
Whenever the data in the datasheet is modified a DataTableModelEvent should be constructed. The constructor arguments
are a combination of the standard TableModelEvent constructors and xdat specific boolean flags that provide information
how the change impacts the GUI.
Based on this information the DataTable
will call the appropriate functions to update the GUI when receiving the
DataTableModelEvent.
DataTable
,
Serialized FormField Summary | |
---|---|
private boolean[] |
axisApplyFiltersRequired
True for the index of each axis where the filters need to be applied. |
private boolean[] |
axisAutofitRequired
True for the index of each axis that needs to be autofitted. |
private boolean[] |
axisResetFilterRequired
True for the index of each axis where the filters need to be reset. |
private boolean |
chartRebuildRequired
True, when the event requires rebuilding all charts |
private boolean |
chartRepaintRequired
True, when the event requires repainting all charts |
static int |
CUSTOM_TABLE_MODEL_TYPE
Used to identify table model events that require application specific code to run. |
private boolean |
dataPanelUpdateRequired
True, when the event requires updating the data panel |
(package private) static long |
serialVersionUID
The version tracking unique identifier for Serialization. |
Fields inherited from class javax.swing.event.TableModelEvent |
---|
ALL_COLUMNS, column, DELETE, firstRow, HEADER_ROW, INSERT, lastRow, type, UPDATE |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
DataTableModelEvent(javax.swing.table.TableModel source,
int firstRow,
int lastRow,
int column,
boolean chartRebuildRequired,
boolean chartRepaintRequired,
boolean dataPanelUpdateRequired,
boolean[] axisAutofitRequired,
boolean[] axisResetFilterRequired,
boolean[] axisApplyFiltersRequired)
Instantiates a new data table model event. |
Method Summary | |
---|---|
boolean[] |
getAxisApplyFiltersRequired()
Gets the axis apply filters required. |
boolean[] |
getAxisAutofitRequired()
Gets the axis autofit required. |
boolean[] |
getAxisResetFilterRequired()
Gets the axis reset filter required. |
boolean |
isChartRebuildRequired()
Checks if chart rebuild required is true. |
boolean |
isChartRepaintRequired()
Checks if chart repaint required is true. |
boolean |
isDataPanelUpdateRequired()
Checks if data Panel update required is true. |
Methods inherited from class javax.swing.event.TableModelEvent |
---|
getColumn, getFirstRow, getLastRow, getType |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
static final long serialVersionUID
private boolean chartRebuildRequired
private boolean chartRepaintRequired
private boolean dataPanelUpdateRequired
private boolean[] axisAutofitRequired
private boolean[] axisResetFilterRequired
private boolean[] axisApplyFiltersRequired
public static final int CUSTOM_TABLE_MODEL_TYPE
Constructor Detail |
---|
public DataTableModelEvent(javax.swing.table.TableModel source, int firstRow, int lastRow, int column, boolean chartRebuildRequired, boolean chartRepaintRequired, boolean dataPanelUpdateRequired, boolean[] axisAutofitRequired, boolean[] axisResetFilterRequired, boolean[] axisApplyFiltersRequired)
source
- the sourcefirstRow
- the first rowlastRow
- the last rowcolumn
- the columnchartRebuildRequired
- specifies whether the event requires rebuilding all chartschartRepaintRequired
- specifies whether the event requires repainting all chartsaxisAutofitRequired
- specifies which axes should be autofitted as a result of the eventaxisResetFilterRequired
- specifies for which axes the filters should be reset as a result of the eventaxisApplyFiltersRequired
- specifies for which axes the filters should be applied as a result of the eventMethod Detail |
---|
public boolean isChartRebuildRequired()
public boolean isChartRepaintRequired()
public boolean isDataPanelUpdateRequired()
public boolean[] getAxisAutofitRequired()
public boolean[] getAxisResetFilterRequired()
public boolean[] getAxisApplyFiltersRequired()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |