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:
CellEditor, Cloneable, FontSupport, MetaData, PropertyEditor, Serializable, TableCellEditor

public class HistoryPropertyEditor
extends ButtonTextCellEditor
implements MetaData, Cloneable

1行テキストの替わりに編集可能なComboBoxを表示するstring用のエディタ
ドロップダウンリストには過去の入力の履歴が保持される

See Also:
Serialized Form

Inner classes inherited from class com.infoteria.swing.table.ButtonTextCellEditor
ButtonTextCellEditor.JTextFieldEx
 
Fields inherited from class com.infoteria.swing.table.ButtonTextCellEditor
_text, _value
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
HistoryPropertyEditor()
           
 
Method Summary
 Object clone()
          cloneメソッドの実装 DeepCopyが必要なフィールドがないのでCloneableをimplementsするだけで良い
protected  void doButtonAction(EventObject e)
          ボタンが押された時の処理 履歴機能付きComboBoxの載ったダイアログを表示
 void setup(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
 

Constructor Detail

HistoryPropertyEditor

public HistoryPropertyEditor()
Method Detail

setup

public void setup(Element el)
MetaData#setupメソッドを実装することで定義ファイルの要素から設定情報を 読み出すことができるようになる
ここでは履歴の保存数と保存先のファイルを取得している
(同じファイルを複数のエディタが参照することもあるのでキャッシュも使用)
Specified by:
setup in interface MetaData

clone

public Object clone()
             throws CloneNotSupportedException
cloneメソッドの実装 DeepCopyが必要なフィールドがないのでCloneableをimplementsするだけで良い
Specified by:
clone in interface MetaData
Overrides:
clone in class Object

doButtonAction

protected void doButtonAction(EventObject e)
ボタンが押された時の処理 履歴機能付きComboBoxの載ったダイアログを表示
Overrides:
doButtonAction in class ButtonTextCellEditor