JavaTM Platform
Standard Ed. 6

javax.swing.event
클래스 RowSorterEvent

java.lang.Object 
  상위를 확장 java.util.EventObject 
      상위를 확장 javax.swing.event.RowSorterEvent
모든 구현된 인터페이스:
Serializable


public class RowSorterEvent
extends EventObject

RowSorterEvent 는,RowSorter 에의 변경의 통지를 실시합니다. 통지에는, 다음의 2 종류가 있습니다.

도입된 버젼:
1.6
관련 항목:
RowSorter

상자의 클래스의 개요
static class RowSorterEvent.Type
          RowSorterEvent 의 형태의 열거.
 
필드의 개요
 
클래스 java.util. EventObject 로부터 상속된 필드
source
 
생성자 의 개요
RowSorterEvent (RowSorter  source)
          SORT_ORDER_CHANGED 형의 RowSorterEvent 이벤트를 작성합니다.
RowSorterEvent (RowSorter  source, RowSorterEvent.Type  type, int[] previousRowIndexToModel)
          RowSorterEvent 를 작성합니다.
 
메소드의 개요
 int convertPreviousRowIndexToModel (int index)
          소트전의 모델의 index 의 위치를 돌려줍니다.
 int getPreviousRowCount ()
          소트전의 행수를 돌려줍니다.
 RowSorter getSource ()
          RowSorter 로서 이벤트 소스를 돌려줍니다.
 RowSorterEvent.Type getType ()
          이벤트의 형태를 돌려줍니다.
 
클래스 java.util. EventObject 로부터 상속된 메소드
toString
 
클래스 java.lang. Object 로부터 상속된 메소드
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait
 

생성자 의 상세

RowSorterEvent

public RowSorterEvent(RowSorter  source)
SORT_ORDER_CHANGED 형의 RowSorterEvent 이벤트를 작성합니다.

파라미터:
source - 변경원
예외:
IllegalArgumentException - source null 의 경우

RowSorterEvent

public RowSorterEvent(RowSorter  source,
                      RowSorterEvent.Type  type,
                      int[] previousRowIndexToModel)
RowSorterEvent 를 작성합니다.

파라미터:
source - 변경원
type - 이벤트의 형태
previousRowIndexToModel - 소트전의 모델 인덱스로부터 뷰인젝스에의 매핑 (null 의 경우도 있다)
예외:
IllegalArgumentException - 소스 또는 type null 의 경우
메소드의 상세

getSource

public RowSorter  getSource()
RowSorter 로서 이벤트 소스를 돌려줍니다.

오버라이드(override):
클래스 EventObject 내의 getSource
반환값:
RowSorter 로서의 이벤트 소스

getType

public RowSorterEvent.Type  getType()
이벤트의 형태를 돌려줍니다.

반환값:
이벤트의 형태

convertPreviousRowIndexToModel

public int convertPreviousRowIndexToModel(int index)
소트전의 모델의 index 의 위치를 돌려줍니다. 이 메소드는 SORTED 형의 이벤트 에 대해서만 사용할 수 있습니다. 이 메소드는, 인덱스가 유효하지 않는 경우나 소트전의 위치가 지정되지 않았던 경우는 -1 을 돌려줍니다.

파라미터:
index - 뷰의 인덱스
반환값:
소트전의 모델의 인덱스. 위치가 유효하지 않은 경우나 매핑이 지정되지 않았던 경우는 -1.

getPreviousRowCount

public int getPreviousRowCount()
소트전의 행수를 돌려줍니다. 이 메소드는,SORTED 형의 이벤트 에 대해서만 사용할 수 있습니다. 마지막 위치가 지정되지 않았던 경우, 0 을 돌려줍니다.

반환값:
소트전의 뷰의 행수

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 도 참조해 주세요.