Class TableSelectDialog

java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
com.infoteria.asteria.flowbuilder2.sqlbuilder.TableSelectDialog
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, TreeSelectionListener, RootPaneContainer, WindowConstants

public class TableSelectDialog extends JDialog implements TreeSelectionListener
テーブル選択ダイアログ
See Also:
  • Constructor Details

    • TableSelectDialog

      public TableSelectDialog(JFrame parent, String title, TableProvider tp)
      コンストラクタ
      Parameters:
      parent - オーナーフレーム
      title - ダイアログタイトル
      tp - テーブルプロバイダ
    • TableSelectDialog

      public TableSelectDialog(JDialog parent, String title, TableProvider tp)
      コンストラクタ
      Parameters:
      parent - オーナーダイアログ
      title - ダイアログタイトル
      tp - テーブルプロバイダ
  • Method Details

    • isOK

      public boolean isOK()
      ダイアログがOKボタンで終了したかどうかを返します。
    • isAddSchema

      public boolean isAddSchema()
      「スキーマを付加する」にチェックがついているかどうかを返します。
    • getTableNameForProperty

      public String getTableNameForProperty(Table table)
      指定のテーブルのプロパティに設定するための名前を返します。
      (AddSchemaを判断してスキーマ名を制御します。)
    • getSelectedTable

      public Table getSelectedTable()
      選択されたテーブルを返します。
    • valueChanged

      public void valueChanged(TreeSelectionEvent e)
      Specified by:
      valueChanged in interface TreeSelectionListener
    • setup

      public void setup(String tableName, String[] selectedFields)
      テーブル名と選択された列を渡してダイアログを準備します。
    • setEditable

      public void setEditable(boolean b)
      ダイアログの編集可否を設定します。 falseを設定するとOKボタンがdisableになります。
    • isEditable

      public boolean isEditable()
      ダイアログの編集可否を返します。