|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 차의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요 : 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjava.util.EventObject
javax.swing.event.RowSorterEvent
public class RowSorterEvent
RowSorterEvent
는,RowSorter
에의 변경의 통지를 실시합니다. 통지에는, 다음의 2 종류가 있습니다.
Type.SORT_ORDER_CHANGED
:소트 순서가 변경된 것을 나타냅니다. 일반적으로, 이후에 통지가 계속됩니다.
Type.SORTED
:모델의 컨텐츠가 하등의 방법으로 변환된 것을 나타냅니다. 예를 들어, 컨텐츠가 소트 되었는지, 필터가 적용된 가능성이 있습니다.
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 |
생성자 의 상세 |
---|
public RowSorterEvent(RowSorter source)
SORT_ORDER_CHANGED
형의 RowSorterEvent
이벤트를 작성합니다.
source
- 변경원
IllegalArgumentException
- source
가
null 의 경우
public RowSorterEvent(RowSorter source, RowSorterEvent.Type type, int[] previousRowIndexToModel)
RowSorterEvent
를 작성합니다.
source
- 변경원type
- 이벤트의 형태previousRowIndexToModel
- 소트전의 모델 인덱스로부터 뷰인젝스에의 매핑
(null
의 경우도 있다)
IllegalArgumentException
- 소스 또는 type
가
null 의 경우
메소드의 상세 |
---|
public RowSorter getSource()
RowSorter
로서 이벤트 소스를 돌려줍니다.
EventObject
내의 getSource
RowSorter
로서의 이벤트 소스public RowSorterEvent.Type getType()
public int convertPreviousRowIndexToModel(int index)
index
의 위치를 돌려줍니다. 이 메소드는 SORTED
형의 이벤트 에 대해서만 사용할 수 있습니다. 이 메소드는, 인덱스가 유효하지 않는 경우나 소트전의 위치가 지정되지 않았던 경우는 -1 을 돌려줍니다.
index
- 뷰의 인덱스
public int getPreviousRowCount()
SORTED
형의 이벤트 에 대해서만 사용할 수 있습니다. 마지막 위치가 지정되지 않았던 경우, 0 을 돌려줍니다.
|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 차의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요 : 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.