|
Class AbstractInviteAction
|
java.lang.Object
|
+--javax.swing.AbstractAction
|
public abstract class AbstractInviteAction
Extends:
javax.swing.AbstractAction
Version:
$Id: AbstractInviteAction.java,v 1.2 2005/03/23 12:53:46 gonzo Exp $
Author:
james todd [gonzo at jxta dot org]
| Field Summary |
private JFrame |
The parent JFrame, which is needed if we desire to show dialogs |
private final static String |
The name of the zip entry for a group entry |
private MimeMediaType |
The MimeMediaType for zip entries |
private final static String |
The name of the zip entry for a peer entry |
private final static String |
The name of the zip entry for a pipe entry |
private File |
The root file directory in which to save files |
protected final static String |
The prefix for the pipe that allows chat |
|
The View from which the currently selected peer group can be extracted |
| Constructor Summary |
public |
Create a new AbstractInviteAction |
| Method Summary |
public abstract void |
The method called if an action is performed. |
public JFrame |
Get the JFrame parent object |
public MimeMediaType |
Return the mime type of the zip entries |
public PeerGroup |
Return the currently selected peer group or null if no peer group is
selected |
public File |
Get the directory in which files should be saved or retrieved from |
protected static ZipEntry |
Return ZipEntry with a suitable name for the type given |
private JFrame frame = null
The parent JFrame, which is needed if we desire to show dialogs
private final static String GROUP = "Group"
The name of the zip entry for a group entry
private MimeMediaType mime = null
The MimeMediaType for zip entries
private final static String PEER = "Peer"
The name of the zip entry for a peer entry
private final static String PIPE = "Talk"
The name of the zip entry for a pipe entry
private File rootDir = null
The root file directory in which to save files
protected final static String TALK_PREFIX = "JxtaTalkUser."
The prefix for the pipe that allows chat
The View from which the currently selected peer group can be extracted
public AbstractInviteAction(String name, JFrame frame, View view)
Create a new AbstractInviteAction
Parameters:
name a descriptive name of the action to be performed
frame the JFrame that originated the event
view the MyJXTAView that allows to determine the selected
peer group or peer
public abstract void actionPerformed(ActionEvent ae)
The method called if an action is performed. Needs to be implemented by
child classes
Parameters:
ae the triggering ActionEvent object
public JFrame getFrame()
Get the JFrame parent object
Return:
the JFrame parent
public MimeMediaType getMIME()
Return the mime type of the zip entries
Return:
the mime type
public PeerGroup getPeerGroup()
Return the currently selected peer group or null if no peer group is
selected
Return:
the currently selected peer group
public File getRootDir()
Get the directory in which files should be saved or retrieved from
Return:
the parent directory
protected static ZipEntry getZipEntry(int type)
Return ZipEntry with a suitable name for the type given
Parameters:
type for the ZipEntry
Return:
a ZipEntry with the correct name