|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.gui.action.ActionHelper
public class ActionHelper
This class provides a set of static actions.
Nested Class Summary | |
---|---|
static interface |
ActionHelper.ActionExtractor
|
Field Summary | |
---|---|
static javax.swing.Action |
copyAction
Default clipboard copy action that operates on any JTextComponent . |
static javax.swing.Action |
cutAction
Default clipboard cut action that operates on any JTextComponent . |
static javax.swing.Action |
pasteAction
Default clipboard paste action that operates on any JTextComponent . |
static javax.swing.Action |
pluginPreferencesDialogAction
|
Constructor Summary | |
---|---|
ActionHelper()
|
Method Summary | |
---|---|
static int |
addCommonActions(AbstractDynamicMenu jm,
java.lang.Object[] object,
ActionHelper.ActionExtractor ae)
|
static int |
addCommonActions(AbstractDynamicMenu jm,
java.lang.Object[] object,
ActionHelper.ActionExtractor ae,
int startIndex)
Uses the ActionExtractor to extract the common actions from all objects in the array and adds them to the AbstractDynamicMenu as temporaries. |
static javax.swing.JComponent |
createMenuItem(javax.swing.Action action)
MenuItem factory. |
static void |
enqueueFiles(java.io.File[] files,
boolean playFirst)
Used by the Play...Actions for enqueueing files. |
static java.util.Collection |
getCommonActions(java.lang.Object[] items,
ActionHelper.ActionExtractor ae)
Returns a collection of common actions in objects . |
static boolean |
perform(javax.swing.Action[] actions,
java.awt.event.ActionEvent event,
java.lang.Class requiredInterface)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static javax.swing.Action copyAction
JTextComponent
.
public static javax.swing.Action cutAction
JTextComponent
.
public static javax.swing.Action pasteAction
JTextComponent
.
public static javax.swing.Action pluginPreferencesDialogAction
Constructor Detail |
---|
public ActionHelper()
Method Detail |
---|
public static int addCommonActions(AbstractDynamicMenu jm, java.lang.Object[] object, ActionHelper.ActionExtractor ae, int startIndex)
jm
, otherwisepublic static int addCommonActions(AbstractDynamicMenu jm, java.lang.Object[] object, ActionHelper.ActionExtractor ae)
public static java.util.Collection getCommonActions(java.lang.Object[] items, ActionHelper.ActionExtractor ae)
objects
.
public static javax.swing.JComponent createMenuItem(javax.swing.Action action)
public static void enqueueFiles(java.io.File[] files, boolean playFirst)
files
- array of files to be enqueuedplayFirst
- play first filepublic static boolean perform(javax.swing.Action[] actions, java.awt.event.ActionEvent event, java.lang.Class requiredInterface)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |