com.infoteria.swing.table
Class ButtonCellEditor

java.lang.Object
  |
  +--javax.swing.AbstractCellEditor
        |
        +--com.infoteria.swing.table.ButtonCellEditor
All Implemented Interfaces:
CellEditor, PropertyEditor, Serializable, TableCellEditor

public abstract class ButtonCellEditor
extends AbstractCellEditor
implements PropertyEditor

セル全面がボタンで覆われたPropertyEditorです。

See Also:
Serialized Form

Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
ButtonCellEditor()
           
 
Method Summary
 void cancelCellEditing()
           
protected abstract  void doButtonAction(EventObject e)
          オーバーライドしてボタンがクリックされた時の処理を記述します。
 void doClick()
          セルを覆うボタンをクリックします。
protected  JButton getButton()
          セルを覆うボタンを取得します。
 Object getCellEditorValue()
          CellEditorの値を取得します。
 int getClickCountToStart()
           
protected  String getDialogTitle()
          ダイアログを表示する際のタイトルを返します。 デフォルトでは「<プロパティ表示名>の編集」という文字列を返します。
 Property getProperty()
          Propertyを取得します。
 Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
           
 boolean isCellEditable(EventObject anEvent)
           
 void setCellEditorValue(Object o)
          CellEditorの値を設定します。
 void setClickCountToStart(int count)
           
 void setProperty(Property prop)
          Propertyを設定します。
 boolean stopCellEditing()
           
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener, shouldSelectCell
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, removeCellEditorListener, shouldSelectCell
 

Constructor Detail

ButtonCellEditor

public ButtonCellEditor()
Method Detail

setClickCountToStart

public void setClickCountToStart(int count)

getClickCountToStart

public int getClickCountToStart()

getButton

protected JButton getButton()
セルを覆うボタンを取得します。

isCellEditable

public boolean isCellEditable(EventObject anEvent)
Specified by:
isCellEditable in interface CellEditor
Overrides:
isCellEditable in class AbstractCellEditor

doClick

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

setProperty

public void setProperty(Property prop)
Propertyを設定します。
Specified by:
setProperty in interface PropertyEditor

getProperty

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

doButtonAction

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

getCellEditorValue

public Object getCellEditorValue()
CellEditorの値を取得します。
Specified by:
getCellEditorValue in interface CellEditor

setCellEditorValue

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

getTableCellEditorComponent

public Component getTableCellEditorComponent(JTable table,
                                             Object value,
                                             boolean isSelected,
                                             int row,
                                             int column)
Specified by:
getTableCellEditorComponent in interface TableCellEditor

stopCellEditing

public boolean stopCellEditing()
Specified by:
stopCellEditing in interface CellEditor
Overrides:
stopCellEditing in class AbstractCellEditor

cancelCellEditing

public void cancelCellEditing()
Specified by:
cancelCellEditing in interface CellEditor
Overrides:
cancelCellEditing in class AbstractCellEditor

getDialogTitle

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