JavaTM Platform
Standard Ed. 6

javax.swing.event
인터페이스 ListDataListener

모든 슈퍼 인터페이스:
EventListener
기존의 구현 클래스의 일람:
BasicComboBoxUI.ListDataHandler , BasicComboPopup.ListDataHandler , BasicListUI.ListDataHandler , JComboBox , JList.AccessibleJList


public interface ListDataListener
extends EventListener

리스트 데이터 청취자입니다.


메소드의 개요
 void contentsChanged (ListDataEvent  e)
          리스트의 내용이, previous 메소드를 사용해 지정할 수 없는 것 같은 복잡한 방법으로 변경되었을 때에 송신됩니다.
 void intervalAdded (ListDataEvent  e)
          index0, index1 의 구간에 있는 인덱스가 데이터 모델에 삽입된 후에 송신됩니다.
 void intervalRemoved (ListDataEvent  e)
          index0, index1 의 구간에 있는 인덱스가 데이터 모델로부터 삭제된 후에 송신됩니다.
 

메소드의 상세

intervalAdded

void intervalAdded(ListDataEvent  e)
index0, index1 의 구간에 있는 인덱스가 데이터 모델에 삽입된 후에 송신됩니다. 새로운 구간에는 index0 와 index1 의 양쪽 모두가 포함됩니다.

파라미터:
e - 이벤트 정보를 캡슐화한다 ListDataEvent

intervalRemoved

void intervalRemoved(ListDataEvent  e)
index0, index1 의 구간에 있는 인덱스가 데이터 모델로부터 삭제된 후에 송신됩니다. 구간에는 index0 와 index1 의 양쪽 모두가 포함됩니다.

파라미터:
e - 이벤트 정보를 캡슐화한다 ListDataEvent

contentsChanged

void contentsChanged(ListDataEvent  e)
리스트의 내용이, previous 메소드를 사용해 지정할 수 없는 것 같은 복잡한 방법으로 변경되었을 때에 송신됩니다. 예를 들어, 항목이 치환되었을 때에 송신됩니다. Index0 와 index1 는 변경을 둘러쌉니다.

파라미터:
e - 이벤트 정보를 캡슐화한다 ListDataEvent

JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.