public class SchedulerSwitchAction extends AbstractSimpleApplicationAction<Application>
| Modifier and Type | Class and Description |
|---|---|
class |
SchedulerSwitchAction.StateChangedEvent
Evento lançado quando há mudança no estado do agendador de comandos.
|
TAG_ACCELERATOR, TAG_MNEMONIC, TAG_NAME, TAG_TOOLTIPchangeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
SchedulerSwitchAction(Application application)
Construtor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addStateChangedListener(EventListener<SchedulerSwitchAction.StateChangedEvent> listener)
Adiciona um ouvinte que irá receber e tratar eventos de mudança de estado -
(des)bloqueado - do agendador de comandos.
|
protected void |
handleActionPerformed(ActionEvent ae)
Alterna o estado - (des)bloqueado - do agendador de comandos.
|
boolean |
isSchedulerBlocked()
Checa se o agendador de comandos está bloqueado.
|
actionPerformed, getClassString, getDefaultIcon, getString, getStrokeFromTextgetApplicationaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledpublic SchedulerSwitchAction(Application application)
application - Aplicação que detêm essa ação.public boolean isSchedulerBlocked()
public void addStateChangedListener(EventListener<SchedulerSwitchAction.StateChangedEvent> listener)
listener - ouvinte de eventos de mudança de estado do agendador de
comandos.protected void handleActionPerformed(ActionEvent ae) throws Exception
handleActionPerformed in class AbstractSimpleApplicationAction<Application>ae - evento que gerou a ação.Exception - se houver falha na ação.Copyright © 2018. All rights reserved.