/** Creates copy action * @param em explorer manager the action should be attached to * @return action that invokes copy on the explorer */ public static Action actionCopy(ExplorerManager em) { return ExplorerManager.findExplorerActionsImpl(em).copyAction(); }
/** Creates paste action * @param em explorer manager the action should be attached to * @return action that invokes paste on the explorer */ public static Action actionPaste (ExplorerManager em) { return ExplorerManager.findExplorerActionsImpl (em).pasteAction (); }
/** Creates cut action * @param em explorer manager the action should be attached to * @return action that invokes cut on the explorer */ public static Action actionCut(ExplorerManager em) { return ExplorerManager.findExplorerActionsImpl(em).cutAction(); }
/** Creates cut action * @param em explorer manager the action should be attached to * @return action that invokes cut on the explorer */ public static Action actionCut (ExplorerManager em) { return ExplorerManager.findExplorerActionsImpl (em).cutAction (); }
/** Creates cut action * @param em explorer manager the action should be attached to * @return action that invokes cut on the explorer */ public static Action actionCut (ExplorerManager em) { return ExplorerManager.findExplorerActionsImpl (em).cutAction (); }
/** Creates delete action * @param em explorer manager the action should be attached to * @param confirm true if a confirmation box should be displayed before actual deletion * @return action that invokes delete on the explorer */ public static Action actionDelete(ExplorerManager em, boolean confirm) { ExplorerActionsImpl impl = ExplorerManager.findExplorerActionsImpl(em); return impl.deleteAction(confirm); }
/** Creates paste action * @param em explorer manager the action should be attached to * @return action that invokes paste on the explorer */ public static Action actionPaste(ExplorerManager em) { return ExplorerManager.findExplorerActionsImpl(em).pasteAction(); }
/** Creates delete action * @param em explorer manager the action should be attached to * @param confirm true if a confirmation box should be displayed before actual deletion * @return action that invokes delete on the explorer */ public static Action actionDelete (ExplorerManager em, boolean confirm) { ExplorerActionsImpl impl = ExplorerManager.findExplorerActionsImpl (em); return impl.deleteAction (confirm); }
/** Creates copy action * @param em explorer manager the action should be attached to * @return action that invokes copy on the explorer */ public static Action actionCopy (ExplorerManager em) { return ExplorerManager.findExplorerActionsImpl (em).copyAction (); }
/** Creates paste action * @param em explorer manager the action should be attached to * @return action that invokes paste on the explorer */ public static Action actionPaste (ExplorerManager em) { return ExplorerManager.findExplorerActionsImpl (em).pasteAction (); }
/** Creates copy action * @param em explorer manager the action should be attached to * @return action that invokes copy on the explorer */ public static Action actionCopy (ExplorerManager em) { return ExplorerManager.findExplorerActionsImpl (em).copyAction (); }
/** Creates delete action * @param em explorer manager the action should be attached to * @param confirm true if a confirmation box should be displayed before actual deletion * @return action that invokes delete on the explorer */ public static Action actionDelete (ExplorerManager em, boolean confirm) { ExplorerActionsImpl impl = ExplorerManager.findExplorerActionsImpl (em); return impl.deleteAction (confirm); }
/** Activates or deactivates updates of actions for given <code>ExplorerManager</code>. * By default actions created by <code>actionXXX</code> factory methods * are started and update itself according to changes in external environment * (the explorer manager itself, clipboard content, etc.). This might not * be necessary and a bit of resource consuming in case when the component * showing the <code>ExplorerManager</code> is not visible. In such case * the implementation can disable and then again reenable refresh by calling * this method. * * @param em the explorer manager * @param enable true if actions should be updated, false otherwise */ public static void activateActions (ExplorerManager em, boolean enable) { if (enable) { ExplorerManager.findExplorerActionsImpl (em).attach (em); } else { ExplorerManager.findExplorerActionsImpl (em).detach (); } }
/** Activates or deactivates updates of actions for given <code>ExplorerManager</code>. * By default actions created by <code>actionXXX</code> factory methods * are started and update itself according to changes in external environment * (the explorer manager itself, clipboard content, etc.). This might not * be necessary and a bit of resource consuming in case when the component * showing the <code>ExplorerManager</code> is not visible. In such case * the implementation can disable and then again reenable refresh by calling * this method. * * @param em the explorer manager * @param enable true if actions should be updated, false otherwise */ public static void activateActions(ExplorerManager em, boolean enable) { if (enable) { ExplorerManager.findExplorerActionsImpl(em).attach(em); } else { ExplorerManager.findExplorerActionsImpl(em).detach(); } }
/** Activates or deactivates updates of actions for given <code>ExplorerManager</code>. * By default actions created by <code>actionXXX</code> factory methods * are started and update itself according to changes in external environment * (the explorer manager itself, clipboard content, etc.). This might not * be necessary and a bit of resource consuming in case when the component * showing the <code>ExplorerManager</code> is not visible. In such case * the implementation can disable and then again reenable refresh by calling * this method. * * @param em the explorer manager * @param enable true if actions should be updated, false otherwise */ public static void activateActions (ExplorerManager em, boolean enable) { if (enable) { ExplorerManager.findExplorerActionsImpl (em).attach (em); } else { ExplorerManager.findExplorerActionsImpl (em).detach (); } }