jp.ne.mki.wedge.rule.client.component.frame
クラス SetFrameKeyLisnterExtends
java.lang.Object
|
+--jp.ne.mki.wedge.rule.base.AbstractBase
|
+--jp.ne.mki.wedge.rule.base.AbstractClient
|
+--jp.ne.mki.wedge.rule.client.component.frame.SetFrameFunctionKeyListener
|
+--jp.ne.mki.wedge.rule.client.component.frame.SetFrameKeyLisnterExtends
- すべての実装インタフェース:
- ClientInterface, CommonInterface, RuleEngineInterface
- public class SetFrameKeyLisnterExtends
- extends SetFrameFunctionKeyListener
フレームのキーリスナー設定(現在のAfter実行処理含む)
パラメータに指定された modifier + key の キーが入力され離された(RELEASED)のタイミングにて、
入力引数に設定されたITEMのBefore,Afterを実行します。
SetFrameFunctionKeyLisnter との差として、このルールでは 現在のカレントコンポーネント
のAfter処理を実行し、その結果フォーカス移動可である場合のみ入力引数のBefore,Afterを
実行します。
また、入力引数のBefore,Afterの処理にて フォーカス移動処理が含まれている場合には
フォーカス移動をおこないます。
コンポーネントが無い状態でも、KeyMapと同等の処理になるように考慮されたものになります。
パラメータの指定は必ず行ってください。
指定方法は modifierのキー番号;処理するキー番号 になります。
例えば、Ctl + A を指定したい場合には "2;65" と指定します。
Modifierのキー番号:Ctrl =2, Alt = 8, Shift=1, なし=0
処理するキー番号:java.awt.event.KeyEventの定数。VK_Aは65、VK_1は49、VK_F1は112 になります。
このルールでは、フォーカス移動を行わずに フォーカス移動を行った処理を擬似的に作成しているため、
Before,Afterの実行条件が実行エンジンの仕様と矛盾してしまいます。
そのため、基本的に使用は推奨していない事、
実行リストの設定方法などにより正常に動作しない場合がある事、
このルールにより不具合を招いた場合、標準ルールの修正としての対応が出来ない事がある事 は
予めご了承ください。
ご使用に当たっては、使用される実行リストにて正常に動作するかどうかをよく確認をお願いいたします。
[I/O RECORD]
InputRecord |
OutputRecord |
実行するITEM(複数指定)
|
|
[RULE PARAMETER]
Parameter |
modifierのKey番号;Key番号
|
- 導入されたバージョン:
- 1.1.0
- バージョン:
- 1.0
- 作成者:
- mki
フィールドの概要 |
(パッケージプライベート) int |
key
|
(パッケージプライベート) int |
modifier
|
クラス jp.ne.mki.wedge.rule.base.AbstractBase から継承したフィールド |
controlRecord, errorMessage, executeType, id, inputRecord, logicalName, 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 |
クラス jp.ne.mki.wedge.rule.base.AbstractClient から継承したメソッド |
executeCurrentAfter, executeRule, executeRule, getAdapterName, getClientRuleObject, getCodeBase, getComponent, getComponent, getComponents, getConfig, getConfImagePath, getContentPane, getCurrentComponent, getDesktop, getExecuteIndex, getExecuteParameter, getExecuteTiming, getExecutions, getExpectNextComponent, getFrame, getImageIcon, getInItem, getInItem, getItems, getManager, getMemory, getOutItem, getOutItem, getParameter, getReturnString, getRevision, isApplet, isApplication, isClientTraceMode, isConpiled, isJWS, isServerTraceMode, isWeb, loopInOutItem, loopInOutItemSub, loopOutItem, loopOutItemSub, setErrorMessageMustInComp, setErrorMessageMustOutComp, setExecuteParameter, setFocus, setFocus, setFocus, setManager, setPropertyFromEngine, setStatusBarText, setWedgeLog, showDocument, showErrorDialog, showErrorDialog, showFrame, showFrame, terminate, writeErrorLog, writeErrorLog, writeErrorLog, writeErrorLog, writeLog, writeLog, writeTraceLog |
クラス jp.ne.mki.wedge.rule.base.AbstractBase から継承したメソッド |
callDispose, createErrorMessage, dispose, getAppAccount, getAppAuthority, getAppMenu, getAppPassword, getClassErrorName, getClientId, getConnectionId, getConnectionPoolId, getConstantValue, getDbAccessCount, getDbErrorCode, getDbErrorMessage, getDbStatus, getDbUpdatedRecordCount, getErrorMessage, getErrorMessage, getErrorMessage, getExceptionMessage, getExecuteType, getId, getInRecord, getInRecord, getInRecord, getInRecordCount, getIpAddress_G_Index, getIpAddress_P_Index, getLogicalErrorName, getLogicalName, getOutputHtml, getOutRecord, getOutRecord, getOutRecord, getOutRecordCount, getPhysicalErrorName, getPhysicalName, getProjectId, getQueryEndLine, getQueryMaxCount, getQueryPageCount, getQueryStartLine, getRuleParameter, getRuleParameters, getRuleParameters, getRuleParameters, getRuleType, getRuleTypeName, getServerMessage, getServerParameter, getServerStatus, getServerSubName, getServerSubRevision, getServerTran, getUpdateErrorLine, getUpdateTargetCount, getWebServerIpAddress, isExecutable, loopInOutRecord, loopInOutRecordSub, loopInRecord, loopInRecordSub, loopOutRecord, loopOutRecordSub, setControlRecord, setErrorMessage, setErrorMessageMustInRecord, setErrorMessageMustOutRecord, setErrorMessageMustParamIsNumber, setExecuteType, setHtmlManager, setId, setInRecord, setLogicalName, setOutputHtml, setOutRecord, setPhysicalName, setRuleParameter, setRuleType, setServerControlData, setServerParameter, setUserConstant, showErrorDialogAddRuleName, writeTraceLog |
クラス java.lang.Object から継承したメソッド |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
インタフェース jp.ne.mki.wedge.rule.base.interfaces.CommonInterface から継承したメソッド |
dispose, getAppAccount, getAppAuthority, getAppMenu, getAppPassword, getClassErrorName, getClientId, getConnectionId, getConnectionPoolId, getDbAccessCount, getDbErrorCode, getDbErrorMessage, getDbStatus, getExceptionMessage, getExecuteType, getId, getInRecord, getInRecord, getInRecord, getIpAddress_G_Index, getIpAddress_P_Index, getLogicalErrorName, getLogicalName, getOutRecord, getOutRecord, getOutRecord, getPhysicalErrorName, getPhysicalName, getProjectId, getQueryEndLine, getQueryMaxCount, getQueryPageCount, getQueryStartLine, getRuleParameter, getRuleParameters, getRuleType, getServerMessage, getServerParameter, getServerStatus, getServerSubName, getServerSubRevision, getServerTran, getUpdateErrorLine, getUpdateTargetCount, getWebServerIpAddress, isExecutable, setExecuteType, setRuleType, setServerParameter, showErrorDialogAddRuleName, writeTraceLog |
modifier
int modifier
key
int key
SetFrameKeyLisnterExtends
public SetFrameKeyLisnterExtends()
getIOParameter
public int getIOParameter()
- パラメータより、modifierのキー番号と、処理キー番号を取得
- オーバーライド:
- クラス
SetFrameFunctionKeyListener
内の getIOParameter
- 戻り値:
- int OK=処理続行、ERROR=異常終了、CANCEL=処理を中断(正常終了)
getActionKey
public int getActionKey()
- 実行キーを返す
- オーバーライド:
- クラス
SetFrameFunctionKeyListener
内の getActionKey
- 戻り値:
- java.awt.KeyEventのキー定数
getModifiers
public int getModifiers()
- Modifiersを返す
Modifiers無しの場合は 0 を返します。
- オーバーライド:
- クラス
SetFrameFunctionKeyListener
内の getModifiers
- 戻り値:
- java.awt.KeyEventのマスク
getActionMapKey
public java.lang.String getActionMapKey()
- ActionMapに登録するKeyを取得する
- オーバーライド:
- クラス
SetFrameFunctionKeyListener
内の getActionMapKey
- 戻り値:
-
loopInItem
protected int loopInItem()
- 入力アイテムの処理を行う
フォーカス移動指定がある場合にはフォーカス移動する
- オーバーライド:
- クラス
AbstractClient
内の loopInItem
getAction
public javax.swing.Action getAction()
- クラス
SetFrameFunctionKeyListener
の記述:
- Actionクラスを取得
- オーバーライド:
- クラス
SetFrameFunctionKeyListener
内の getAction
- クラス
jp.ne.mki.wedge.rule.client.component.frame.SetFrameFunctionKeyListener
からコピーされたタグ:
- 戻り値:
-