public interface PanelManager
PanelManager except for listener registration and removal should happen on the AWT Event Dispatching Thread.| Modifier and Type | Method and Description |
|---|---|
void |
addListener(PanelListener listener) |
void |
addListener(PanelListener listener,
Component panel) |
void |
close(Component panel) |
default void |
close(Map<?,?> properties) |
default void |
close(Predicate<Component> selector) |
default HashMap<String,Serializable> |
get(Component panel,
Collection<?> keys) |
Object |
get(Component panel,
Object key)
Returns the value of the panel property identified by the specified key.
|
default Object |
getOrDefault(Component panel,
Object key,
Object defaultValue)
Returns the value of the panel state attribute identified by the specified key, or
defaultValue
if either the panel state contains no mapping for the key, or the key is mapped to null . |
Component |
getPanel(Component component) |
List<? extends Component> |
getPanels()
Returns the list of panels managed by this
PanelManager. |
default List<? extends Component> |
getPanels(Map<?,?> properties) |
default List<? extends Component> |
getPanels(Object key,
Object value) |
default List<? extends Component> |
getPanels(Predicate<Component> selector) |
default Component |
getSelectedPanel(PanelType type) |
boolean |
isInState(Component panel,
Map<?,?> properties) |
void |
open(Component panel,
Map<?,?> properties) |
default void |
open(Component panel,
String title) |
void |
removeListener(PanelListener listener) |
void |
removeListener(PanelListener listener,
Component panel) |
void |
set(Component panel,
Object key,
Object value) |
void close(Component panel)
default void close(Map<?,?> properties)
List<? extends Component> getPanels()
PanelManager.PanelManager.Object get(Component panel, Object key)
panel - key - The key whose associated value is to be returned.null if the state contains no mapping for the key.default Object getOrDefault(Component panel, Object key, Object defaultValue)
defaultValue
if either the panel state contains no mapping for the key, or the key is mapped to null .panel - key - The key whose associated value is to be returned.defaultValue - The default value.default HashMap<String,Serializable> get(Component panel, Collection<?> keys)
void addListener(PanelListener listener)
void addListener(PanelListener listener, Component panel)
void removeListener(PanelListener listener)
void removeListener(PanelListener listener, Component panel)
Copyright © 2023 LSST. All rights reserved.