Example usage for javax.swing.event TableModelEvent TableModelEvent

List of usage examples for javax.swing.event TableModelEvent TableModelEvent

Introduction

In this page you can find the example usage for javax.swing.event TableModelEvent TableModelEvent.

Prototype

public TableModelEvent(TableModel source, int firstRow, int lastRow) 

Source Link

Document

The data in rows [firstRow, lastRow] have been updated.

Usage

From source file:blue.soundObject.tracker.TrackList.java

public void fireRowChanged(int row) {
    fireTableModelEvent(new TableModelEvent(this, row, row));
}

From source file:blue.soundObject.jmask.ItemList.java

public void pushDown(int selectedIndex) {
    Object obj = listItems.remove(selectedIndex + 1);
    listItems.add(selectedIndex, obj);/*from w w w .  ja v  a  2 s  .c o  m*/

    TableModelEvent tme = new TableModelEvent(this, selectedIndex, selectedIndex + 1);

    fireTableUpdated(tme);
}

From source file:blue.soundObject.jmask.ItemList.java

public void pushUp(int selectedIndex) {
    Object obj = listItems.remove(selectedIndex);
    listItems.add(selectedIndex - 1, obj);

    TableModelEvent tme = new TableModelEvent(this, selectedIndex - 1, selectedIndex);

    fireTableUpdated(tme);/*  w  w w  .  jav  a 2s  .  c om*/
}

From source file:org.jdal.swing.ListTableModel.java

/** 
 * Sets all checks to value //from ww w. j a  v  a  2 s. c om
 * @param value
 */
private void fillChecks(boolean value) {
    for (int i = 0; i < checks.size(); i++)
        checks.set(i, value);

    fireTableChanged(new TableModelEvent(this, 0, list.size() - 1));
}

From source file:pipeline.parameter_cell_views.MultiList.java

@Override
public void parameterValueChanged(boolean stillChanging, AbstractParameter parameterWhoseValueChanged,
        boolean keepQuiet) {
    if (!silenceUpdate) {
        update();// w  w  w  . j  ava2s  .c o  m
        if (owningTable != null)
            owningTable.tableChanged(new TableModelEvent(owningTable.getModel(), ourRow, ourRow));
    }
}

From source file:pipeline.parameter_cell_views.TextBox.java

@Override
public void parameterValueChanged(boolean stillChanging, AbstractParameter parameterWhoseValueChanged,
        boolean keepQuiet) {
    if (!silenceUpdate) {
        updateText();/*from   w ww  .  j ava  2  s.  c  o m*/
        if (owningTable != null)
            owningTable.tableChanged(new TableModelEvent(owningTable.getModel(), ourRow, ourRow));
    }
}