|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.ne.mki.wedge.rule.base.AbstractBase
jp.ne.mki.wedge.rule.base.AbstractClient
jp.ne.mki.wedge.rule.client.component.frame.SetTimer
public class SetTimer
一定時間ごとに定期的にイベントを発生させます。 基本的にonLoad時にこのロジッククラスを実行し、 パラメータにイベント発生間隔をミリ秒単位で指定します。 実行する処理内容が記述されたアイテムをInputRecordに指定してください。
このロジッククラスでは、アイテムにコンポーネントが割り当てられていてもフォーカスの
移動は行いません。つまり、テキストフィールドなどで入力中でタイマーイベントが
実行されても、テキストフィールドのAfterは実行しせずに(アイテム内で保持している値
は入力中の値ではない。前回Afterが実行されたときの値)動作することに注意してください。
このロジッククラスでの実装例としては、ラベルに「現在の日付・時刻」を1秒単位で表示する などに
なります。
InputRecord | OutputRecord |
---|---|
実行するITEM |
Parameter | タイマーの発生する時間間隔(ミリ秒) |
---|
フィールドの概要 | |
---|---|
(package private) int |
executeTime
|
(package private) javax.swing.Timer |
timer
|
クラス jp.ne.mki.wedge.rule.base.AbstractBase から継承されたフィールド |
---|
controlRecord, engineManager, errorMessage, executeType, id, inputRecord, logicalName, logicClassDelegate, outputRecord, physicalName, ruleParameter, ruleType, serverParameter, userConstant |
インタフェース jp.ne.mki.wedge.rule.base.interfaces.ClientInterface から継承されたフィールド |
---|
FRAME_CLOSE, FRAME_QUIT, SKIP_ALL, STOP, STOP_SELECT_ALL, SYSTEM_EXIT, SYSTEM_QUIT, TIMING_AFTER, TIMING_BEFORE, TIMING_LOAD, TIMING_ROW_CLICK, TIMING_ROW_WCLICK, TIMING_UN_LOAD |
インタフェース jp.ne.mki.wedge.rule.base.interfaces.CommonInterface から継承されたフィールド |
---|
CANCEL, ERROR, EXECUTE_BOTH, EXECUTE_CLIENT, EXECUTE_DEBUG, EXECUTE_HTMLGATEWAY, EXECUTE_SERVER, EXECUTE_SERVERDC, IO_ERROR, IO_ERROR_EXECUTE_PARAMETER, IO_ERROR_IN, IO_ERROR_IO_MUST_SAME_COUNT, IO_ERROR_ITEM_TYPE, IO_ERROR_OUT, IO_ERROR_PARAMETER, NONE, OK, PARAMETER_DELIMITER, SKIP, USER_ERROR |
コンストラクタの概要 | |
---|---|
SetTimer()
|
メソッドの概要 | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
InRecordに指定されたITEMのBefore,Afterイベントを実行します。 |
void |
dispose()
オブジェクト破棄処理 |
int |
execute()
フレームにKeyListenerを追加します。 |
void |
exit()
終了処理。 |
int |
getIOParameter()
IOパラメータ取得。 |
protected int |
loopInItemSub(jp.ne.mki.wedge.run.client.data.Item inItem,
int index)
loopInItem()から呼び出されるメソッドです。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
インタフェース jp.ne.mki.wedge.run.interfaces.RuleEngineInterface から継承されたメソッド |
---|
createLogicErrorLogRecord, createLogicExceptionLogRecord, createLogicLogRecord, getLogicClassDelegate, setControlRecord, setId, setInRecord, setLogicalName, setLogicClassDelegate, setOutRecord, setPhysicalName, setRuleParameter, setUserConstant |
フィールドの詳細 |
---|
javax.swing.Timer timer
int executeTime
コンストラクタの詳細 |
---|
public SetTimer()
メソッドの詳細 |
---|
public int getIOParameter()
execute
の前に実行される。
CommonInterface
内の getIOParameter
RuleEngineInterface
内の getIOParameter
public int execute()
CommonInterface
内の execute
RuleEngineInterface
内の execute
protected int loopInItemSub(jp.ne.mki.wedge.run.client.data.Item inItem, int index)
AbstractClient
の記述:
AbstractClient
内の loopInItemSub
public void exit()
execute
の後に実行されます。
CommonInterface
内の exit
RuleEngineInterface
内の exit
public void dispose() throws java.lang.Throwable
CommonInterface
内の dispose
AbstractBase
内の dispose
java.lang.Throwable
public void actionPerformed(java.awt.event.ActionEvent e)
java.awt.event.ActionListener
内の actionPerformed
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |