disconnect() method to remove
all listeners.
There are two usage patterns:
disconnect() call.
IDisconnectable instance.
Skins.
We should consider making this class a part of the public API in javax.base,
since it proved itself useful in removing listeners and handlers in bulk at the application level.
| Modifier and Type | Class and Description |
|---|---|
| private abstract static class | |
| private abstract class | |
| private abstract static class | |
| private abstract static class | |
| private abstract static class | |
| private abstract static class |
| Modifier and Type | Field and Description |
|---|---|
| private static Function | |
| private final ArrayList | |
| private WeakReference |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public IDisconnectable | |
| public IDisconnectable | |
| public <T> IDisconnectable | |
| public <T> IDisconnectable | |
| public <T> IDisconnectable | |
| public <T> IDisconnectable | |
| public IDisconnectable | |
| public <T extends Event> IDisconnectable | |
| public <T extends Event> IDisconnectable | |
| public IDisconnectable | |
| public IDisconnectable | |
| public <T> IDisconnectable | |
| public <T> IDisconnectable | addInvalidationListener(ObservableValue<T> prop, boolean fireImmediately, InvalidationListener listener)
|
| public <T> IDisconnectable | |
| public <K, V> IDisconnectable | |
| public <T> IDisconnectable | |
| public void | disconnect()
Implements com. Disconnects what has been connected. |
| public static ListenerHelper | |
| private boolean | |
| public static void |
| accessor | back to summary |
|---|---|
| private static Function<SkinBase<?>, ListenerHelper> accessor | |
| items | back to summary |
|---|---|
| private final ArrayList<IDisconnectable> items | |
| ownerRef | back to summary |
|---|---|
| private WeakReference<Object> ownerRef | |
| ListenerHelper | back to summary |
|---|---|
| public ListenerHelper(Object owner) | |
| ListenerHelper | back to summary |
|---|---|
| public ListenerHelper() | |
| addChangeListener | back to summary |
|---|---|
| public IDisconnectable addChangeListener(Runnable callback, ObservableValue<?>... props) | |
| addChangeListener | back to summary |
|---|---|
| public IDisconnectable addChangeListener(Runnable onChange, boolean fireImmediately, ObservableValue<?>... props) | |
| addChangeListener | back to summary |
|---|---|
| public <T> IDisconnectable addChangeListener(ObservableValue<T> prop, ChangeListener<T> listener) | |
| addChangeListener | back to summary |
|---|---|
| public <T> IDisconnectable addChangeListener(ObservableValue<T> prop, boolean fireImmediately, ChangeListener<T> listener) | |
| addChangeListener | back to summary |
|---|---|
| public <T> IDisconnectable addChangeListener(ObservableValue<T> prop, Consumer<T> callback) | |
| addChangeListener | back to summary |
|---|---|
| public <T> IDisconnectable addChangeListener(ObservableValue<T> prop, boolean fireImmediately, Consumer<T> callback) | |
| addDisconnectable | back to summary |
|---|---|
| public IDisconnectable addDisconnectable(Runnable r) | |
| addEventFilter | back to summary |
|---|---|
| public <T extends Event> IDisconnectable addEventFilter(EventTarget x, EventType<T> t, EventHandler<T> handler) | |
| addEventHandler | back to summary |
|---|---|
| public <T extends Event> IDisconnectable addEventHandler(EventTarget x, EventType<T> t, EventHandler<T> handler) | |
| addInvalidationListener | back to summary |
|---|---|
| public IDisconnectable addInvalidationListener(Runnable callback, ObservableValue<?>... props) | |
| addInvalidationListener | back to summary |
|---|---|
| public IDisconnectable addInvalidationListener(Runnable callback, boolean fireImmediately, ObservableValue<?>... props) | |
| addInvalidationListener | back to summary |
|---|---|
| public <T> IDisconnectable addInvalidationListener(ObservableValue<T> prop, InvalidationListener listener) | |
| addInvalidationListener | back to summary |
|---|---|
| public <T> IDisconnectable addInvalidationListener(ObservableValue<T> prop, boolean fireImmediately, InvalidationListener listener) | |
| addListChangeListener | back to summary |
|---|---|
| public <T> IDisconnectable addListChangeListener(ObservableList<T> list, ListChangeListener<T> listener) | |
| addMapChangeListener | back to summary |
|---|---|
| public <K, V> IDisconnectable addMapChangeListener(ObservableMap<K, V> list, MapChangeListener<K, V> listener) | |
| addSetChangeListener | back to summary |
|---|---|
| public <T> IDisconnectable addSetChangeListener(ObservableSet<T> set, SetChangeListener<T> listener) | |
| disconnect | back to summary |
|---|---|
| public void disconnect() Implements com. Doc from com. Disconnects what has been connected. May be called multiple times, only the first invocation actually disconnects.
| |
| get | back to summary |
|---|---|
| public static ListenerHelper get(SkinBase<?> skin) | |
| isAliveOrDisconnect | back to summary |
|---|---|
| private boolean isAliveOrDisconnect() | |
| setAccessor | back to summary |
|---|---|
| public static void setAccessor(Function<SkinBase<?>, ListenerHelper> a) | |
| Access | Constructor and Description |
|---|---|
| private |
| ChLi | back to summary |
|---|---|
| private ChLi() | |
| Modifier and Type | Field and Description |
|---|---|
| private final EventHandler |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | handle(T ev)
Implements javafx. Invoked when a specific event of the type for which this handler is registered happens. |
| handler | back to summary |
|---|---|
| private final EventHandler<T> handler | |
| EvHa | back to summary |
|---|---|
| public EvHa(EventHandler<T> h) | |
| handle | back to summary |
|---|---|
| public void handle(T ev) Implements javafx. Doc from javafx. Invoked when a specific event of the type for which this handler is registered happens.
| |
| Access | Constructor and Description |
|---|---|
| private |
| InLi | back to summary |
|---|---|
| private InLi() | |
| Access | Constructor and Description |
|---|---|
| private |
| LiChLi | back to summary |
|---|---|
| private LiChLi() | |
| Access | Constructor and Description |
|---|---|
| private |
| MaChLi | back to summary |
|---|---|
| private MaChLi() | |
| Access | Constructor and Description |
|---|---|
| private |
| SeChLi | back to summary |
|---|---|
| private SeChLi() | |