Package com.infoteria.swing.table
Class ButtonTextCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
com.infoteria.swing.table.ButtonTextCellEditor
- All Implemented Interfaces:
PropertyEditor,FontSupport,Serializable,CellEditor,TableCellEditor
- Direct Known Subclasses:
DatetimePropertyEditor,FilePropertyEditor,HistoryPropertyEditor
public abstract class ButtonTextCellEditor
extends AbstractCellEditor
implements PropertyEditor, FontSupport
テキストエリアの脇に小さなボタンが付随するPropertyEditorです。
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected abstract voidオーバーライドしてボタンがクリックされた時の処理を記述します。voiddoClick()ボタンをクリックします。CellEditorの値を取得します。intprotected Stringダイアログを表示する際のタイトルを返します。 デフォルトでは「<プロパティ表示名>の編集」という文字列を返します。getFont()Propertyを取得します。getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) CellEditorの値を文字列で取得します。booleanisCellEditable(EventObject anEvent) protected voidCellEditorの値を設定します。voidsetClickCountToStart(int count) voidvoidsetProperty(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
-
Field Details
-
_text
-
_value
-
-
Constructor Details
-
ButtonTextCellEditor
public ButtonTextCellEditor()
-
-
Method Details
-
getFont
- Specified by:
getFontin interfaceFontSupport
-
setFont
- Specified by:
setFontin interfaceFontSupport
-
setProperty
Propertyを設定します。- Specified by:
setPropertyin interfacePropertyEditor
-
getProperty
Propertyを取得します。 -
setClickCountToStart
public void setClickCountToStart(int count) -
getClickCountToStart
public int getClickCountToStart() -
isCellEditable
- Specified by:
isCellEditablein interfaceCellEditor- Overrides:
isCellEditablein classAbstractCellEditor
-
doButtonAction
オーバーライドしてボタンがクリックされた時の処理を記述します。 -
getCellEditorValue
CellEditorの値を取得します。- Specified by:
getCellEditorValuein interfaceCellEditor
-
getValueAsString
CellEditorの値を文字列で取得します。 -
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
-
doClick
public void doClick()ボタンをクリックします。 -
getDialogTitle
ダイアログを表示する際のタイトルを返します。 デフォルトでは「<プロパティ表示名>の編集」という文字列を返します。
-