Package com.infoteria.swing.table
Class ButtonCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
com.infoteria.swing.table.ButtonCellEditor
- All Implemented Interfaces:
PropertyEditor,Serializable,CellEditor,TableCellEditor
セル全面がボタンで覆われたPropertyEditorです。
- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected abstract voidオーバーライドしてボタンがクリックされた時の処理を記述します。voiddoClick()セルを覆うボタンをクリックします。protected JButtonセルを覆うボタンを取得します。CellEditorの値を取得します。intprotected Stringダイアログを表示する際のタイトルを返します。 デフォルトでは「<プロパティ表示名>の編集」という文字列を返します。Propertyを取得します。getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) booleanisCellEditable(EventObject anEvent) booleanvoidCellEditorの値を設定します。voidsetClickCountToStart(int count) voidsetIndirectClick(boolean b) voidsetProperty(Property prop) Propertyを設定します。booleanMethods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener, shouldSelectCellMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.CellEditor
addCellEditorListener, removeCellEditorListener, shouldSelectCell
-
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
セルを覆うボタンを取得します。 -
isCellEditable
- Specified by:
isCellEditablein interfaceCellEditor- Overrides:
isCellEditablein classAbstractCellEditor
-
doClick
public void doClick()セルを覆うボタンをクリックします。 -
setProperty
Propertyを設定します。- Specified by:
setPropertyin interfacePropertyEditor
-
getProperty
Propertyを取得します。 -
doButtonAction
オーバーライドしてボタンがクリックされた時の処理を記述します。 -
getCellEditorValue
CellEditorの値を取得します。- Specified by:
getCellEditorValuein interfaceCellEditor
-
setCellEditorValue
CellEditorの値を設定します。 -
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) - Specified by:
getTableCellEditorComponentin interfaceTableCellEditor
-
stopCellEditing
public boolean stopCellEditing()- Specified by:
stopCellEditingin interfaceCellEditor- Overrides:
stopCellEditingin classAbstractCellEditor
-
cancelCellEditing
public void cancelCellEditing()- Specified by:
cancelCellEditingin interfaceCellEditor- Overrides:
cancelCellEditingin classAbstractCellEditor
-
getDialogTitle
ダイアログを表示する際のタイトルを返します。 デフォルトでは「<プロパティ表示名>の編集」という文字列を返します。
-