Subclasses must override the actionPropertyChanged method, which is invoked from the propertyChange method as long as the target is still valid.
WARNING WARNING WARNING WARNING WARNING WARNING:
Do NOT create an anonymous inner class that extends this! If you do,
a strong reference will be held to the containing class, which in most
cases defeats the purpose of this class.
AbstractButton
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private Action | |
| private static ReferenceQueue | |
| private transient ActionPropertyChangeListener. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract void | actionPropertyChanged(T target, Action action, PropertyChangeEvent e)
Invoked when a property changes on the Action and the target still exists. |
| public Action | |
| private static ReferenceQueue | |
| public T | |
| public final void | propertyChange(PropertyChangeEvent e)
Implements java. PropertyChangeListener method. |
| private void | |
| private void | |
| private void |
| action | back to summary |
|---|---|
| private Action action | |
| queue | back to summary |
|---|---|
| private static ReferenceQueue<JComponent> queue | |
| target | back to summary |
|---|---|
| private transient ActionPropertyChangeListener. | |
| ActionPropertyChangeListener | back to summary |
|---|---|
| public ActionPropertyChangeListener(T c, Action a) | |
| actionPropertyChanged | back to summary |
|---|---|
| protected abstract void actionPropertyChanged(T target, Action action, PropertyChangeEvent e) Invoked when a property changes on the Action and the target still exists. | |
| getAction | back to summary |
|---|---|
| public Action getAction() | |
| getQueue | back to summary |
|---|---|
| private static ReferenceQueue | |
| getTarget | back to summary |
|---|---|
| public T getTarget() | |
| propertyChange | back to summary |
|---|---|
| public final void propertyChange(PropertyChangeEvent e) Implements java. PropertyChangeListener method. If the target has been gc'ed this
will remove the | |
| readObject | back to summary |
|---|---|
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
| |
| setTarget | back to summary |
|---|---|
| private void setTarget(T c) | |
| writeObject | back to summary |
|---|---|
private void writeObject(ObjectOutputStream s) throws IOException
| |
| Modifier and Type | Field and Description |
|---|---|
| private ActionPropertyChangeListener |
| Access | Constructor and Description |
|---|---|
| pack-priv | OwnedWeakReference(U target, ReferenceQueue<? super U> queue, ActionPropertyChangeListener<?> owner)
|
| Modifier and Type | Method and Description |
|---|---|
| public ActionPropertyChangeListener |
| owner | back to summary |
|---|---|
| private ActionPropertyChangeListener<?> owner | |
| OwnedWeakReference | back to summary |
|---|---|
| pack-priv OwnedWeakReference(U target, ReferenceQueue<? super U> queue, ActionPropertyChangeListener<?> owner) | |
| getOwner | back to summary |
|---|---|
| public ActionPropertyChangeListener | |