|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.guiseframework.platform.AbstractDepictor<C>
com.guiseframework.platform.AbstractComponentDepictor<C>
C - The type of component being depicted.public abstract class AbstractComponentDepictor<C extends Component>
An abstract implementation of a component depictor.
If the component has a model, this implementation will automatically register to listen to its properties being changed.
This implementation does not recognize that it needs to be updated if the associated component changes its registered listeners.
A view keeps track of component modified properties between updates.
This implementation ignores a change in Component.VALID_PROPERTY and Component.INPUT_STRATEGY_PROPERTY.
This implementation only dirties the depictors of containers, not composite components in general, when child components are added or removed.
| Nested Class Summary | |
|---|---|
protected class |
AbstractComponentDepictor.DepictedCompositeComponentListener
A listener that marks this depiction as dirty if direct children are added or deleted. |
| Nested classes/interfaces inherited from class com.guiseframework.platform.AbstractDepictor |
|---|
AbstractDepictor.DepictedPropertyChangeListener |
| Field Summary | |
|---|---|
protected java.beans.PropertyChangeListener |
childPropertyChangeListener
The listener that listens for the change of a child's property, such as a value model's value, and marks the view as dirty. |
| Fields inherited from interface com.guiseframework.platform.Depictor |
|---|
GENERAL_PROPERTY |
| Constructor Summary | |
|---|---|
AbstractComponentDepictor()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
depict()
Updates the depiction of the object. |
protected void |
depictChild(Component childComponent)
Depicts a single child. |
protected void |
depictChildren()
Depicts any child components. |
protected void |
depictedObjectPropertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
Called when a depicted object bound property is changed. |
protected AbstractComponentDepictor.DepictedCompositeComponentListener |
getDepictedCompositeComponentListener()
|
protected java.lang.String |
getErrorMessage()
Constructs an error message for all component errors. |
void |
installed(C component)
Called when the depictor is installed in a component. |
void |
processEvent(PlatformEvent event)
Processes an event from the platform. |
void |
uninstalled(C component)
Called when the depictor is uninstalled from a component. |
| Methods inherited from class com.guiseframework.platform.AbstractDepictor |
|---|
getDepictContext, getDepictedObject, getDepictedPropertyChangeListener, getIgnoredProperties, getModifiedProperties, getPlatform, getSession, isDepicted, setDepicted, setPropertyModified |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.guiseframework.platform.Depictor |
|---|
getDepictContext, getDepictedObject, getPlatform, getSession, isDepicted, setDepicted |
| Field Detail |
|---|
protected final java.beans.PropertyChangeListener childPropertyChangeListener
| Constructor Detail |
|---|
public AbstractComponentDepictor()
| Method Detail |
|---|
protected AbstractComponentDepictor.DepictedCompositeComponentListener getDepictedCompositeComponentListener()
null if the depicted component is not a container or is not installed.public void installed(C component)
installed in interface Depictor<C extends Component>installed in class AbstractDepictor<C extends Component>component - The component into which this depictor is being installed.
java.lang.NullPointerException - if the given component is null.
java.lang.IllegalStateException - if this depictor is already installed in a component.AbstractDepictor.depictedPropertyChangeListenerpublic void uninstalled(C component)
uninstalled in interface Depictor<C extends Component>uninstalled in class AbstractDepictor<C extends Component>component - The component from which this depictor is being uninstalled.
java.lang.NullPointerException - if the given component is null.
java.lang.IllegalStateException - if this depictor is not installed in a component.AbstractDepictor.depictedPropertyChangeListenerpublic void processEvent(PlatformEvent event)
PlatformFocusEvent.
processEvent in interface Depictor<C extends Component>processEvent in class AbstractDepictor<C extends Component>event - The event to be processed.
java.lang.IllegalArgumentException - if the given event is a relevant DepictEvent with a source of a different depicted object.
public void depict()
throws java.io.IOException
depict in interface Depictor<C extends Component>depict in class AbstractDepictor<C extends Component>java.io.IOException - if there is an error updating the depiction.
protected void depictChildren()
throws java.io.IOException
component - The depicted component.
java.io.IOException - if there is an error updating the child depictions.
protected void depictChild(Component childComponent)
throws java.io.IOException
childComponent - The child component to depict.
java.io.IOException - if there is an error updating the child depiction.Depictor.setDepicted(boolean),
DepictedObject.depict()protected java.lang.String getErrorMessage()
null if there are no errors.protected void depictedObjectPropertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
depictedObjectPropertyChange in class AbstractDepictor<C extends Component>propertyChangeEvent - An event object describing the event source and the property that has changed.AbstractDepictor.getIgnoredProperties(),
AbstractDepictor.setPropertyModified(String, boolean)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||