public abstract class AbstractSwingVirtualComponent extends AbstractVirtualComponent implements SwingVirtualComponent
修飾子とタイプ | フィールドと説明 |
---|---|
protected static java.lang.String |
ATTR_Background
定義から取得する属性値キー(背景色)
|
protected static java.lang.String |
ATTR_Foreground
定義から取得する属性値キー(前景色)
|
protected static java.lang.String |
ATTR_OnChange
定義の属性値キー
|
COMPONENT_DEFINITION
コンストラクタと説明 |
---|
AbstractSwingVirtualComponent() |
修飾子とタイプ | メソッドと説明 |
---|---|
protected void |
arrangeFont(java.awt.Component target,
java.awt.Font font)
画面上のフォントを設定し直す
|
void |
destroy()
終了処理を行う。
|
protected abstract void |
destroyLocal()
destoryメソッドの最後にコールされる。
|
protected void |
fireOnChange(java.util.EventObject e)
onChange属性が指定されている場合はイベントを発行する。
|
protected AreaEventListener |
getAreaEventListener()
エリアに登録するイベントリスナを取得する。
|
protected java.awt.Color |
getBackground()
背景色設定を取得する
|
protected java.awt.Font |
getComponentFont(java.awt.Component target)
コンポーネントに適用するフォントを取得する
|
protected java.awt.Color |
getDisabledBackground()
disable時の背景色を取得する。
|
protected java.awt.Color |
getEnabledBackground()
enable時の背景色を取得する。
|
protected java.awt.Color |
getForeground()
前景色設定を取得する
|
protected java.awt.Component |
getGUIComponent()
この仮想コンポーネントが制御するGUIコンポーネントを取得する。
|
protected java.awt.Font |
getPopupMenuFont(java.awt.Component target)
PopupMenuに適用するフォントを取得する
|
java.util.Collection |
getRealComponent()
仮想コンポーネントがラッピングしている実際の制御対象コンポーネントを返す
|
protected java.awt.Color |
getRequiredBackground()
必須入力項目時の背景色を取得する
|
protected SwingArea |
getSwingArea()
自身が所属するAreaをSwingAreaのインスタンスとして取得する
|
protected abstract java.lang.Class[] |
getTargetGUIComponentTypes()
仮想コンポーネントが制御対象とするGUIコンポーネントのクラスを配列で返す。
|
void |
input(ClientEvent e)
コンポーネントによる値の入力確定を行う
|
protected abstract void |
inputLocal(ClientEvent e)
doInputメソッドの最後にコールされる。
|
void |
installAccessControlPermission(ClientEvent e)
コンポーネントの権限制御パーミッションをインストールする
|
protected boolean |
isChanged(java.util.EventObject e)
前回の入力確定時と現時点を比べて、入力値が変更されているかを判定する。
|
boolean |
isFocusOwner()
仮想コンポーネントに対応するSwingのGUIコンポーネントが
フォーカスを保持しているかを判定する。
|
boolean |
isInputValidationSucceeded()
入力バリデーションが成功したかを返す
|
protected boolean |
isRefreshable(ClientEvent e)
表示リフレッシュを行える状態かを判定する
|
boolean |
isTextComponent()
テキスト系コンポーネントかを判定する。
|
protected void |
onChange(ClientEvent e)
入力処理が発生したことを契機とする実行を実行する。
|
protected java.awt.Component |
prepareGUIComponent(ClientEvent e)
リッチクライアントの具象GUIコンポーネントを用意する処理のデフォルト実装。
|
protected void |
removePopupMenu()
ポップアップメニューを削除する
|
protected void |
requestFocus()
GUIコンポーネントに対してフォーカスを要求する
|
void |
resetWaitingCursor()
カーソルを通常状態に戻す
|
protected void |
savePreference()
ユーザー設定の保存処理を行う
このクラスでは空実装となるので、必要に応じてオーバーライドしてください。
|
protected void |
setBackground(java.awt.Color background)
コンポーネントに背景色を設定する
|
protected void |
setEditable()
Text系コンポーネントのeditable属性を設定する
|
protected void |
setEnabledLocal(boolean enabled)
コンポーネントの有効、無効を設定する
|
protected void |
setForeground(java.awt.Color foreground)
コンポーネントに前景色を設定する
|
protected void |
setGUIComponent(java.awt.Component comp)
この仮想コンポーネントが制御するGUIコンポーネントを登録する
|
protected void |
setRefreshable()
リフレッシュ区分を設定する
|
protected void |
setToolTip()
コンポーネントに対するToolTip設定を行う
|
protected void |
setupFont()
コンポーネントのフォントを設定する
|
protected void |
setupPopupMenu()
ポップアップメニューが定義されている場合にセットアップする
|
protected void |
setVisibleLocal(boolean visible)
コンポーネントの表示、非表示を設定する
|
void |
setWaitingCursor()
カーソルを待機状態に設定する
|
void |
start(ClientEvent e)
Componentの処理を開始する。
|
protected abstract void |
startLocal(ClientEvent e)
startメソッドの最後にコールされる。
|
void |
update(ClientEvent e)
Componentの表示を更新する
|
protected abstract void |
updateLocal(ClientEvent e)
updateメソッドの最後にコールされる。
|
addAvailableState, addComponentEventListener, addProcessEvent, fireDisplayUpdated, fireEventTriggered, fireInputFixed, getArea, getClientContext, getComponentEventListeners, getDefinition, getInstanceID, getPreference, getReference, getTranslator, init, installArea, isAvailableState, isEnabled, isEnabledCondition, isSavePreference, isStarted, isVisible, isVisibleCondition, removeComponentEventListener, setEnabled, setPreference, setStarted, setVisible, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addComponentEventListener, fireDisplayUpdated, fireEventTriggered, fireInputFixed, getArea, getClientContext, getComponentEventListeners, getDefinition, getInstanceID, getPreference, getTranslator, installArea, removeComponentEventListener, setPreference
getReference
protected static final java.lang.String ATTR_OnChange
protected static final java.lang.String ATTR_Background
protected static final java.lang.String ATTR_Foreground
public void start(ClientEvent e) throws RecoverableException
start
インタフェース内 VirtualComponent
e
- イベント情報RecoverableException
- 回復可能な業務例外public void update(ClientEvent e) throws RecoverableException
update
インタフェース内 VirtualComponent
e
- イベント情報RecoverableException
- 回復可能な業務例外public void input(ClientEvent e) throws RecoverableException
input
インタフェース内 VirtualComponent
e
- イベント情報RecoverableException
- 回復可能な業務例外public void destroy()
destroy
インタフェース内 VirtualComponent
destroy
クラス内 AbstractVirtualComponent
public boolean isFocusOwner()
isFocusOwner
インタフェース内 SwingVirtualComponent
public boolean isTextComponent()
isTextComponent
インタフェース内 SwingVirtualComponent
public void setWaitingCursor()
setWaitingCursor
インタフェース内 SwingVirtualComponent
public void resetWaitingCursor()
resetWaitingCursor
インタフェース内 SwingVirtualComponent
public boolean isInputValidationSucceeded()
isInputValidationSucceeded
インタフェース内 SwingVirtualComponent
public java.util.Collection getRealComponent()
getRealComponent
インタフェース内 VirtualComponent
public void installAccessControlPermission(ClientEvent e) throws RecoverableException
installAccessControlPermission
インタフェース内 VirtualComponent
installAccessControlPermission
クラス内 AbstractVirtualComponent
e
- イベント情報RecoverableException
- パーミッション設定に失敗protected java.awt.Component getGUIComponent()
protected void setGUIComponent(java.awt.Component comp)
comp
- 制御対象のswingのGUIコンポーネントprotected java.awt.Component prepareGUIComponent(ClientEvent e)
e
- イベント情報protected java.awt.Color getBackground()
protected void setBackground(java.awt.Color background)
background
- 背景色protected java.awt.Color getForeground()
protected void setForeground(java.awt.Color foreground)
foreground
- protected AreaEventListener getAreaEventListener()
getAreaEventListener
クラス内 AbstractVirtualComponent
protected void setVisibleLocal(boolean visible)
setVisibleLocal
クラス内 AbstractVirtualComponent
visible
- 表示するならtrue、しないならfalseprotected void setEnabledLocal(boolean enabled)
setEnabledLocal
クラス内 AbstractVirtualComponent
enabled
- 有効ならtrue、無効ならfalseprotected void setToolTip()
protected SwingArea getSwingArea()
protected void requestFocus()
protected boolean isChanged(java.util.EventObject e)
e
- イベント情報protected void setRefreshable()
protected boolean isRefreshable(ClientEvent e)
e
- イベント情報protected void onChange(ClientEvent e)
e
- イベント情報protected void fireOnChange(java.util.EventObject e)
e
- イベント発行の契機となった原因イベント情報protected java.awt.Color getEnabledBackground()
protected java.awt.Color getDisabledBackground()
protected java.awt.Color getRequiredBackground()
protected void setupFont()
protected java.awt.Font getComponentFont(java.awt.Component target)
target
- 適用対象のコンポーネントprotected java.awt.Font getPopupMenuFont(java.awt.Component target)
target
- 適用対象のコンポーネントprotected void arrangeFont(java.awt.Component target, java.awt.Font font)
target
- 設定対象のコンポーネントfont
- フォントオブジェクトprotected void setupPopupMenu()
protected void removePopupMenu()
protected void savePreference()
protected void setEditable()
protected abstract java.lang.Class[] getTargetGUIComponentTypes()
protected abstract void startLocal(ClientEvent e) throws RecoverableException
e
- イベント情報RecoverableException
- 回復可能な業務例外protected abstract void updateLocal(ClientEvent e) throws RecoverableException
e
- イベント情報RecoverableException
- 回復可能な業務例外protected abstract void inputLocal(ClientEvent e) throws RecoverableException
e
- イベント情報RecoverableException
- 回復可能な業務例外protected abstract void destroyLocal()