Examples of ListDataEvent


Examples of javax.swing.event.ListDataEvent

   */
  public void clear()
  {
    final int size = getSize();
    data.clear();
    final ListDataEvent evt = new ListDataEvent(this, ListDataEvent.INTERVAL_REMOVED, 0, size - 1);
    fireListDataEvent(evt);
  }
View Full Code Here

Examples of javax.swing.event.ListDataEvent

  }

  public void remove(final int index)
  {
    data.remove(index);
    final ListDataEvent evt = new ListDataEvent(this, ListDataEvent.INTERVAL_REMOVED, index, index);
    fireListDataEvent(evt);
  }
View Full Code Here

Examples of javax.swing.event.ListDataEvent

      listeners.remove(l);
    }

    public void modelChanged(ModelChangeEvent e) {
      ListChangeEvent lce = (ListChangeEvent) e;
      ListDataEvent event =
        new ListDataEvent(e.getSource(), lce.getType(), lce.getFirstIndex(), lce.getLastIndex());

      for (int i = 0; i < listeners.size(); i++) {
        ((ListDataListener) listeners.get(i)).contentsChanged(event);
      }
    }
View Full Code Here

Examples of javax.swing.event.ListDataEvent

  {
    if (listDataListeners == null)
    {
      return;
    }
    final ListDataEvent evt = new ListDataEvent(this, ListDataEvent.CONTENTS_CHANGED, start, length);
    for (int i = 0; i < listDataListeners.size(); i++)
    {
      final ListDataListener l = (ListDataListener) listDataListeners.get(i);
      l.contentsChanged(evt);
    }
View Full Code Here

Examples of javax.swing.event.ListDataEvent

  }
 
  private void fireIntervalAdded(int i, int j) {
     ChosenFolders _this = this;
     for(ListDataListener listener : listeners) {
       listener.intervalAdded( new ListDataEvent(_this, ListDataEvent.INTERVAL_ADDED, i, j) {
        
       });
     }
  }
View Full Code Here

Examples of javax.swing.event.ListDataEvent

  }
 
  private void fireIntervalRemoved(int i, int j) {
    ChosenFolders _this = this;
    for(ListDataListener listener : listeners) {
      listener.intervalRemoved( new ListDataEvent(_this, ListDataEvent.INTERVAL_REMOVED, i, j) {
       
      });
    }
  }
View Full Code Here

Examples of javax.swing.event.ListDataEvent

     */
    public void fireChange() {
      Iterator it = listeners.iterator();
      while (it.hasNext()) {
        ListDataListener ldl = (ListDataListener) it.next();
        ldl.contentsChanged(new ListDataEvent(window.getValueList(),
            ListDataEvent.CONTENTS_CHANGED, 0, getSize()));
      }
    }
View Full Code Here

Examples of javax.swing.event.ListDataEvent

            listDataListeners.remove(l);
        }

        private void fireContentsChanged() {
            for (int i=0; i<listDataListeners.size(); i++) {
                ((ListDataListener)listDataListeners.get(i)).contentsChanged(new ListDataEvent(this, ListDataEvent.CONTENTS_CHANGED, 0, getSize()-1));
            }
        }
View Full Code Here

Examples of javax.swing.event.ListDataEvent

    /*********************************************************
     *                 Listener notifiers                    *
     *********************************************************/
    public void notifyCellUpdated(int rowIndex, int columnIndex) {
        TableModelEvent tableModelEvent = new TableModelEvent(this, rowIndex, rowIndex, columnIndex);
        ListDataEvent listDataEvent = new ListDataEvent(this, ListDataEvent.CONTENTS_CHANGED, rowIndex, rowIndex);
        notifyListeners(listDataEvent, tableModelEvent);
    }
View Full Code Here

Examples of javax.swing.event.ListDataEvent

        notifyListeners(listDataEvent, tableModelEvent);
    }

    public void notifyRowUpdated(int rowIndex) {
        TableModelEvent tableModelEvent = new TableModelEvent(this, rowIndex, rowIndex);
        ListDataEvent listDataEvent = new ListDataEvent(this, ListDataEvent.CONTENTS_CHANGED, rowIndex, rowIndex);
        notifyListeners(listDataEvent, tableModelEvent);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.