|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
public interface TableCellEditor
이 인터페이스는,JListBox,JComboBox,JTree, 또는 JTable 등의 컴퍼넌트의 값의 에디터가 될 수 있는 임의의 객체가 구현할 필요가 있는 메소드를 정의합니다.
| 메소드의 개요 | |
|---|---|
Component |
getTableCellEditorComponent (JTable table,
Object value,
boolean isSelected,
int row,
int column)
에디터의 초기치 value 를 설정합니다. |
| 인터페이스 javax.swing. CellEditor 로부터 상속된 메소드 |
|---|
addCellEditorListener , cancelCellEditing , getCellEditorValue , isCellEditable , removeCellEditorListener , shouldSelectCell , stopCellEditing |
| 메소드의 상세 |
|---|
Component getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
value 를 설정합니다. 이것에 의해 에디터로 stopEditing 가 불려 가 그 때에 에디터가 편집중의 경우는, 편집된 값이 일부 소실하는 일이 있습니다.
클라이언트의 Component 계층에 추가할 필요가 있는 컴퍼넌트를 돌려줍니다. 이 컴퍼넌트가 클라이언트의 계층에 짜넣어지면(자), 사용자 입력을 draw 및 수신할 수 있습니다.
table - 편집하는 에디터를 조회하는 JTable.
null 도 가능value - 편집되는 셀의 값.
값을 해석 및 draw 하는 방법은 에디터에 따라서 다르다.
예를 들어, 값이 캐릭터 라인 "true" 의 경우는 캐릭터 라인으로서 draw 된다.
또는 체크된 체크 박스로서 draw 된다. null 도 유효한 값isSelected - 셀이 하이라이트로 draw 되고 있는 경우는 truerow - 편집되는 셀의 행column - 편집되는 셀의 열
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.