com.infoteria.swing.table
Class ButtonTextCellEditor
java.lang.Object
|
+--javax.swing.AbstractCellEditor
|
+--com.infoteria.swing.table.ButtonTextCellEditor
- All Implemented Interfaces:
- javax.swing.CellEditor, FontSupport, PropertyEditor, java.io.Serializable, javax.swing.table.TableCellEditor
- Direct Known Subclasses:
- DatetimePropertyEditor, com.infoteria.swing.table.FilePathCellEditor, HistoryPropertyEditor
- public abstract class ButtonTextCellEditor
- extends javax.swing.AbstractCellEditor
- implements PropertyEditor, FontSupport
テキストエリアの脇に小さなボタンが付随するPropertyEditorです。
- See Also:
- Serialized Form
| Fields inherited from class javax.swing.AbstractCellEditor |
changeEvent, listenerList |
| 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 |
_text
protected ButtonTextCellEditor.JTextFieldEx _text
_value
protected java.lang.Object _value
ButtonTextCellEditor
public ButtonTextCellEditor()
getFont
public java.awt.Font getFont()
- Specified by:
getFont in interface FontSupport
setFont
public void setFont(java.awt.Font f)
- Specified by:
setFont in interface FontSupport
setProperty
public void setProperty(Property prop)
- Propertyを設定します。
- Specified by:
setProperty in interface PropertyEditor
getProperty
public Property getProperty()
- Propertyを取得します。
setClickCountToStart
public void setClickCountToStart(int count)
getClickCountToStart
public int getClickCountToStart()
isCellEditable
public boolean isCellEditable(java.util.EventObject anEvent)
- Specified by:
isCellEditable in interface javax.swing.CellEditor- Overrides:
isCellEditable in class javax.swing.AbstractCellEditor
doButtonAction
protected abstract void doButtonAction(java.util.EventObject e)
- オーバーライドしてボタンがクリックされた時の処理を記述します。
getCellEditorValue
public java.lang.Object getCellEditorValue()
- CellEditorの値を取得します。
- Specified by:
getCellEditorValue in interface javax.swing.CellEditor
getValueAsString
public java.lang.String getValueAsString()
- CellEditorの値を文字列で取得します。
setCellEditorValue
protected void setCellEditorValue(java.lang.Object o)
- CellEditorの値を設定します。
getTableCellEditorComponent
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
- Specified by:
getTableCellEditorComponent in interface javax.swing.table.TableCellEditor
stopCellEditing
public boolean stopCellEditing()
- Specified by:
stopCellEditing in interface javax.swing.CellEditor- Overrides:
stopCellEditing in class javax.swing.AbstractCellEditor
cancelCellEditing
public void cancelCellEditing()
- Specified by:
cancelCellEditing in interface javax.swing.CellEditor- Overrides:
cancelCellEditing in class javax.swing.AbstractCellEditor
doClick
public void doClick()
- ボタンをクリックします。
getDialogTitle
protected java.lang.String getDialogTitle()
- ダイアログを表示する際のタイトルを返します。
デフォルトでは「<プロパティ表示名>の編集」という文字列を返します。