|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object jp.go.aist.dmrc.platform.beans.util.controller.PFWhileCountController
public class PFWhileCountController
繰り返し処理(While)コンポーネント。while文またはdo while文に対応する。 条件が真である間繰り返し処理を行い、1回のループごとにアクションイベントを発生させる。 条件判定は、1回のループごとに発生する処理要求イベントの戻り値の評価か、 または処理要求イベントの発生が終了した時点のContinued属性の評価で行う。
条件の設定の仕方によっては無限ループに陥るので、注意を要する。
このコンポーネントから以下のイベントが発生する。
トリガー | イベント番号 |
---|---|
callメソッド呼出 | 0 |
トリガー | 処理要求データ | イベント番号 |
---|---|---|
callメソッド呼出 | (なし) | 0 |
コンストラクタの概要 | |
---|---|
PFWhileCountController()
デフォルトコンストラクタ |
メソッドの概要 | |
---|---|
void |
addPFActionListener(PFActionListener lis)
引数で与えられたイベントリスナを登録し、 アクションイベント発生時に処理を行う対象とする。 |
void |
addPFProcessRequestListener(PFProcessRequestListener lis)
引数で与えられたイベントリスナを登録し、 処理要求イベント発生時に処理を行う対象とする。 |
void |
call()
処理実行。 |
void |
call(int begin,
int step)
処理実行(詳細指定)。 |
protected boolean |
firePFActionPerformed(PFActionEvent event)
アクションイベントをリスナーに通知する。 |
int |
getComponentID()
コンポーネントIDを取得する。 |
java.lang.String |
getComponentKey()
コンポーネントキーを取得する。 |
PFMultiLocaleString |
getComponentKeys()
全ロケール分のコンポーネントキーを返す。 |
java.lang.String |
getComponentName()
コンポーネント名称を取得する。 |
java.lang.String |
getComponentPublicName()
コンポーネント公開名を取得する. |
java.lang.String |
getComponentString()
コンポーネントの文字列表現を取得する。 |
int |
getCurrent()
ループ回数の現在値を取得する。 |
java.util.Iterator |
getPFActionListenerList()
イベントリスナ配列を取得する。 |
java.util.Iterator |
getPFProcessRequestListenerList()
処理要求イベントリスナ配列を取得する。 |
boolean |
isAllowPullTransfer()
他PFからのPull型コンポーネント転送要求に対する可否属性を取得する. |
boolean |
isAllowPushTransfer()
他PFへのPush型コンポーネント転送要求に対する可否属性を取得する. |
boolean |
isAllowRemoteInvocation()
他PFからのコンポーネント連携要求に対する可否属性を取得する. |
boolean |
isContinued()
ループを続行するかどうかを取得する。 |
boolean |
isContinueWhenErrorOccurred()
エラーが発生したときも処理を継続するかどうかを取得する。 |
boolean |
isDoWhileType()
条件の評価を後(do-while型)にするかどうかを取得する。 |
void |
localeUpdated()
ロケール変更に対応する。 |
void |
readXML(PFXMLLoader in)
コンポーネントのXML入力. |
void |
removePFActionListener(PFActionListener lis)
引数で与えられたイベントリスナを削除し、 アクションイベント発生時に処理を行う対象から外す。 |
void |
removePFProcessRequestListener(PFProcessRequestListener lis)
引数で与えられたイベントリスナを削除し、 処理要求イベント発生時に処理を行う対象から外す。 |
void |
setAllowPullTransfer(boolean flag)
他PFからのPull型コンポーネント転送要求に対する可否属性を設定する. |
void |
setAllowPushTransfer(boolean flag)
他PFへのPush型コンポーネント転送要求に対する可否属性を設定する. |
void |
setAllowRemoteInvocation(boolean flag)
他PFからのコンポーネント連携要求に対する可否属性を設定する. |
void |
setComponentID(int id)
コンポーネントIDを設定する。 |
void |
setComponentKey(java.lang.String key)
コンポーネントのキー情報を設定する |
void |
setComponentKeys(PFMultiLocaleString keys)
全ロケール分のコンポーネントキーを設定する。 |
void |
setComponentPublicName(java.lang.String publicName)
コンポーネント公開名を設定する. |
void |
setContinued(boolean value)
ループを続行するかどうかを設定する。 |
void |
setContinueWhenErrorOccurred(boolean cont)
エラーが発生したときも処理を継続するかどうかを設定する。 |
void |
setDoWhileType(boolean value)
条件の評価を後(do-while型)にするかどうかを設定する。 |
void |
writeXML(PFXMLGenerator out)
コンポーネントのXML出力. |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public PFWhileCountController()
メソッドの詳細 |
---|
public java.lang.String getComponentName()
PFComponent
内の getComponentName
PFComponent.getComponentName()
public java.lang.String getComponentKey()
PFComponent
内の getComponentKey
PFComponent.getComponentKey()
public void setComponentKey(java.lang.String key)
PFComponent
内の setComponentKey
key
- 設定するコンポーネントのキーPFComponent.setComponentKey(java.lang.String)
public PFMultiLocaleString getComponentKeys()
public void setComponentKeys(PFMultiLocaleString keys)
keys
- 全ロケール分のコンポーネントキーpublic int getComponentID()
PFComponent
内の getComponentID
PFComponent.getComponentID()
public void setComponentID(int id)
PFComponentBus
から設定される。
各コンポーネント内では操作しないこと。
PFComponent
内の setComponentID
id
- 設定するコンポーネントIDPFComponent.setComponentID(int)
public java.lang.String getComponentString()
PFComponent
内の getComponentString
PFComponent.getComponentString()
public java.lang.String getComponentPublicName()
PFComponent
内の getComponentPublicName
public void setComponentPublicName(java.lang.String publicName) throws PFComponentException
PFComponent
内の setComponentPublicName
publicName
- 設定するコンポーネント公開名
PFComponentException
- 規約に反する名前が設定されようとした場合public boolean isAllowRemoteInvocation()
PFComponent
内の isAllowRemoteInvocation
public void setAllowRemoteInvocation(boolean flag)
PFComponent
内の setAllowRemoteInvocation
flag
- コンポーネント連携要求に対する可否public boolean isAllowPullTransfer()
PFComponent
内の isAllowPullTransfer
public void setAllowPullTransfer(boolean flag)
PFComponent
内の setAllowPullTransfer
flag
- Pull型コンポーネント転送要求に対する可否public boolean isAllowPushTransfer()
PFComponent
内の isAllowPushTransfer
public void setAllowPushTransfer(boolean flag)
PFComponent
内の setAllowPushTransfer
flag
- Push型コンポーネント転送要求に対する可否public java.util.Iterator getPFProcessRequestListenerList()
PFProcessRequestEventSource
内の getPFProcessRequestListenerList
public void addPFProcessRequestListener(PFProcessRequestListener lis)
PFProcessRequestEventSource
内の addPFProcessRequestListener
lis
- 追加対象イベントリスナpublic void removePFProcessRequestListener(PFProcessRequestListener lis)
PFProcessRequestEventSource
内の removePFProcessRequestListener
lis
- 削除対象イベントリスナpublic java.util.Iterator getPFActionListenerList()
PFActionEventSource
内の getPFActionListenerList
public void addPFActionListener(PFActionListener lis)
PFActionEventSource
内の addPFActionListener
lis
- 追加対象イベントリスナpublic void removePFActionListener(PFActionListener lis)
PFActionEventSource
内の removePFActionListener
lis
- 削除対象イベントリスナpublic void localeUpdated()
PFComponent
内の localeUpdated
PFComponent.localeUpdated()
public void readXML(PFXMLLoader in)
PFXMLSerializable
内の readXML
in
- XML入力ユーティリティpublic void writeXML(PFXMLGenerator out) throws java.io.IOException
PFXMLSerializable
内の writeXML
out
- XML出力ユーティリティ
java.io.IOException
public int getCurrent()
public boolean isContinueWhenErrorOccurred()
public void setContinueWhenErrorOccurred(boolean cont)
cont
- エラーが発生したときも処理を継続する場合truepublic boolean isDoWhileType()
public void setDoWhileType(boolean value)
value
- do-while型の場合 truepublic boolean isContinued()
public void setContinued(boolean value)
value
- ループを続行する場合 truepublic void call() throws PFException
PFException
- イベント処理エラーまたは再帰呼出された場合public void call(int begin, int step) throws PFException
begin
- ループカウンタの初期値step
- ループカウンタの増分
PFException
- イベント処理エラーまたは再帰呼出された場合protected boolean firePFActionPerformed(PFActionEvent event) throws PFException
event
- アクションイベント
PFException
- イベント処理エラー
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |