Package ca.phon.ui.action
Class PhonUIAction<T>
java.lang.Object
javax.swing.AbstractAction
ca.phon.ui.action.PhonUIAction<T>
- All Implemented Interfaces:
ActionListener
,Serializable
,Cloneable
,EventListener
,Action
UI action calling
FunctionalInterface
methods.- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static <T> PhonUIAction<T>
static PhonUIAction<Void>
eventConsumer
(Consumer<PhonActionEvent<Void>> eventConsumer) static <T> PhonUIAction<T>
eventConsumer
(Consumer<PhonActionEvent<T>> eventConsumer, T data) protected void
executeRunnable
(Runnable runnable) getData()
DataBackground threadboolean
Should we run in the backgroundstatic PhonUIAction<Void>
void
void
setRunInBackground
(boolean v) void
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Method Details
-
runnable
-
consumer
-
eventConsumer
-
eventConsumer
-
isRunInBackground
public boolean isRunInBackground()Should we run in the background -
setRunInBackground
public void setRunInBackground(boolean v) -
getWorkerThread
Background thread -
setWorkerThread
-
getData
Data -
setData
-
executeRunnable
-
actionPerformed
-