jawprof.gui
クラス JawprofGuiModule

java.lang.Object
  拡張jawprof.gui.JawprofGuiModule
直系の既知のサブクラス:
StatisticsInfoModule, TransactionTableModule

public abstract class JawprofGuiModule
extends java.lang.Object

JawprofGui の JTabbedPanel に追加されるモジュールです.

バージョン:
1.0

フィールドの概要
protected static java.text.Format DATE_FORMAT
          検索期間の入力用フォーマットとして利用する.
protected static javax.swing.table.TableCellRenderer dateRenderer
          テーブルの日付カラム用のレンダラ.
protected static javax.swing.table.TableCellRenderer intRenderer
          テーブルの整数カラム用のレンダラ.
protected static javax.swing.table.TableCellRenderer realRenderer
          テーブルの実数カラム用のレンダラ.
protected static java.text.DateFormat TIMESTAMP_FORMAT
          トランザクションのラップタイム等の表示ように使用する.
 
コンストラクタの概要
JawprofGuiModule(JawprofGui gui)
          JawprofGui に追加されるモジュールを作成します.
 
メソッドの概要
protected  javax.swing.Icon createIcon(java.lang.String name)
          コンポーネント用のイメージアイコンを作成します.
 javax.swing.Action getAction(java.lang.String key)
          指定されたキーのアクションを返します.
abstract  javax.swing.JComponent getComponent()
          追加するコンポーネントを返します.
protected  java.sql.Connection getConnection()
          接続しているデータベースへの接続を返します.
abstract  java.lang.String getTitle()
          このモジュールのタイトルを返します.
protected  boolean isActive()
          このモジュールが表示されているかどうかを返します.
protected  void notifyAction(java.lang.String actionType)
          JawprofGui から呼ばれます.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

TIMESTAMP_FORMAT

protected static final java.text.DateFormat TIMESTAMP_FORMAT
トランザクションのラップタイム等の表示ように使用する.


DATE_FORMAT

protected static final java.text.Format DATE_FORMAT
検索期間の入力用フォーマットとして利用する.


dateRenderer

protected static final javax.swing.table.TableCellRenderer dateRenderer
テーブルの日付カラム用のレンダラ.


intRenderer

protected static final javax.swing.table.TableCellRenderer intRenderer
テーブルの整数カラム用のレンダラ.


realRenderer

protected static final javax.swing.table.TableCellRenderer realRenderer
テーブルの実数カラム用のレンダラ.

コンストラクタの詳細

JawprofGuiModule

public JawprofGuiModule(JawprofGui gui)
JawprofGui に追加されるモジュールを作成します.

パラメータ:
gui - JawprofGui
メソッドの詳細

getTitle

public abstract java.lang.String getTitle()
このモジュールのタイトルを返します. デフォルトの実装の JawprofGui のタブパネルのタイトルに 使用されます.

戻り値:
このモジュールのタイトル.

getComponent

public abstract javax.swing.JComponent getComponent()
追加するコンポーネントを返します. 独自のモジュールを追加する場合はこのメソッドを実装します.


notifyAction

protected void notifyAction(java.lang.String actionType)
JawprofGui から呼ばれます. 引数で指定されたデータベース接続などのアクションが完了したこと を通知します. 引数のアクションの種類は, jawprof.gui.JawprofGui で定義されています.

デフォルトの実装は空の実装です. 必要があれば継承先のクラスでオーバーライドします.

パラメータ:
actionType - アクションを示すタイプ ID
関連項目:
JawprofGui

isActive

protected boolean isActive()
このモジュールが表示されているかどうかを返します.


getConnection

protected java.sql.Connection getConnection()
接続しているデータベースへの接続を返します.

関連項目:
JawprofGui.getConnection()

createIcon

protected javax.swing.Icon createIcon(java.lang.String name)
コンポーネント用のイメージアイコンを作成します.

パラメータ:
name - リソース名

getAction

public javax.swing.Action getAction(java.lang.String key)
指定されたキーのアクションを返します.

対応するアクションがない場合は何もしないアクションが返されます. このアクションはどのメニュ ーにも関係していません.

パラメータ:
key - アクションのキー
関連項目:
JawprofGui#getAction()


Copyright 2004 Taichirou Etoh. All Rights Reserved.