|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
ARoad0.gDMak.ActionCopy
public class ActionCopy
An action that copies a view in a new instance with a new name, and saves it then opens it.
Field Summary | |
---|---|
private static java.lang.String |
currentDir__
|
protected Directory |
dirToCopy_
The object to copy, only if it is a Directory. |
private static java.lang.String |
fileSepar__
|
protected GroupID |
groupToCopy_
The object to copy, only if it is a GroupID. |
protected static int |
INITIAL_CAPACITY
|
private static ActionCopy |
instance__
|
private static java.lang.String |
lineSepar__
|
protected BaseObject |
source_
The value of the copy source. |
private static java.lang.String |
userDir__
|
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 |
Constructor Summary | |
---|---|
private |
ActionCopy()
with this private constructor, the compiler won't generate a default public constructor |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent _ev)
Copies the selected frame object. |
void |
copyACSorView(ImmutableName _name)
For a view only, copies, saves and opens it. |
static ActionCopy |
getInstance()
constructor() |
BaseObject |
getSource()
Gets the value of the copy source. |
void |
handleNewBaseObject(BaseObject _obj)
This method is called from actionPerformed(). |
Methods inherited from class javax.swing.AbstractAction |
---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int INITIAL_CAPACITY
private static ActionCopy instance__
private static java.lang.String currentDir__
private static java.lang.String userDir__
private static java.lang.String fileSepar__
private static java.lang.String lineSepar__
protected Directory dirToCopy_
protected GroupID groupToCopy_
protected BaseObject source_
Constructor Detail |
---|
private ActionCopy()
Method Detail |
---|
public static ActionCopy getInstance()
public BaseObject getSource()
getSource
in interface NewBaseObjectListener
public void actionPerformed(java.awt.event.ActionEvent _ev)
actionPerformed
in interface java.awt.event.ActionListener
_ev
- ActionEventpublic void copyACSorView(ImmutableName _name)
_name
- of the ACS or viewpublic void handleNewBaseObject(BaseObject _obj)
Called by BaseObjectHandler for actionPerformed().
handleNewBaseObject
in interface NewBaseObjectListener
_obj
- is the instance which has been created
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |