jp.ne.mki.wedge.sample.client.component.table
クラス SetTableEditableDelegate

java.lang.Object
  拡張jp.ne.mki.wedge.rule.base.AbstractBase
      拡張jp.ne.mki.wedge.rule.base.AbstractClient
          拡張jp.ne.mki.wedge.sample.client.component.table.SetTableEditableDelegate
すべての実装インタフェース:
jp.ne.mki.wedge.rule.base.interfaces.ClientInterface, jp.ne.mki.wedge.rule.base.interfaces.CommonInterface, jp.ne.mki.wedge.run.interfaces.RuleEngineInterface

public class SetTableEditableDelegate
extends jp.ne.mki.wedge.rule.base.AbstractClient

セル単位にて編集可・不可を制御する

テーブルセル単位にて編集可・不可を制御するサンプルです。
このサンプルでは、値がマイナス値だった場合には 編集不可にします。

セル単位にて編集可・不可を制御する為には、このコードのように、TableEditableDelegate を 実装したクラスを作成し、DefaultTable#setEditableDelegate に設定します。

このルールは、画面LOAD時に設定してください。

[I/O RECORD]

InputRecord OutputRecord
テーブルコンポーネントが割り当てられたアイテム

[RULE PARAMETER]

Parameter

使用にあたって

このクラスはサンプル提供のクラスです。
そのままお使い頂く事/修正して使用して頂く事 は可能ですが、 サポート対象外とさせて頂きます。
独自でクラス作成する際の参考資料としてお使いください。

導入されたバージョン:
webtribe/visualframe ver1.1.0
作成者:
Media Knowlege Industrial Co.,Ltd.

フィールドの概要
 
インタフェース 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
 
コンストラクタの概要
SetTableEditableDelegate()
           
 
メソッドの概要
 void dispose()
          画面終了時処理
 int execute()
          Delegateクラスをテーブルに設定
 void exit()
          ルール終了時処理
 int getIOParameter()
          出力引数の0番目よりテーブルコンポーネントを取得
 
クラス jp.ne.mki.wedge.rule.base.AbstractClient から継承したメソッド
executeCurrentAfter, executeRule, executeRule, getAdapterName, getCodeBase, getComponent, getComponent, getComponents, getContentPane, getCurrentComponent, getDesktop, getExecuteIndex, getExecuteParameter, getExecuteTiming, getExecutions, getExpectNextComponent, getFrame, getFrameRunner, getInItem, getInItem, getItems, getManager, getMemory, getOutItem, getOutItem, getParameter, getReturnString, getRevision, isApplet, isApplication, isClientTraceMode, isConpiled, isJWS, isServerTraceMode, isWeb, setErrorMessageMustInComp, setErrorMessageMustOutComp, setExecuteParameter, setFocus, setFocus, setFocus, setManager, setPropertyFromEngine, setStatusBarText, setWedgeLog, showDocument, showErrorDialog, showErrorDialog, showErrorDialog, showFrame, showFrame, terminate, writeErrorLog, writeErrorLog, writeLog, writeLog
 
クラス jp.ne.mki.wedge.rule.base.AbstractBase から継承したメソッド
createErrorMessage, 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, setControlRecord, setErrorMessage, setErrorMessageMustInRecord, setErrorMessageMustOutRecord, setErrorMessageMustParamIsNumber, setExecuteType, setHtmlManager, setId, setInRecord, setLogicalName, setOutputHtml, setOutRecord, setPhysicalName, setRuleParameter, setRuleType, setServerControlData, setServerParameter, setUserConstant, showErrorDialogAddRuleName, writeTraceLog
 
クラス java.lang.Object から継承したメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース jp.ne.mki.wedge.rule.base.interfaces.CommonInterface から継承したメソッド
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
 

コンストラクタの詳細

SetTableEditableDelegate

public SetTableEditableDelegate()
メソッドの詳細

getIOParameter

public int getIOParameter()
                   throws java.lang.Throwable
出力引数の0番目よりテーブルコンポーネントを取得

例外:
java.lang.Throwable

execute

public int execute()
            throws java.lang.Throwable
Delegateクラスをテーブルに設定

例外:
java.lang.Throwable

exit

public void exit()
          throws java.lang.Throwable
ルール終了時処理

例外:
java.lang.Throwable

dispose

public void dispose()
             throws java.lang.Throwable
画面終了時処理

例外:
java.lang.Throwable