當前位置: 首頁>>代碼示例>>Java>>正文


Java ListDataListener.intervalRemoved方法代碼示例

本文整理匯總了Java中javax.swing.event.ListDataListener.intervalRemoved方法的典型用法代碼示例。如果您正苦於以下問題:Java ListDataListener.intervalRemoved方法的具體用法?Java ListDataListener.intervalRemoved怎麽用?Java ListDataListener.intervalRemoved使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在javax.swing.event.ListDataListener的用法示例。


在下文中一共展示了ListDataListener.intervalRemoved方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: callListenersRemove

import javax.swing.event.ListDataListener; //導入方法依賴的package包/類
private void callListenersRemove(ListEdit<T> edit, ListDataEvent dataEvent) {
	assert (!editProtection[0]);
	
	editProtection[0] = true;
	try {
		if (edit != null) {
			addEdit(edit);
		}
		
		for (ListDataListener l : listDataListeners) {
			l.intervalRemoved(dataEvent);
		}
	}
	finally {
		editProtection[0] = false;
	}
}
 
開發者ID:mgropp,項目名稱:pdfjumbler,代碼行數:18,代碼來源:UndoableList.java

示例2: fireChange

import javax.swing.event.ListDataListener; //導入方法依賴的package包/類
private void fireChange (ListDataEvent ev) {
    if (list.getListenerCount () == 0) {
        return ;
    }
    Object[] arr = list.getListenerList ();
    for (int i = arr.length - 1; i >= 0; i -= 2) {
        ListDataListener l = (ListDataListener)arr[i];
        switch (ev.getType ()) {
            case ListDataEvent.CONTENTS_CHANGED: l.contentsChanged (ev); break;
            case ListDataEvent.INTERVAL_ADDED: l.intervalAdded (ev); break;
            case ListDataEvent.INTERVAL_REMOVED: l.intervalRemoved (ev); break;
            default:
                throw new IllegalArgumentException  ("Unknown type: " + ev.getType ());
        }
    }
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:17,代碼來源:FilteredListModel.java

示例3: fireListDataEvent

import javax.swing.event.ListDataListener; //導入方法依賴的package包/類
private void fireListDataEvent(int type, int index1, int index2) {
    ListDataEvent event = new ListDataEvent(this, type, index1, index2);

    for (ListDataListener listener : dataListeners) {
        switch (type) {
            case ListDataEvent.CONTENTS_CHANGED: {
                listener.contentsChanged(event);
                break;
            }

            case ListDataEvent.INTERVAL_ADDED: {
                listener.intervalAdded(event);
                break;
            }

            case ListDataEvent.INTERVAL_REMOVED: {
                listener.intervalRemoved(event);
                break;
            }
        }

    }
}
 
開發者ID:NBANDROIDTEAM,項目名稱:NBANDROID-V2,代碼行數:24,代碼來源:LogDevicesComboBoxSupport.java

示例4: dispatchListDataEvent

import javax.swing.event.ListDataListener; //導入方法依賴的package包/類
private void dispatchListDataEvent(final ListDataEvent e) {
    for (final ListDataListener l : m_listeners) {
        if (e.getType() == ListDataEvent.INTERVAL_ADDED) {
            l.intervalAdded(e);
        } else if (e.getType() == ListDataEvent.INTERVAL_REMOVED) {
            l.intervalRemoved(e);
        } else { // CONTENTS_CHANGED
            l.contentsChanged(e);
        }
    }
}
 
開發者ID:knime,項目名稱:knime-activelearning,代碼行數:12,代碼來源:ClassModel.java

示例5: fireDataRemoved

import javax.swing.event.ListDataListener; //導入方法依賴的package包/類
private void fireDataRemoved(int start, int stop) {
    for(ListDataListener l : listeners) {
        l.intervalRemoved(new ListDataEvent(this, ListDataEvent.INTERVAL_REMOVED, start, stop));
    }
}
 
開發者ID:apache,項目名稱:incubator-netbeans,代碼行數:6,代碼來源:RuntimeComboBox.java


注:本文中的javax.swing.event.ListDataListener.intervalRemoved方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。