|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BoundDelegateComponent
This interface specifies the methods which bind some object to some component.
| Method Summary | |
|---|---|
void |
addBindingListener(BindingListener listener)
Register a listener for this object |
void |
changeBinding(Binding b)
change what this object is bound to (will save the current value to its currently bound object) |
void |
changeBinding(int index)
change what this object is bound to (will save the current value to its currently bound object) |
void |
changeBinding(java.lang.Object newBoundItem)
change what this object is bound to (will save the current value to its currently bound object) |
void |
changeBinding(java.lang.Object newBoundItem,
int index)
change what this object is bound to (will save the current value to its currently bound object) |
void |
changeBinding(java.lang.Object boundItem,
java.lang.String varName)
change what this object is bound to (will save the current value to its currently bound object) |
void |
changeBinding(java.lang.Object boundItem,
java.lang.String getterName,
java.lang.String setterName)
change what this object is bound to (will save the current value to its currently bound object) |
void |
changeBinding(java.lang.Object boundItem,
java.lang.String getterName,
java.lang.String setterName,
int indexAt)
change what this object is bound to (will save the current value to its currently bound object) |
Binding |
getBinding()
gets the binding for this component |
BoundDelegateContainer |
getBoundParent()
gets the parent container for this component |
boolean |
highlightOnError()
whether or not to highlight with a red border on error |
boolean |
isContainer()
whether or not this bound component is a container of other bound components |
boolean |
isValidated()
whether or not a validation error has occurred |
void |
load()
load the current value for this component from the bound object |
void |
notifyListenersOfBindingChanged()
Notifies all listeners that the binding has changed |
void |
notifyListenersOfBindingChanging()
Notifies all listeners that the binding is about to change |
void |
removeBindingListener(BindingListener listener)
Remove a registered listener from this object |
void |
save()
save the current value in this component to the bound object |
void |
setBoundParent(BoundDelegateContainer c)
sets the parent container for this component |
void |
setHighlightOnError(boolean highlightOnError)
whether or not to highlight with a red border on error |
| Method Detail |
|---|
void changeBinding(Binding b)
b - the new bindingvoid changeBinding(java.lang.Object newBoundItem)
newBoundItem - the object this is bound to (contains the value to be modified as specified by varName)
void changeBinding(java.lang.Object newBoundItem,
int index)
newBoundItem - the object this is bound to (contains the value to be modified as specified by varName)index - the new index to bind tovoid changeBinding(int index)
index - the new index to bind to
void changeBinding(java.lang.Object boundItem,
java.lang.String varName)
boundItem - the object this is bound to (contains the value to be modified as specified by varName)varName - the name of the variable; assumes the getter and setter name will
be get and set followed by varName with its first letter capitalized
(ex: if varName is "value" then the getter will be getValue).
void changeBinding(java.lang.Object boundItem,
java.lang.String getterName,
java.lang.String setterName)
boundItem - the object this is bound to (contains the value to be modified as specified by the getter and setter name)getterName - how to get the bound value from the bound objectsetterName - how to set the bound value from the bound object
void changeBinding(java.lang.Object boundItem,
java.lang.String getterName,
java.lang.String setterName,
int indexAt)
boundItem - the object this is bound to (contains the value to be modified as specified by the getter and setter name)getterName - how to get the bound value from the bound objectsetterName - how to set the bound value from the bound objectindexAt - if bound value is stored within a container with get(index) and
set(index, Object) methods, then indexAt should be the index to
use; otherwise, indexAt should be -1void load()
void save()
void addBindingListener(BindingListener listener)
listener - the object which is listeningvoid notifyListenersOfBindingChanging()
void notifyListenersOfBindingChanged()
void removeBindingListener(BindingListener listener)
listener - the object which is listening to be removedBinding getBinding()
BoundDelegateContainer getBoundParent()
void setBoundParent(BoundDelegateContainer c)
boolean isContainer()
boolean isValidated()
boolean highlightOnError()
void setHighlightOnError(boolean highlightOnError)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||