public class ExpandablePanelGroup extends Object
painéis expansíveis . Gerencia operações
"expandir todos" e "fechar todos", e possibilita a definição de um listener
para o grupo.ExpandablePanel| Modifier and Type | Field and Description |
|---|---|
static String |
COLLAPSE_ALL_ACTION_ID
Id do evento enviado quando todos os painéis são fechados.
|
static String |
EXPAND_ALL_ACTION_ID
Id do evento enviado quando todos os painéis são abertos.
|
| Constructor and Description |
|---|
ExpandablePanelGroup() |
| Modifier and Type | Method and Description |
|---|---|
ExpandablePanelGroup |
add(ExpandablePanel... panels)
Acrescenta novos painéis ao agregador.
|
void |
collapseAll()
Fecha todos os painéis.
|
JButton |
createCollapseAllButton()
Cria um botão para fechar todos os painéis associados ao grupo.
|
JButton |
createExpandAllButton()
Cria um botão para expandir todos os painéis associados ao grupo.
|
void |
expandAll()
Expande todos os painéis.
|
boolean |
remove(ExpandablePanel panel)
Remove um painel do agregador.
|
ActionListener |
removeListener()
Remove o listener.
|
ActionListener |
setListener(ActionListener newListener)
Define um listener para o agregador.
|
public static final String EXPAND_ALL_ACTION_ID
public static final String COLLAPSE_ALL_ACTION_ID
public ExpandablePanelGroup add(ExpandablePanel... panels)
panels - painéispublic boolean remove(ExpandablePanel panel)
panel - painel a ser removidotrue se o painel era gerenciado pelo agregador e foi
removidopublic void expandAll()
public void collapseAll()
public ActionListener setListener(ActionListener newListener)
newListener - listener. Se for null, remove o listener
correntenull se não
havia um listener)public ActionListener removeListener()
setListener(ActionListener) com
parâmetro null.null se não
havia um listener)public JButton createExpandAllButton()
public JButton createCollapseAllButton()
Copyright © 2019 Tecgraf/PUC-Rio. All rights reserved.