public abstract class GraphElementAction extends Action
changeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Modifier | Constructor and Description |
|---|---|
protected |
GraphElementAction(GraphElement element,
String nameKey,
ImageIcon icon)
Cria a ação.
|
protected |
GraphElementAction(GraphElement element,
String nameKey,
ImageIcon icon,
KeyStroke acceleratorKeyStroke)
Cria a ação.
|
| Modifier and Type | Method and Description |
|---|---|
protected GraphElement |
getElement()
Obtém o elemento.
|
protected Window |
getParentWindow()
Obtém a janela pai do menu popup.
|
protected void |
showErrorDialog(Exception exception)
Exibe um diálogo com uma exceção.
|
protected void |
showErrorDialog(String message)
Exibe um diálogo com uma mensagem de erro.
|
protected void |
showWarning(String message,
String title)
Exibe um diálogo com um aviso.
|
getToolTipTextaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitactionPerformedprotected GraphElementAction(GraphElement element, String nameKey, ImageIcon icon, KeyStroke acceleratorKeyStroke)
element - O elemento do fluxo (Não aceita null).nameKey - O nome da chave do mecanismo de internacionalização com o
nome da ação.icon - O ícone da ação.acceleratorKeyStroke - A tecla que dispara a ação.protected GraphElementAction(GraphElement element, String nameKey, ImageIcon icon)
element - O elemento do fluxo (Não aceita null).nameKey - O nome da chave do mecanismo de internacionalização com o
nome da ação.icon - O ícone da ação.protected GraphElement getElement()
protected final Window getParentWindow()
protected final void showErrorDialog(Exception exception)
exception - A exceção (Não aceita null).protected final void showErrorDialog(String message)
message - A mensagem de erro (Não aceita null).Copyright © 2018. All rights reserved.