com.infoteria.asteria.flowbuilder2.plugin
Class HistoryPropertyEditor
java.lang.Object
|
+--javax.swing.AbstractCellEditor
|
+--com.infoteria.swing.table.ButtonTextCellEditor
|
+--com.infoteria.asteria.flowbuilder2.plugin.HistoryPropertyEditor
- All Implemented Interfaces:
- javax.swing.CellEditor, java.lang.Cloneable, FontSupport, MetaData, PropertyEditor, java.io.Serializable, javax.swing.table.TableCellEditor
- public class HistoryPropertyEditor
- extends ButtonTextCellEditor
- implements MetaData, java.lang.Cloneable
1行テキストの替わりに編集可能なComboBoxを表示するstring用のエディタ
ドロップダウンリストには過去の入力の履歴が保持される
- See Also:
- Serialized Form
| Fields inherited from class javax.swing.AbstractCellEditor |
changeEvent, listenerList |
|
Method Summary |
java.lang.Object |
clone()
cloneメソッドの実装
DeepCopyが必要なフィールドがないのでCloneableをimplementsするだけで良い |
protected void |
doButtonAction(java.util.EventObject e)
ボタンが押された時の処理
履歴機能付きComboBoxの載ったダイアログを表示 |
void |
setup(org.w3c.dom.Element el)
MetaData#setupメソッドを実装することで定義ファイルの要素から設定情報を
読み出すことができるようになる
ここでは履歴の保存数と保存先のファイルを取得している
(同じファイルを複数のエディタが参照することもあるのでキャッシュも使用) |
| Methods inherited from class com.infoteria.swing.table.ButtonTextCellEditor |
cancelCellEditing, doClick, getCellEditorValue, getClickCountToStart, getDialogTitle, getFont, getProperty, getTableCellEditorComponent, getValueAsString, isCellEditable, setCellEditorValue, setClickCountToStart, setFont, setProperty, stopCellEditing |
| Methods inherited from class javax.swing.AbstractCellEditor |
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener, shouldSelectCell |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.CellEditor |
addCellEditorListener, removeCellEditorListener, shouldSelectCell |
HistoryPropertyEditor
public HistoryPropertyEditor()
setup
public void setup(org.w3c.dom.Element el)
- MetaData#setupメソッドを実装することで定義ファイルの要素から設定情報を
読み出すことができるようになる
ここでは履歴の保存数と保存先のファイルを取得している
(同じファイルを複数のエディタが参照することもあるのでキャッシュも使用)
- Specified by:
setup in interface MetaData
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- cloneメソッドの実装
DeepCopyが必要なフィールドがないのでCloneableをimplementsするだけで良い
- Specified by:
clone in interface MetaData- Overrides:
clone in class java.lang.Object
doButtonAction
protected void doButtonAction(java.util.EventObject e)
- ボタンが押された時の処理
履歴機能付きComboBoxの載ったダイアログを表示
- Overrides:
doButtonAction in class ButtonTextCellEditor