rcf.core.framework.component
Class DynamicComponent.Abstract

java.lang.Object
  extended by rcf.core.framework.component.DynamicComponent.Abstract
All Implemented Interfaces:
DynamicBound, DynamicComponent, ReflectedBindable<DynamicComponent>, ReflectedComponent, rcf.core.util.accessor.GUIAccessible
Direct Known Subclasses:
AbstractRADService, DynamicComponent.Default
Enclosing interface:
DynamicComponent

public abstract static class DynamicComponent.Abstract
extends Object
implements DynamicComponent

TODO: Javadoc

TODO: Unit tests, Code review, Javadoc review, Seal/Finalize TODO: equals, hashCode, toString

Version:
$Revision: 1.3 $
Author:
Greg Gibeling

Nested Class Summary
 
Nested classes/interfaces inherited from interface rcf.core.framework.component.DynamicComponent
DynamicComponent.Abstract, DynamicComponent.Default
 
Nested classes/interfaces inherited from interface rcf.core.framework.component.DynamicBound
DynamicBound.GUIType
 
Field Summary
protected  ReflectedComponent.Default component
          TODO: Javadoc
protected  rcf.core.util.map.HashSetMap<DynamicOperation.Default,String> operations
          TODO: Javadoc
protected  rcf.core.util.map.HashSetMap<DynamicProperty<?>,String> properties
          TODO: Javadoc
 
Constructor Summary
protected DynamicComponent.Abstract()
          TODO: Javadoc
protected DynamicComponent.Abstract(ReflectedComponent.Default _component)
          TODO: Javadoc
 
Method Summary
 DynamicComponent bind(Object o)
          TODO: Javadoc Return a dynamic bound interface representing this reflected bindable bound to the specified object, assuming the object is an instance of the appropriate reflected component.
 DynamicComponent component()
          TODO: Javadoc
 JComponent gui(DynamicBound.GUIType type)
          TODO: Javadoc
 Icon icon()
           
 rcf.core.util.collection.ImmutableCollection<Class> interfaces()
          TODO: Javadoc The interfaces supported by the component.
 boolean isInstance(Object o)
          TODO: Javadoc Determine if the specified object is an instance of the necessary component and as a result can be bound.
protected  Object o()
          TODO: Javadoc
 rcf.core.util.map.single.ImmutableSMapCollection<? extends DynamicOperation,String> operations()
          TODO: Javadoc Could return a collection, if the operations supported by this component change over time.
 JPopupMenu popupMenu()
           
 rcf.core.util.map.single.ImmutableSMapCollection<? extends DynamicProperty<?>,String> properties()
          TODO: Javadoc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

component

protected final ReflectedComponent.Default component
TODO: Javadoc


operations

protected rcf.core.util.map.HashSetMap<DynamicOperation.Default,String> operations
TODO: Javadoc


properties

protected rcf.core.util.map.HashSetMap<DynamicProperty<?>,String> properties
TODO: Javadoc

Constructor Detail

DynamicComponent.Abstract

protected DynamicComponent.Abstract()
TODO: Javadoc


DynamicComponent.Abstract

protected DynamicComponent.Abstract(ReflectedComponent.Default _component)
TODO: Javadoc

Parameters:
_component -
Method Detail

bind

public DynamicComponent bind(Object o)
Description copied from interface: ReflectedBindable
TODO: Javadoc Return a dynamic bound interface representing this reflected bindable bound to the specified object, assuming the object is an instance of the appropriate reflected component. ReflectedComponent.isInstance(Object), component().isInstance(o) must be true.

Specified by:
bind in interface ReflectedBindable<DynamicComponent>
Returns:

component

public DynamicComponent component()
Description copied from interface: DynamicBound
TODO: Javadoc

Specified by:
component in interface DynamicBound
Specified by:
component in interface DynamicComponent
Specified by:
component in interface ReflectedBindable<DynamicComponent>
Specified by:
component in interface ReflectedComponent
Returns:
this
See Also:
DynamicBound.component()

gui

public JComponent gui(DynamicBound.GUIType type)
Description copied from interface: DynamicBound
TODO: Javadoc

Specified by:
gui in interface DynamicBound
Returns:

icon

public Icon icon()
Specified by:
icon in interface rcf.core.util.accessor.GUIAccessible

interfaces

public rcf.core.util.collection.ImmutableCollection<Class> interfaces()
Description copied from interface: ReflectedComponent
TODO: Javadoc The interfaces supported by the component.

Specified by:
interfaces in interface ReflectedComponent
Returns:

isInstance

public boolean isInstance(Object o)
Description copied from interface: ReflectedComponent
TODO: Javadoc Determine if the specified object is an instance of the necessary component and as a result can be bound.

Specified by:
isInstance in interface ReflectedComponent
Returns:

o

protected Object o()
TODO: Javadoc

Returns:

operations

public rcf.core.util.map.single.ImmutableSMapCollection<? extends DynamicOperation,String> operations()
Description copied from interface: ReflectedComponent
TODO: Javadoc Could return a collection, if the operations supported by this component change over time.

Specified by:
operations in interface DynamicComponent
Specified by:
operations in interface ReflectedComponent
Returns:

popupMenu

public JPopupMenu popupMenu()
Specified by:
popupMenu in interface rcf.core.util.accessor.GUIAccessible

properties

public rcf.core.util.map.single.ImmutableSMapCollection<? extends DynamicProperty<?>,String> properties()
Description copied from interface: ReflectedComponent
TODO: Javadoc

Specified by:
properties in interface DynamicComponent
Specified by:
properties in interface ReflectedComponent
Returns: