customEvents
Class DataTableModelEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.swing.event.TableModelEvent
          extended by customEvents.DataTableModelEvent
All Implemented Interfaces:
java.io.Serializable

public class DataTableModelEvent
extends javax.swing.event.TableModelEvent

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.

See Also:
DataTable, Serialized Form

Field Summary
static int CUSTOM_TABLE_MODEL_TYPE
          Used to identify table model events that require application specific code to run.
 
Fields inherited from class javax.swing.event.TableModelEvent
ALL_COLUMNS, DELETE, HEADER_ROW, INSERT, UPDATE
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CUSTOM_TABLE_MODEL_TYPE

public static final int CUSTOM_TABLE_MODEL_TYPE
Used to identify table model events that require application specific code to run.

See Also:
Constant Field Values
Constructor Detail

DataTableModelEvent

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)
Instantiates a new data table model event.

Parameters:
source - the source
firstRow - the first row
lastRow - the last row
column - the column
chartRebuildRequired - specifies whether the event requires rebuilding all charts
chartRepaintRequired - specifies whether the event requires repainting all charts
axisAutofitRequired - specifies which axes should be autofitted as a result of the event
axisResetFilterRequired - specifies for which axes the filters should be reset as a result of the event
axisApplyFiltersRequired - specifies for which axes the filters should be applied as a result of the event
Method Detail

isChartRebuildRequired

public boolean isChartRebuildRequired()
Checks if chart rebuild required is true.

Returns:
the chartRebuildRequired state

isChartRepaintRequired

public boolean isChartRepaintRequired()
Checks if chart repaint required is true.

Returns:
the chartRepaintRequired state

isDataPanelUpdateRequired

public boolean isDataPanelUpdateRequired()
Checks if data Panel update required is true.

Returns:
the dataPanelUpdateRequired

getAxisAutofitRequired

public boolean[] getAxisAutofitRequired()
Gets the axis autofit required.

Returns:
an array of booleans where each boolean specifies, whether the corresponding axis should be autofitted.

getAxisResetFilterRequired

public boolean[] getAxisResetFilterRequired()
Gets the axis reset filter required.

Returns:
an array of booleans where each boolean specifies, whether for the corresponding axis the filters should be reset.

getAxisApplyFiltersRequired

public boolean[] getAxisApplyFiltersRequired()
Gets the axis apply filters required.

Returns:
an array of booleans where each boolean specifies, whether for the corresponding axis the filters should be reapplied.