A Suggested implementation for this method will be like this:
public void defineAttributes(){
putAttribute(Desired Objects Assigned name,Objects Value);
}
A suggested implementation for this method would be like this:
Class ReactionToChangeAttribute implements AttributeListener{
public void attributeUpdated(String name,Object oldValue,Object newValue){
// Any Desired Reaction, for instance:
if(name.equals(myAttribute)){
System.out.print("Yahoo");
}
}
public vod defineListeneres(){
addAttributeListener(new ReactionToChangeAttribute(),String[] desiredAttributeNames);
}
You can leave this method without implementation if you dont need to listen to change o your properties!