|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.PingOO.DLAI.lib.PWidget.PObserver
An observer for Containers (PComponent and JComponents) that updates them when needed.
Since some components as the JWindow are not JComponents, the function apply to a large type (Container).
| Inner Class Summary | |
protected class |
PObserver.DefaultPAdapter
Default PAdapter for this PObserver. |
| Field Summary | |
PListener |
defaultPListener
Default PAdapter for this observer. |
private static PEventListenerList |
listenerList
The shared listener list. |
protected static java.util.Vector |
observerVector
|
protected java.awt.Container |
parent
The parent component of this observer. |
| Constructor Summary | |
PObserver()
Creates a new observer without component; |
|
PObserver(java.awt.Container component)
Creates a new observer for components in this widget. |
|
| Method Summary | |
void |
addPListener(PListener listener)
Adds a listener to the list. |
java.awt.Container |
getParent()
Return the component linked with this observer. |
static void |
removeAll()
Make sure there is no more PComponent left, for when they are unregistered, they will not be able to respond the PEvents anymore. |
void |
removePListener(PListener listener)
Removes a listener from the list. |
void |
setParent(java.awt.Container component)
Set the component linked with this observer. |
void |
unregister()
|
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected static java.util.Vector observerVector
protected java.awt.Container parent
private static PEventListenerList listenerList
public final PListener defaultPListener
| Constructor Detail |
public PObserver()
public PObserver(java.awt.Container component)
component - The component to be linked with this observer.| Method Detail |
public void unregister()
public java.awt.Container getParent()
null if this obeserver is not linked with any component.public void setParent(java.awt.Container component)
component - the new component to link with this observer.public static void removeAll()
public void addPListener(PListener listener)
listener - The listener to be added.public void removePListener(PListener listener)
listener - The listener to be removed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||