Example usage for javax.swing.event ListSelectionListener valueChanged

List of usage examples for javax.swing.event ListSelectionListener valueChanged

Introduction

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

Prototype

void valueChanged(ListSelectionEvent e);

Source Link

Document

Called whenever the value of the selection changes.

Usage

From source file:com.github.fritaly.dualcommander.event.ListSelectionEventSupport.java

public void fireEvent(ListSelectionEvent event) {
    Validate.notNull(event, "The given event is null");

    for (ListSelectionListener listener : listeners) {
        listener.valueChanged(event);
    }/* w ww.  java  2s.  co m*/
}

From source file:blue.automation.ParameterIdList.java

private void fireListSelectionEvent(int index) {
    if (listSelectionListeners != null && listSelectionListeners.size() > 0) {
        Iterator iter = new Vector(listSelectionListeners).iterator();

        ListSelectionEvent lse = new ListSelectionEvent(this, index, index, false);

        while (iter.hasNext()) {
            ListSelectionListener listener = (ListSelectionListener) iter.next();
            listener.valueChanged(lse);
        }/*from   www .  ja v a2s.c  om*/
    }
}

From source file:edu.ku.brc.af.ui.forms.validation.ValComboBoxFromQuery.java

/**
 * @param e//from w  ww .j a  v a 2 s .c om
 */
private void notifyListeners(final ListSelectionEvent e) {
    if (listSelectionListeners != null) {
        for (ListSelectionListener l : listSelectionListeners) {
            l.valueChanged(e);
        }
    }
}

From source file:edu.ku.brc.af.ui.db.TextFieldWithQuery.java

/**
 * @param source/*from w w w.  ja v a 2  s . c  o m*/
 */
private void notifyListenersOfChange(final Object source) {
    if (listSelectionListeners != null) {
        ListSelectionEvent lse = source == null ? null : new ListSelectionEvent(source, 0, 0, false);
        for (ListSelectionListener l : listSelectionListeners) {
            l.valueChanged(lse);
        }
    }
}

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

/**
 * @param e/*  w ww .  j a  v  a  2  s. com*/
 */
private void fireValueChanged(ListSelectionEvent e) {
    for (ListSelectionListener lsl : listeners)
        lsl.valueChanged(e);
}

From source file:org.kuali.test.ui.components.panels.HtmlCheckpointPanel.java

@Override
public void valueChanged(ListSelectionEvent lse) {
    if (singleSelectMode) {
        clearCurrentSelection();//from   ww  w  .  ja  va2 s  . c  om
        CheckpointProperty selcp = getTableCheckpointProperty(lse.getFirstIndex());

        if (selcp != null) {
            selcp.setSelected(true);
        }
    }

    for (ListSelectionListener l : listSelectionListeners) {
        l.valueChanged(lse);
    }
}