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, enabledFields 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 TypeMethodDescriptionvoidstatic <T> PhonUIAction<T> static PhonUIAction<Void> eventConsumer(Consumer<PhonActionEvent<Void>> eventConsumer) static <T> PhonUIAction<T> eventConsumer(Consumer<PhonActionEvent<T>> eventConsumer, T data) protected voidexecuteRunnable(Runnable runnable) getData()DataBackground threadbooleanShould we run in the backgroundstatic PhonUIAction<Void> voidvoidsetRunInBackground(boolean v) voidMethods 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
-