Package javax.swing.event

Examples of javax.swing.event.TableModelListener


   *
   * @param e    the event to send to the listeners
   */
  public void notifyListener(TableModelEvent e) {
    Iterator                iter;
    TableModelListener      l;

    // is notification enabled?
    if (!isNotificationEnabled())
      return;
   
    iter = m_Listeners.iterator();
    while (iter.hasNext()) {
      l = (TableModelListener) iter.next();
      l.tableChanged(e);
    }
  }
View Full Code Here


    m_InstSummaryPanel.setInstances(m_Instances);
    m_AttPanel.setInstances(m_Instances);
   
    if (first) {
      TableModel model = m_AttPanel.getTableModel();
      model.addTableModelListener(new TableModelListener() {
        public void tableChanged(TableModelEvent e) {
          if (m_AttPanel.getSelectedAttributes() != null &&
              m_AttPanel.getSelectedAttributes().length > 0) {
            m_RemoveButton.setEnabled(true);
          } else {
View Full Code Here

      final TableModelEvent event =
          new TableModelEvent(SubSetTableModel.this, firstRow, lastRow, column, type);

      for (int i = 0; i < listeners.size(); i++)
      {
        final TableModelListener l = (TableModelListener) listeners.get(i);
        l.tableChanged(event);
      }
    }
View Full Code Here

          new TableModelEvent(WrappingTableModel.this, firstRowIndex, lastRowIndex,
              columnIndex, e.getType());

      for (int i = 0; i < listeners.size(); i++)
      {
        final TableModelListener l = (TableModelListener) listeners.get(i);
        l.tableChanged(event);
      }

    }
View Full Code Here

  }


  protected void customizeTable(JTable table) throws IllegalUserInputException {
    setActiveTable(table);
    ((WorksheetSingleClientModel)table.getModel()).addTableModelListener(new TableModelListener() {
      public void tableChanged(TableModelEvent e) {
        try
        {
          getActiveTable().setPreferredSize(new java.awt.Dimension(getActiveTable().getWidth(),
              myModel.getActualTableModel().getRowCount() *
 
View Full Code Here

        tblParameters.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
        tblParameters.setFillsViewportHeight(true);
        defaultTableModel = new DefaultTableModel(new Object[][] { { null, null, null, null }, }, new String[] { "I/O",
                "Parameter Name", "Type", "Description" });
        tblParameters.setModel(defaultTableModel);
        defaultTableModel.addTableModelListener(new TableModelListener() {

            @Override
            public void tableChanged(TableModelEvent arg0) {
                if (!ignoreTableChanges) {
          int selectedRow = tblParameters.getSelectedRow();
View Full Code Here

        tblParameters.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
        tblParameters.setFillsViewportHeight(true);
        defaultTableModel = new DefaultTableModel(new Object[][] { { null, null, null, null }, }, new String[] { "I/O",
                "Parameter Name", "Type", "Description" });
        tblParameters.setModel(defaultTableModel);
        defaultTableModel.addTableModelListener(new TableModelListener() {

            public void tableChanged(TableModelEvent arg0) {
                if (!ignoreTableChanges) {
          int selectedRow = tblParameters.getSelectedRow();
          if (selectedRow != -1
View Full Code Here

          notesTable.editCellAt(row, column);
        }
      }
    });

    notesTableModel.addTableModelListener(new TableModelListener()
    {
      public void tableChanged(TableModelEvent e)
      {
        lbCount.setText(RevuBundle.message("issueForm.notes.count.text", notesTableModel.getRowCount()));
      }
View Full Code Here

        TableModelListener[] listeners = ((AbstractTableModel) model).getTableModelListeners();
        for (TableModelListener listener : listeners) {
            model.removeTableModelListener(listener);
        }
        for (int i = 0; i < listeners.length; i++) {
            TableModelListener listener = listeners[i];
            if (index == i) {
                model.addTableModelListener(l);
            }
            model.addTableModelListener(listener);
        }
View Full Code Here

    m_simpleConfigPanel.setInstances(insts);
    m_advancedConfigPanel.setInstances(insts);
   
    if (first) {           
      TableModel model = m_simpleConfigPanel.m_targetPanel.getTableModel();
      model.addTableModelListener(new TableModelListener() {
        public void tableChanged(TableModelEvent e) {
          int[] selected = m_simpleConfigPanel.m_targetPanel.getSelectedAttributes();
          if (selected != null && selected.length > 0) {
            m_startBut.setEnabled(true);
          } else {
View Full Code Here

TOP

Related Classes of javax.swing.event.TableModelListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.