Class ButtonCellEditor

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

public abstract class ButtonCellEditor extends AbstractCellEditor implements PropertyEditor
セル全面がボタンで覆われたPropertyEditorです。
See Also:
  • Constructor Details

    • ButtonCellEditor

      public ButtonCellEditor()
  • Method Details

    • setIndirectClick

      public void setIndirectClick(boolean b)
    • isIndirectClick

      public boolean isIndirectClick()
    • 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()
      ダイアログを表示する際のタイトルを返します。 デフォルトでは「<プロパティ表示名>の編集」という文字列を返します。