|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pietschy.command.BindingSupport
public class BindingSupport
Support class for Bindables.
| Constructor Summary | |
|---|---|
BindingSupport(BindingSupportCallback callback)
Creates a new instance with the specified callback. |
|
| Method Summary | |
|---|---|
void |
addCommandContainerListener(CommandContainerListener listener)
|
protected void |
attachToClosestParent()
Discovers and binds to the nearest CommandContainer bound to our
components swing heirarchy. |
void |
bind()
Binds to the global command container. |
void |
bind(CommandContainer container)
Binds to the specified CommandContainer. |
void |
bind(java.awt.Component component)
Binds to the specified component. |
(package private) CommandContainer |
findClosestParent()
Finds the closest command container in the export components swing heirarchy. |
CommandContainer |
getCommandContainer()
Gets the currently bound CommandContainer. |
boolean |
isBound()
Checks if currently bound to either a component or container. |
void |
rebind()
Re-evaluates the current binding. |
void |
removeCommandContainerListener(CommandContainerListener listener)
|
void |
unbind()
Unbinds from the current container or component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BindingSupport(BindingSupportCallback callback)
callback - to call back that will handle the instance specific binding operations.| Method Detail |
|---|
public void bind()
Bindable
bind in interface BindableCommandContainer.globalInstance()public void bind(CommandContainer container)
BindableCommandContainer.
bind in interface Bindablecontainer - the container to bind to.public void bind(java.awt.Component component)
BindableCommandContainer.
bind in interface Bindablecomponent - the component to bind to.CommandContainer.bind(Component)public void rebind()
Bindable
rebind in interface Bindablepublic void unbind()
Bindable
unbind in interface Bindablepublic CommandContainer getCommandContainer()
CommandContainer. May return null.
null.public boolean isBound()
true if bound, false otherwise.protected void attachToClosestParent()
CommandContainer bound to our
components swing heirarchy. This method is only relevant for component bindings.
CommandContainer findClosestParent()
public void addCommandContainerListener(CommandContainerListener listener)
public void removeCommandContainerListener(CommandContainerListener listener)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||