MetaDone
metadone.client.grasyla2.GrasylaEngine Class Reference
Inheritance diagram for metadone.client.grasyla2.GrasylaEngine:
Collaboration diagram for metadone.client.grasyla2.GrasylaEngine:

List of all members.

Classes

class  AttributeHandler< T >
class  ChildComponent
class  ConcreteObjectChangeHandler
class  HasType
class  SubscriberRegistration< T >

Public Types

enum  GrasylaEngineState {
  DISPOSED, BUILDING, DISPOSING, READY,
  ACTIVE
}

Public Member Functions

 GrasylaEngine (GrasylaContext context, ConcreteObject expression, Engine parent) throws BadPreCondition
final boolean isAdapted ()
GrasylaEngineState getState ()
Set< Subscriber<?super
Component<?> > > 
getComponentChangeSubscribers ()
GrasylaContext getContext ()
Engine getParent ()
boolean isClassSupported (Class<?> clComp)
final ConcreteObject getExpression ()
List<?extends GrasylaEnginegetChildren ()
Iterable<?extends GrasylaEnginegetChildrenExpressions ()
final void dispose ()
final< C > Component<?extends C > buildComponent (Class< C > clComp, boolean active)
void refresh ()
boolean isActive ()
void unregisterSubscriber (Subscriber<?> subscriber)
final void registerAttributeHandler (AttributeHandler<?> handler)
final< T > Component<?extends T > buildChild (GrasylaContext context, Class< T > clComp, ConcreteObject expr, Object attr) throws BadPreCondition
final void buildChildrenExpressions (GrasylaContext context, Class<?> clComp) throws BadPreCondition
void trigger (EngineEvent event)
final void notifyChildChanged (Engine child)
Iterator< ConcreteObjectgetContainedExpressions () throws BadPreCondition
Iterator< Pair< String,
ConcreteObject > > 
getContainedAttributes () throws BadPreCondition
Iterator< ConcreteObjectgetAttributes (final String name) throws BadPreCondition
Iterator< ConcreteObjectgetContainedVariables () throws BadPreCondition
void debugEngineTreeGraphViz (Appendable out, boolean recursive, int verbose) throws IOException

Protected Types

enum  FindIndex { NORMAL, NO_ATTR, COMPSIZE, COMPSIZE_NEXT }

Protected Member Functions

void initActionHander ()
BootstrapGrasyla getGrasyla ()
MetadoneEvents getEventManager ()
GrasylaContext updateContext (final GrasylaContext context) throws BadPreCondition
final void removeChild (Engine e)
final ChildComponent removeChildWithoutDispose (Engine e)
final void clearChildren ()
final void clearChildrenExpressions ()
ChildComponent getChildComponent (GrasylaEngine engine)
GrasylaEngine getChildEngine (Component<?> comp)
void finalize () throws Throwable
void disposeInternal ()
void createAttributes () throws BadPreCondition
boolean isNativeAttribute (String name)
abstract< C > Component
<?extends C > 
buildNewComponent (Class< C > clComp) throws BadPreCondition
void activate ()
boolean canActivateChild (GrasylaEngine ch)
void deactivate ()
void registerAttributeHandler (AttributeHandler<?> handler, boolean overwrite)
AttributeHandler<?> removeAttributeHandler (String name)
final void building (boolean go)
void building_hook (boolean go)
final boolean isBuilding ()
void updateComponent (Component<?> component)
int findIndex (Engine child, FindIndex opt)
void notifyChildChanged (Engine child, ChildComponent comp)
void setCanUpdateObject (boolean b)
Component<?> updateToConcreteObject (ConcreteObjectGroupChange event)
void debugEngineTreeGraphViz_nodeContents (Appendable out, int verbose) throws IOException

Static Protected Member Functions

static String graphviz_escape (String s)

Static Protected Attributes

static final Logger logger = Logger.getLogger(GrasylaEngine.class)

Package Functions

protected< T > Component
<?extends T > 
addChild (GrasylaEngine e, Class< T > clComp, Object attr)
public< C > Component<?extends C > getComponent (Class< C > clComp)
private< T > void createAttribute (AttributeHandler< T > handler, ConcreteObject expr) throws BadPreCondition
public< T > void registerSubscriber (boolean activation, boolean persist, EventTower<?super T > manager, Class< T > cl, MapFct<?super T, Boolean > predicate, Subscriber<?super T > subscriber)
protected< C > Component
<?extends C > 
getChildComponent (Class< C > clComp, boolean active, GrasylaEngine engine)

Private Member Functions

Iterator< ConcreteObjectgetContained () throws BadPreCondition

Private Attributes

final GrasylaContext context
final ConcreteObject expression
Component<?> component
GrasylaEngineState state = GrasylaEngineState.DISPOSED
int building
final Set< Subscriber<?super
Component<?> > > 
componentChangeSubscribers = new HashSet<Subscriber<? super Component<?>>>()
final Engine parent
final List< GrasylaEnginechildren = new ArrayList<GrasylaEngine>()
final transient List
< GrasylaEngine
children_unmodif = Collections.unmodifiableList(children)
final Map< GrasylaEngine,
ChildComponent
childrenComponents = new HashMap<GrasylaEngine, ChildComponent>()
final Set
< SubscriberRegistration<?> > 
subscribers = new HashSet<SubscriberRegistration<?>>()
final Map< String,
AttributeHandler<?> > 
attributes = new HashMap<String, AttributeHandler<?>>()

Detailed Description

The base for all grasyla engines.

A Grasyla engine is responsible for producing and managing a component based on the expression and the context.

An engine can be in various states. It may hold created component. It can be active: meaning that observers are registered for repository events which will trigger updates to the held component. The engine has also a way to indicate whether a build is in progress using isBuilding(). Also the state of the engine is indicated using getState().

The engine manages automatically its children. It means that children components can be easily accessed or created. The state of child engines is also managed: if this engine is disposed, its children are also disposed. The same happens for the activation of child engines. Also, this behavior can be overwritten by a subclass.

Attributes are so common, that AttributeHandler can be used to keep track of the build attribute components. Moreover, the engine manages subscriptions to events which can be subscribed or unsubscribed when a component is built or when the engine's activation state changes.

Author:
kma

Member Enumeration Documentation

How to find the index of a child.

Enumerator:
NORMAL 

normal search

NO_ATTR 

skip attributes

COMPSIZE 

return the previous component size sum

COMPSIZE_NEXT 

return the previous and current component size sum

The state of the engine.

Enumerator:
DISPOSED 

Disposed engine, does not have a component nor any children.

BUILDING 

Going from DISPOSED to READY.

DISPOSING 

Going from READY to DISPOSED.

READY 

The component is built.

ACTIVE 

The component is built and subscriptions for event are active.


Constructor & Destructor Documentation


Member Function Documentation

protected<T> Component<? extends T> metadone.client.grasyla2.GrasylaEngine.addChild ( GrasylaEngine  e,
Class< T >  clComp,
Object  attr 
) [package]

Adds a child to this engine.

The parent of the given engine must be this object.

Parameters:
eThe engine to add
clCompThe component class to build or null
attrA string indicating the name of the attribute, an integer indicating the position where to insert the child, a pair (string, integer), otherwise null
Returns:
The active component or null if clComp was null
See also:
#buildChild(GrasylaContext, Class, ConcreteObject, String)

References metadone.client.grasyla2.GrasylaEngine.canActivateChild(), metadone.client.grasyla2.GrasylaEngine.children, metadone.client.grasyla2.GrasylaEngine.childrenComponents, metadone.client.grasyla2.GrasylaEngine.getChildComponent(), metadone.client.grasyla2.GrasylaEngine.getParent(), and metadone.client.grasyla2.GrasylaEngine.isActive().

Referenced by metadone.client.grasyla2.GrasylaEngine.buildChild().

final<T> Component<? extends T> metadone.client.grasyla2.GrasylaEngine.buildChild ( GrasylaContext  context,
Class< T >  clComp,
ConcreteObject  expr,
Object  attr 
) throws BadPreCondition

Builds a child component.

Parameters:
<T>The type
contextThe context for the child
clCompThe class
exprThe expression for the child or null to read from the context
attrThe attribute (may be null)
Returns:
The component built by the created child
Exceptions:
BadPreCondition
See also:
#addChild(GrasylaEngine, Class, Object)

References metadone.client.grasyla2.GrasylaEngine.addChild(), metadone.client.grasyla2.GrasylaEngine.context, metadone.client.grasyla2.GrasylaEngineFactory.createEngine(), metadone.client.grasyla2.GrasylaContext.getEquation(), metadone.client.grasyla2.GrasylaContext.getFactory(), and metadone.metabusiness.syntax.grasyla.GrasylaEquation.getRHS().

Referenced by metadone.client.grasyla2.GrasylaEngine.buildChildrenExpressions(), metadone.client.grasyla2.ref.SideEngine.buildNewComponent(), metadone.client.grasyla2.ref.MetaEngine.buildNewComponent(), metadone.client.grasyla2.GrasylaInterpreter.buildNewComponent(), metadone.client.grasyla2.generic.TailEngine.buildNewComponent(), metadone.client.grasyla2.generic.ListEngine.buildNewComponent(), metadone.client.grasyla2.generic.IfEngine.buildNewComponent(), metadone.client.grasyla2.generic.HeadEngine.buildNewComponent(), metadone.client.grasyla2.generic.GuardEngine.buildNewComponent(), metadone.client.grasyla2.generic.GroupEngine.buildNewComponent(), metadone.client.grasyla2.generic.ListEngine.buildSeparator(), metadone.client.grasyla2.GrasylaEngine.createAttribute(), metadone.client.grasyla2.generic.IfEngine.evaluate(), metadone.client.grasyla2.generic.IfEngine.evaluateSimple(), metadone.client.grasyla2.generic.ModelEngine.updateContext(), and metadone.client.grasyla2.generic.ListEngine.updateToConcreteObject().

final void metadone.client.grasyla2.GrasylaEngine.buildChildrenExpressions ( GrasylaContext  context,
Class<?>  clComp 
) throws BadPreCondition

Builds all children components.

Parameters:
contextThe context
clCompThe component class
Exceptions:
BadPreCondition
See also:
getContainedExpressions()
#buildChild(GrasylaContext, Class, ConcreteObject, Object)

References metadone.client.grasyla2.GrasylaEngine.buildChild(), metadone.client.grasyla2.GrasylaEngine.context, and metadone.client.grasyla2.GrasylaEngine.getContainedExpressions().

final void metadone.client.grasyla2.GrasylaEngine.building ( boolean  go) [protected]

Used to control the building property.

Parameters:
goWhether to begin or to end building

References metadone.client.grasyla2.GrasylaEngine.building, and metadone.client.grasyla2.GrasylaEngine.building_hook().

void metadone.client.grasyla2.GrasylaEngine.building_hook ( boolean  go) [protected]

Called when building of the components is started or stopped.

Parameters:
gotrue indicates that the process is started, otherwise it is false

Reimplemented in metadone.client.grasyla2.visuallibrary.GraphEngine.

Referenced by metadone.client.grasyla2.GrasylaEngine.building().

boolean metadone.client.grasyla2.GrasylaEngine.canActivateChild ( GrasylaEngine  ch) [protected]

Tests whether a child can be activated.

Parameters:
chThe child to test
Returns:
true if the child can be activated

Referenced by metadone.client.grasyla2.GrasylaEngine.activate(), and metadone.client.grasyla2.GrasylaEngine.addChild().

private<T> void metadone.client.grasyla2.GrasylaEngine.createAttribute ( AttributeHandler< T >  handler,
ConcreteObject  expr 
) throws BadPreCondition [package]
void metadone.client.grasyla2.GrasylaEngine.createAttributes ( ) throws BadPreCondition [protected]
void metadone.client.grasyla2.GrasylaEngine.debugEngineTreeGraphViz ( Appendable  out,
boolean  recursive,
int  verbose 
) throws IOException

Prints the children of this engine.

The output is valid for GraphViz. It consists of a node representing this engine and optional edges to the children nodes.

Parameters:
outThe output
rescursiveIndicates whether the call is recursive
verboseThe verbose level

Implements metadone.client.display.Engine.

References metadone.client.grasyla2.GrasylaEngine.debugEngineTreeGraphViz_nodeContents(), metadone.client.grasyla2.GrasylaEngine.ChildComponent.getAttribute(), metadone.client.grasyla2.GrasylaEngine.getChildComponent(), metadone.client.grasyla2.GrasylaEngine.getChildren(), metadone.client.grasyla2.GrasylaEngine.graphviz_escape(), and metadone.client.grasyla2.GrasylaEngine.ChildComponent.isAttribute().

void metadone.client.grasyla2.GrasylaEngine.debugEngineTreeGraphViz_nodeContents ( Appendable  out,
int  verbose 
) throws IOException [protected]
void metadone.client.grasyla2.GrasylaEngine.disposeInternal ( ) [protected]
void metadone.client.grasyla2.GrasylaEngine.finalize ( ) throws Throwable [protected]
int metadone.client.grasyla2.GrasylaEngine.findIndex ( Engine  child,
FindIndex  opt 
) [protected]

Finds the index for a child component which is not an attribute.

Parameters:
childThe child engine
optThe type of search
Returns:
The index where you can insert components or -1 if the engine was not found

References metadone.client.grasyla2.GrasylaEngine.getChildComponent(), metadone.client.grasyla2.GrasylaEngine.getChildren(), metadone.client.grasyla2.GrasylaEngine.ChildComponent.getComponent(), and metadone.client.grasyla2.GrasylaEngine.ChildComponent.isAttribute().

Referenced by metadone.client.grasyla2.generic.IfEngine.rebuildSingle(), and metadone.client.grasyla2.generic.ListEngine.updateToConcreteObject().

protected<C> Component<? extends C> metadone.client.grasyla2.GrasylaEngine.getChildComponent ( Class< C >  clComp,
boolean  active,
GrasylaEngine  engine 
) [package]

Gets the child component for an engine.

The child component is built if needed.

Parameters:
<C>The type
clCompThe class
activeWhether to activate the built child
engineThe child engine
Returns:
The component built by the child

References metadone.client.grasyla2.GrasylaEngine.childrenComponents, metadone.client.grasyla2.GrasylaEngine.ChildComponent.cl, metadone.client.grasyla2.GrasylaEngine.component, and metadone.client.grasyla2.GrasylaEngine.ChildComponent.component.

GrasylaEngine metadone.client.grasyla2.GrasylaEngine.getChildEngine ( Component<?>  comp) [protected]

Gets a child component corresponding to a component.

Parameters:
compThe component
Returns:
The child component or null

References metadone.client.grasyla2.GrasylaEngine.childrenComponents.

Iterable<? extends GrasylaEngine> metadone.client.grasyla2.GrasylaEngine.getChildrenExpressions ( )
public<C> Component<? extends C> metadone.client.grasyla2.GrasylaEngine.getComponent ( Class< C >  clComp) [package]

Gets the built component.

Returns:
The built component or null if nothing has been built

Implements metadone.client.display.Engine.

References metadone.client.grasyla2.GrasylaEngine.component.

Referenced by metadone.client.grasyla2.ref.SideEngine.activate(), metadone.client.grasyla2.GrasylaEngine.buildComponent(), metadone.client.grasyla2.visuallibrary.AnchorEngine.AnchorBuilder.buildList(), metadone.client.grasyla2.swing.GrasylaSwingHelper.AttributeFontColor.colorChanged(), metadone.client.grasyla2.swing.GrasylaSwingHelper.AttributeBackground.colorChanged(), metadone.client.grasyla2.GrasylaEngine.debugEngineTreeGraphViz_nodeContents(), metadone.client.grasyla2.swing.GrasylaSwingHelper.AttributeFont.fontChanged(), metadone.client.grasyla2.visuallibrary.AttributeFontColor.getWidgets(), metadone.client.grasyla2.visuallibrary.AttributeBorder.getWidgets(), metadone.client.grasyla2.visuallibrary.AttributeBackground.getWidgets(), metadone.client.grasyla2.visuallibrary.AttributeFont.getWidgets(), metadone.client.grasyla2.generic.ListEngine.notifyChildChanged(), metadone.client.grasyla2.generic.IfEngine.notifyChildChanged(), metadone.client.grasyla2.generic.GuardEngine.notifyChildChanged(), metadone.client.grasyla2.GrasylaEngine.refresh(), metadone.client.grasyla2.GrasylaEngine.registerAttributeHandler(), metadone.client.grasyla2.ref.RefObjectEngine.registerSubscriber(), metadone.client.grasyla2.GrasylaEngine.registerSubscriber(), metadone.client.grasyla2.ref.RefEngine.updateComponent(), metadone.client.grasyla2.generic.NoneEngine.updateToConcreteObject(), metadone.client.grasyla2.generic.ListEngine.updateToConcreteObject(), metadone.client.grasyla2.swing.GrasylaSwingHelper.AttributeTooltip.valueChanged(), metadone.client.grasyla2.swing.GrasylaSwingHelper.AttributeEnabled.valueChanged(), metadone.client.grasyla2.swing.GrasylaSwingHelper.AttributeVisible.valueChanged(), and metadone.client.grasyla2.swing.GrasylaSwingHelper.AttributeName.valueChanged().

Set<Subscriber<? super Component<?> > > metadone.client.grasyla2.GrasylaEngine.getComponentChangeSubscribers ( )

Gets the set of component change listeners.

Returns:
The set of listeners (modifiable)

References metadone.client.grasyla2.GrasylaEngine.componentChangeSubscribers.

Iterator<ConcreteObject> metadone.client.grasyla2.GrasylaEngine.getContainedVariables ( ) throws BadPreCondition

Gets the contained variables.

Returns:
The iterator over the variables
Exceptions:
BadPreCondition

References metadone.util.IteratorUtil.filter(), metadone.client.grasyla2.GrasylaEngine.getContained(), and metadone.client.grasyla2.GrasylaEngine.getGrasyla().

Referenced by metadone.client.grasyla2.GrasylaEngine.updateContext().

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

Gets the context.

Returns:
The context

Implements metadone.client.display.Engine.

References metadone.client.grasyla2.GrasylaEngine.context.

Referenced by metadone.client.grasyla2.GrasylaEngine.activate(), metadone.client.grasyla2.ref.RefEngine.buildChild(), metadone.client.grasyla2.GrasylaEngine.buildComponent(), metadone.client.grasyla2.ref.SideEngine.buildNewComponent(), metadone.client.grasyla2.ref.RefSpecEngine.buildNewComponent(), metadone.client.grasyla2.ref.MetaEngine.buildNewComponent(), metadone.client.grasyla2.GrasylaInterpreter.buildNewComponent(), metadone.client.grasyla2.generic.TailEngine.buildNewComponent(), metadone.client.grasyla2.generic.ListEngine.buildNewComponent(), metadone.client.grasyla2.generic.IfEngine.buildNewComponent(), metadone.client.grasyla2.generic.HeadEngine.buildNewComponent(), metadone.client.grasyla2.generic.GuardEngine.buildNewComponent(), metadone.client.grasyla2.generic.GroupEngine.buildNewComponent(), metadone.client.grasyla2.generic.ListEngine.buildSeparator(), metadone.client.grasyla2.visuallibrary.GrasylaScene.configure(), metadone.client.grasyla2.GrasylaInterpreter.configure(), metadone.client.grasyla2.visuallibrary.GrasylaScene.MyConnectProvider.createConnection(), metadone.client.grasyla2.GrasylaEngine.deactivate(), metadone.client.grasyla2.GrasylaEngine.debugEngineTreeGraphViz_nodeContents(), metadone.client.grasyla2.generic.IfEngine.evaluate(), metadone.client.grasyla2.generic.IfEngine.evaluateSimple(), metadone.client.grasyla2.visuallibrary.GrasylaScene.getCOForMovable(), metadone.client.grasyla2.GrasylaEngine.AttributeHandler< T >.getContext(), metadone.client.grasyla2.actions.GAction.getContext(), metadone.client.grasyla2.GrasylaInterpreter.getFeatures(), metadone.client.grasyla2.swing.GrasylaSwingHelper.AttributeFont.getFontContext(), metadone.client.grasyla2.visuallibrary.AttributeFont.getFontContext(), metadone.client.grasyla2.visuallibrary.GrasylaScene.getPhenomenon(), metadone.client.grasyla2.ref.SideEngine.getRole(), metadone.client.grasyla2.ref.RefEngine.getSelf(), metadone.client.grasyla2.visuallibrary.GraphEngine.GraphEngine(), metadone.client.grasyla2.GrasylaInterpreter.GrasylaInterpreter(), metadone.client.grasyla2.visuallibrary.GrasylaScene.MyConnectProvider.isSourceWidget(), metadone.client.grasyla2.visuallibrary.GrasylaScene.MyConnectProvider.isTargetWidget(), metadone.client.grasyla2.GrasylaEngine.refresh(), metadone.client.grasyla2.ref.RefSpecEngine.RefSpecEngine(), metadone.client.grasyla2.visuallibrary.AnchorEngine.registerAttributeHandlers(), metadone.client.grasyla2.GrasylaInterpreter.runInitScript(), metadone.client.grasyla2.GrasylaEngine.setCanUpdateObject(), metadone.client.grasyla2.GrasylaEngine.trigger(), metadone.client.grasyla2.generic.ReduceEngine.updateComponent(), and metadone.client.grasyla2.generic.ListEngine.updateToConcreteObject().

static String metadone.client.grasyla2.GrasylaEngine.graphviz_escape ( String  s) [static, protected]

Escapes a string to be usable in a graphviz output.

Parameters:
sThe string
Returns:
The escaped string

Referenced by metadone.client.grasyla2.GrasylaEngine.debugEngineTreeGraphViz(), and metadone.client.grasyla2.GrasylaEngine.debugEngineTreeGraphViz_nodeContents().

void metadone.client.grasyla2.GrasylaEngine.initActionHander ( ) [protected]
final boolean metadone.client.grasyla2.GrasylaEngine.isAdapted ( )

Indicates whether this engine is adapted.

An adapted engine is just a wrapped inside another engine. It was created using the same expression.

Returns:
true if the engine is adapted

References metadone.util.Objects.cast(), metadone.util.Objects.equal(), metadone.client.grasyla2.GrasylaEngine.getExpression(), and metadone.client.grasyla2.GrasylaEngine.getParent().

Referenced by metadone.client.grasyla2.GrasylaEngine.initActionHander(), and metadone.client.grasyla2.GrasylaEngine.updateContext().

final boolean metadone.client.grasyla2.GrasylaEngine.isBuilding ( ) [protected]

Indicates whether the component is being built.

Returns:
true if the component is being built
See also:
building(boolean)

References metadone.client.grasyla2.GrasylaEngine.building.

Referenced by metadone.client.grasyla2.GrasylaEngine.registerAttributeHandler().

boolean metadone.client.grasyla2.GrasylaEngine.isClassSupported ( Class<?>  clComp)

Tests if the given class can be used by this component.

Parameters:
clCompThe component class
Returns:
true iff the class is supported

Implements metadone.client.display.Engine.

Reimplemented in metadone.client.grasyla2.base.GrasylaEngineTyped< T >, and metadone.client.grasyla2.visuallibrary.GraphEngine.

boolean metadone.client.grasyla2.GrasylaEngine.isNativeAttribute ( String  name) [protected]

Indicates whether an attribute is handled when building the component.

In other words, a native attribute should not be handled by an attribute handler.

Parameters:
nameThe name of the attribute
Returns:
true if name is a native attribute

Reimplemented in metadone.client.grasyla2.base.GrasylaEngineForAttribute< T >, metadone.client.grasyla2.generic.GuardEngine, metadone.client.grasyla2.generic.IfEngine, metadone.client.grasyla2.generic.ListEngine, and metadone.client.grasyla2.generic.ModelEngine.

Referenced by metadone.client.grasyla2.GrasylaEngine.createAttributes().

final void metadone.client.grasyla2.GrasylaEngine.notifyChildChanged ( Engine  child)

Called by the active child to indicate that its component has changed.

Parameters:
childThe child engine

Implements metadone.client.display.Engine.

References metadone.client.grasyla2.GrasylaEngine.building, metadone.client.grasyla2.GrasylaEngine.childrenComponents, and metadone.client.grasyla2.GrasylaEngine.ChildComponent.getComponentClass().

void metadone.client.grasyla2.GrasylaEngine.registerAttributeHandler ( AttributeHandler<?>  handler,
boolean  overwrite 
) [protected]
final void metadone.client.grasyla2.GrasylaEngine.registerAttributeHandler ( AttributeHandler<?>  handler)
public<T> void metadone.client.grasyla2.GrasylaEngine.registerSubscriber ( boolean  activation,
boolean  persist,
EventTower<?super T >  manager,
Class< T >  cl,
MapFct<?super T, Boolean >  predicate,
Subscriber<?super T >  subscriber 
) [package]
AttributeHandler<?> metadone.client.grasyla2.GrasylaEngine.removeAttributeHandler ( String  name) [protected]

Removes an attribute handler.

Parameters:
nameThe name of the attribute
Returns:
The attribute handler or null

References metadone.client.grasyla2.GrasylaEngine.attributes.

final ChildComponent metadone.client.grasyla2.GrasylaEngine.removeChildWithoutDispose ( Engine  e) [protected]

Removes a child from this engine.

Parameters:
eThe child to remove
Returns:
The component or null when child was not in this engine

References metadone.client.grasyla2.GrasylaEngine.children, and metadone.client.grasyla2.GrasylaEngine.childrenComponents.

void metadone.client.grasyla2.GrasylaEngine.setCanUpdateObject ( boolean  b) [protected]

Sets whether the concrete objects request changes are accepted.

This can be set to true if this engine does not use the context's object.

Parameters:
bThe value

References metadone.client.grasyla2.GrasylaEngine.getContext(), metadone.client.grasyla2.GrasylaEngine.registerSubscriber(), and metadone.client.grasyla2.GrasylaEngine.subscribers.

Referenced by metadone.client.grasyla2.generic.ListEngine.ListEngine(), and metadone.client.grasyla2.generic.NoneEngine.NoneEngine().

void metadone.client.grasyla2.GrasylaEngine.unregisterSubscriber ( Subscriber<?>  subscriber)

Unsubscribes a subscriber.

Parameters:
subscriberThe subscriber or null

References metadone.util.Objects.equal(), and metadone.client.grasyla2.GrasylaEngine.subscribers.

GrasylaContext metadone.client.grasyla2.GrasylaEngine.updateContext ( final GrasylaContext  context) throws BadPreCondition [protected]
Component<?> metadone.client.grasyla2.GrasylaEngine.updateToConcreteObject ( ConcreteObjectGroupChange  event) [protected]

Called when the object group has been changed.

This method MUST be overwritten completely when setCanUpdateObject(boolean) is set to true.

Parameters:
eventThe event
Returns:
The new component

Reimplemented in metadone.client.grasyla2.base.GrasylaEngineForAttribute< T >, metadone.client.grasyla2.generic.ListEngine, and metadone.client.grasyla2.generic.NoneEngine.

Referenced by metadone.client.grasyla2.GrasylaEngine.ConcreteObjectChangeHandler.trigger().


Member Data Documentation

Referenced by metadone.client.grasyla2.GrasylaEngine.buildChild(), metadone.client.grasyla2.GrasylaEngine.buildChildrenExpressions(), metadone.client.grasyla2.generic.TailEngine.buildNewComponent(), metadone.client.grasyla2.generic.GroupEngine.buildNewComponent(), metadone.client.grasyla2.GrasylaInterpreter.configure(), metadone.client.grasyla2.GrasylaEngine.getContext(), metadone.client.grasyla2.ref.RefObjectEngine.getProperty(), metadone.client.grasyla2.visuallibrary.GraphEngine.GraphEngine(), metadone.client.grasyla2.GrasylaEngine.GrasylaEngine(), metadone.client.grasyla2.GrasylaInterpreter.GrasylaInterpreter(), metadone.client.grasyla2.generic.GroupEngine.GroupEngine(), metadone.client.grasyla2.generic.GuardEngine.GuardEngine(), metadone.client.grasyla2.generic.HeadEngine.HeadEngine(), metadone.client.grasyla2.generic.IfEngine.IfEngine(), metadone.client.grasyla2.generic.ListEngine.ListEngine(), metadone.client.grasyla2.ref.MetaEngine.MetaEngine(), metadone.client.grasyla2.generic.ModelEngine.ModelEngine(), metadone.client.grasyla2.generic.NoneEngine.NoneEngine(), metadone.client.grasyla2.generic.ReduceEngine.ReduceEngine(), metadone.client.grasyla2.ref.RefEngine.RefEngine(), metadone.client.grasyla2.ref.RefObjectEngine.RefObjectEngine(), metadone.client.grasyla2.ref.RefRoleEngine.RefRoleEngine(), metadone.client.grasyla2.ref.RefSpecEngine.RefSpecEngine(), metadone.client.grasyla2.ref.SideEngine.SideEngine(), metadone.client.grasyla2.generic.TailEngine.TailEngine(), metadone.client.grasyla2.GrasylaEngine.updateContext(), metadone.client.grasyla2.generic.ModelEngine.updateContext(), and metadone.client.grasyla2.visuallibrary.VLNearEngine.VLNearEngine().


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