com.infoteria.swing.table
クラス ButtonTextCellEditor

java.lang.Object
  |
  +--javax.swing.AbstractCellEditor
        |
        +--com.infoteria.swing.table.ButtonTextCellEditor
すべての実装インタフェース:
CellEditor, PropertyEditor, Serializable, TableCellEditor
直系の既知のサブクラス:
DatetimePropertyEditor, com.infoteria.swing.table.FilePathCellEditor, HistoryPropertyEditor

public abstract class ButtonTextCellEditor
extends AbstractCellEditor
implements PropertyEditor

テキストエリアの脇に小さなボタンが付随するPropertyEditorです。

関連項目:
直列化された形式

内部クラスの概要
protected static class ButtonTextCellEditor.JTextFieldEx
           
 
フィールドの概要
protected  ButtonTextCellEditor.JTextFieldEx _text
           
protected  Object _value
           
 
クラス javax.swing.AbstractCellEditor から継承したフィールド
changeEvent, listenerList
 
コンストラクタの概要
ButtonTextCellEditor()
           
 
メソッドの概要
 void cancelCellEditing()
           
protected abstract  void doButtonAction(EventObject e)
          オーバーライドしてボタンがクリックされた時の処理を記述します。
 void doClick()
          ボタンをクリックします。
 Object getCellEditorValue()
          CellEditorの値を取得します。
 int getClickCountToStart()
           
protected  String getDialogTitle()
          ダイアログを表示する際のタイトルを返します。
 Property getProperty()
          Propertyを取得します。
 Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
           
 String getValueAsString()
          CellEditorの値を文字列で取得します。
 boolean isCellEditable(EventObject anEvent)
           
protected  void setCellEditorValue(Object o)
          CellEditorの値を設定します。
 void setClickCountToStart(int count)
           
 void setProperty(Property prop)
          Propertyを設定します。
 boolean stopCellEditing()
           
 
クラス javax.swing.AbstractCellEditor から継承したメソッド
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener, shouldSelectCell
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース javax.swing.CellEditor から継承したメソッド
addCellEditorListener, removeCellEditorListener, shouldSelectCell
 

フィールドの詳細

_text

protected ButtonTextCellEditor.JTextFieldEx _text

_value

protected Object _value
コンストラクタの詳細

ButtonTextCellEditor

public ButtonTextCellEditor()
メソッドの詳細

setProperty

public void setProperty(Property prop)
Propertyを設定します。
定義:
インタフェース PropertyEditor 内の setProperty

getProperty

public Property getProperty()
Propertyを取得します。

setClickCountToStart

public void setClickCountToStart(int count)

getClickCountToStart

public int getClickCountToStart()

isCellEditable

public boolean isCellEditable(EventObject anEvent)
定義:
インタフェース CellEditor 内の isCellEditable
オーバーライド:
クラス AbstractCellEditor 内の isCellEditable

doButtonAction

protected abstract void doButtonAction(EventObject e)
オーバーライドしてボタンがクリックされた時の処理を記述します。

getCellEditorValue

public Object getCellEditorValue()
CellEditorの値を取得します。
定義:
インタフェース CellEditor 内の getCellEditorValue

getValueAsString

public String getValueAsString()
CellEditorの値を文字列で取得します。

setCellEditorValue

protected void setCellEditorValue(Object o)
CellEditorの値を設定します。

getTableCellEditorComponent

public Component getTableCellEditorComponent(JTable table,
                                             Object value,
                                             boolean isSelected,
                                             int row,
                                             int column)
定義:
インタフェース TableCellEditor 内の getTableCellEditorComponent

stopCellEditing

public boolean stopCellEditing()
定義:
インタフェース CellEditor 内の stopCellEditing
オーバーライド:
クラス AbstractCellEditor 内の stopCellEditing

cancelCellEditing

public void cancelCellEditing()
定義:
インタフェース CellEditor 内の cancelCellEditing
オーバーライド:
クラス AbstractCellEditor 内の cancelCellEditing

doClick

public void doClick()
ボタンをクリックします。

getDialogTitle

protected String getDialogTitle()
ダイアログを表示する際のタイトルを返します。 デフォルトでは「<プロパティ表示名>の編集」という文字列を返します。