new ObservableValue(value, instance)
Parameters:
| Name | Type | Argument | Description | 
|---|---|---|---|
| value | * | <optional> | 初期値. | 
| instance | at.pkgs.ObservableValue | <optional> | インスタンス. | 
- Since:
- 0.1.5
 
- Source:
Extends
Members
- 
    handlers :Function[]
- 
    
    バインドされたイベントハンドラの配列. Type:- Function[]
 - Since:
- 0.1.0
 
- Inherited From:
- Source:
 
- 
    <readonly> parent :Object
- 
    
    親クラスのプロトタイプへの参照. Type:- Object
 - Since:
- 0.1.3
 
- Inherited From:
- Source:
 
- 
    <readonly> self :Function
- 
    
    コンストラクタへの参照. Type:- Function
 - Since:
- 0.1.0
 
- Inherited From:
- Source:
 
- 
    value :*
- 
    
    現在値. Type:- *
 - Since:
- 0.1.5
 
- Source:
 
Methods
- 
    bind(handler, top) → {at.pkgs.EventBinder}
- 
    
    
    イベントハンドラを登録する. Parameters:Name Type Argument Description handlerat.pkgs.EventBinder~EventHandler イベントハンドラ. topBoolean <optional> 
 ハンドラを末尾でなく先頭に追加する場合はtrueを指定. - Since:
- 0.1.0
 
- Inherited From:
- Source:
 Returns:イベントバインダ. - Type
- at.pkgs.EventBinder
 
- 
    changed(previous, current) → {Boolean}
- 
    
    
    値を比較する. 継承するか、インスタンスの本メソッドを上書きすることで比較方法を変更可能. Parameters:Name Type Description previous* 以前の値. current* 現在の値. - Since:
- 0.1.5
 
- Source:
 Returns:変化した場合はtrue; - Type
- Boolean
 
- 
    clear() → {at.pkgs.EventBinder}
- 
    
    
    全てのイベントハンドラを抹消する. - Since:
- 0.1.0
 
- Inherited From:
- Source:
 Returns:イベントバインダ. - Type
- at.pkgs.EventBinder
 
- 
    fire(arguments) → {at.pkgs.EventBinder}
- 
    
    
    イベントを発火(通知)する. Parameters:Name Type Argument Description arguments* <repeatable> 
 イベントハンドラに渡す引数. - Since:
- 0.1.0
 
- Inherited From:
- Source:
 Returns:イベントバインダ. - Type
- at.pkgs.EventBinder
 
- 
    get() → {*}
- 
    
    
    値を取得する. - Since:
- 0.1.5
 
- Source:
 Returns:現在の値. - Type
- *
 
- 
    immediate() → {Boolean}
- 
    
    
    指定された名称のプロパティを直接持つか取得する. Parameters:Name Type Description プロパティ名.String - Since:
- 0.1.5
 
- Inherited From:
- Source:
 Returns:持つならばtrue. - Type
- Boolean
 
- 
    set(value)
- 
    
    
    値を設定する. Parameters:Name Type Description value* 新しい値. - Since:
- 0.1.5
 
- Source:
 
- 
    unbind(handler) → {at.pkgs.EventBinder}
- 
    
    
    イベントハンドラを抹消する. Parameters:Name Type Description handlerat.pkgs.EventBinder~EventHandler イベントハンドラ. - Since:
- 0.1.0
 
- Inherited From:
- Source:
 Returns:イベントバインダ. - Type
- at.pkgs.EventBinder