Examples of ListDataEvent


Examples of charvax.swing.event.ListDataEvent

     */
    public void fireContentsChanged(Object source_, int index0_, int index1_) {
  if (_listeners == null)
      return;

  ListDataEvent event = new ListDataEvent(this,
    ListDataEvent.CONTENTS_CHANGED, index0_, index1_);

  for (Iterator<ListDataListener> iter = _listeners.iterator(); iter.hasNext(); ) {
      ListDataListener l = (ListDataListener) iter.next();
      l.contentsChanged(event);
View Full Code Here

Examples of charvax.swing.event.ListDataEvent

     */
    public void fireIntervalRemoved(Object source_, int  index0_, int index1_) {
  if (_listeners == null)
      return;

  ListDataEvent event = new ListDataEvent(this,
    ListDataEvent.INTERVAL_REMOVED, index0_, index1_);

  for (Iterator<ListDataListener> iter = _listeners.iterator(); iter.hasNext(); ) {
      ListDataListener l = (ListDataListener) iter.next();
      l.contentsChanged(event);
View Full Code Here

Examples of com.ulcjava.base.application.event.ListDataEvent

    /**
     * Fire a ListDataEvent.CONTENTS_CHANGED event to all the registered listeners
     */
    public void fireListDataChanged() {
        ListDataEvent e = new ListDataEvent(this, ListDataEvent.CONTENTS_CHANGED, 0, getSize() - 1);
        fireListDataEvent(e);
    }
View Full Code Here

Examples of javax.swing.event.ListDataEvent

              break;
            }
          }
          if (itemIndex >= 0) {
            for (ListDataListener listener : listeners) {
              listener.contentsChanged(new ListDataEvent(program, ListDataEvent.CONTENTS_CHANGED, itemIndex, itemIndex));
            }
          }
        }
      }
    }
View Full Code Here

Examples of javax.swing.event.ListDataEvent

    {
      add(keys[i], values[i]);
    }

    selectedItemIndex = -1;
    final ListDataEvent evt = new ListDataEvent
        (this, ListDataEvent.CONTENTS_CHANGED, 0, data.size() - 1);
    fireListDataEvent(evt);
  }
View Full Code Here

Examples of javax.swing.event.ListDataEvent

      selectedItemIndex = newSelectedItem;
      selectedItemValue = getElementAt(selectedItemIndex);
    }
    if (oldSelectedItem != this.selectedItemIndex)
    {
      fireListDataEvent(new ListDataEvent(this, ListDataEvent.CONTENTS_CHANGED, -1, -1));
    }
  }
View Full Code Here

Examples of javax.swing.event.ListDataEvent

      selectedItemIndex = newSelectedItem;
      selectedItemValue = getElementAt(selectedItemIndex);
    }
    if (oldSelectedItem != this.selectedItemIndex)
    {
      fireListDataEvent(new ListDataEvent(this, ListDataEvent.CONTENTS_CHANGED, -1, -1));
    }
  }
View Full Code Here

Examples of javax.swing.event.ListDataEvent

    {
      return;
    }

    data.remove(idx);
    final ListDataEvent evt = new ListDataEvent
        (this, ListDataEvent.INTERVAL_REMOVED, idx, idx);
    fireListDataEvent(evt);
  }
View Full Code Here

Examples of javax.swing.event.ListDataEvent

   */
  public void add(final Object key, final Object cbitem)
  {
    final ComboBoxItemPair con = new ComboBoxItemPair(key, cbitem);
    data.add(con);
    final ListDataEvent evt = new ListDataEvent
        (this, ListDataEvent.INTERVAL_ADDED, data.size() - 2, data.size() - 2);
    fireListDataEvent(evt);
  }
View Full Code Here

Examples of javax.swing.event.ListDataEvent

  public void update(final int index, final Object key, final Object cbitem)
  {
    final ComboBoxItemPair con = new ComboBoxItemPair(key, cbitem);
    data.set(index, con);
    final ListDataEvent evt = new ListDataEvent
        (this, ListDataEvent.CONTENTS_CHANGED, index, index);
    fireListDataEvent(evt);
  }
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.