Transfer version 1.1

transfer.com.collections
Class AbstractBaseObservable

WEB-INF.cftags.component
        extended by transfer.com.collections.AbstractBaseObservable
Direct Known Subclasses:
AbstractBaseObserverCollection , Transaction

public class AbstractBaseObservable
extends WEB-INF.cftags.component

An abstract base for an observable pattern


Constructor Summary
private init()
          Constructor
 
Method Summary
 void addObserver(any observer, [string key='[runtime expression]'])
          Adds an observer
private void fireActionMethod(any object, any event)
          virtual: fires the action method
 void fireEvent(any event)
          Fires off the event to all the Observers
private any getCollection()
private any getSystem()
 void removeObserver(any observer)
          Removes an observer from the collection
 void removeObserverByKey(any key)
          If you have the identity key, you can remove it
private void setCollection(any Collection)
private void setSystem(any System)
private any throw(string type, string message, [string detail=''])
          Throws an Exception
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

private init()
Constructor

Method Detail

addObserver

public void addObserver(any observer, [string key='[runtime expression]'])
Adds an observer

Parameters:
observer - The observer to be added
key - the key to add it under

fireActionMethod

private void fireActionMethod(any object, any event)
virtual: fires the action method

Parameters:
object - the object to fire against
event - The event object to fire

fireEvent

public void fireEvent(any event)
Fires off the event to all the Observers

Parameters:
event - The event object to fire

getCollection

private any getCollection()


getSystem

private any getSystem()


removeObserver

public void removeObserver(any observer)
Removes an observer from the collection

Parameters:
observer - The observer to be removed (may be the soft reference)

removeObserverByKey

public void removeObserverByKey(any key)
If you have the identity key, you can remove it

Parameters:
key - The key to remove by

setCollection

private void setCollection(any Collection)

Parameters:
Collection

setSystem

private void setSystem(any System)

Parameters:
System

throw

private any throw(string type, string message, [string detail=''])
Throws an Exception

Parameters:
type - The type of exception
message - The message to accompany the exception
detail - The detail message for the exception

Transfer version 1.1