MetaDone
metadone.client.grasyla2.GrasylaEngine.AttributeHandler< T > Class Reference

List of all members.

Public Member Functions

 AttributeHandler (Class< T > type, String name)
final String getName ()
abstract void valueChanged (Component<?extends T > comp) throws BadPreCondition
final Class< T > getType ()
GrasylaContext getContext (GrasylaEngine engine)

Private Attributes

final String name
final Class< T > type

Detailed Description

Represents an attribute handler.

Parameters:
<T>The type of the attribute
See also:
GrasylaEngine.isNativeAttribute(String)

Constructor & Destructor Documentation

metadone.client.grasyla2.GrasylaEngine.AttributeHandler< T >.AttributeHandler ( Class< T >  type,
String  name 
)

Initializes this attribute handler.

Parameters:
typeThe class
nameThe name of the attribute

Member Function Documentation

GrasylaContext metadone.client.grasyla2.GrasylaEngine.AttributeHandler< T >.getContext ( GrasylaEngine  engine)

Gets the context used for attribute child engines.

Parameters:
engineThe engine that will contain the attribute
Returns:
The context to use

References metadone.client.grasyla2.GrasylaEngine.getContext().

final String metadone.client.grasyla2.GrasylaEngine.AttributeHandler< T >.getName ( )

Gets the name of the attribute.

Returns:
The name
final Class<T> metadone.client.grasyla2.GrasylaEngine.AttributeHandler< T >.getType ( )

Gets the type.

Returns:
The class
abstract void metadone.client.grasyla2.GrasylaEngine.AttributeHandler< T >.valueChanged ( Component<?extends T >  comp) throws BadPreCondition [pure virtual]

Called when the value of the attribute has changed.

Parameters:
compThe new component value
Exceptions:
BadPreCondition

Member Data Documentation

final String metadone.client.grasyla2.GrasylaEngine.AttributeHandler< T >.name [private]
final Class<T> metadone.client.grasyla2.GrasylaEngine.AttributeHandler< T >.type [private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations