Class AbstractInviteAction
package: net.jxta.myjxta.ui.action
java.lang.Object
  |
  +--javax.swing.AbstractAction
       |
       +--net.jxta.myjxta.ui.action.AbstractInviteAction
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
 
private View
   The View from which the currently selected peer group can be extracted
 
Constructor Summary
public
AbstractInviteAction(String name, JFrame frame, View view)
   Create a new AbstractInviteAction
 
Method Summary
public abstract void
actionPerformed(ActionEvent ae)
   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
getZipEntry(int type)
   Return ZipEntry with a suitable name for the type given
 
Field Detail
frame
private JFrame frame = null
The parent JFrame, which is needed if we desire to show dialogs

GROUP
private final static String GROUP = "Group"
The name of the zip entry for a group entry

mime
private MimeMediaType mime = null
The MimeMediaType for zip entries

PEER
private final static String PEER = "Peer"
The name of the zip entry for a peer entry

PIPE
private final static String PIPE = "Talk"
The name of the zip entry for a pipe entry

rootDir
private File rootDir = null
The root file directory in which to save files

TALK_PREFIX
protected final static String TALK_PREFIX = "JxtaTalkUser."
The prefix for the pipe that allows chat

view
private View view = null
The View from which the currently selected peer group can be extracted
Constructor Detail
AbstractInviteAction
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
Method Detail
actionPerformed
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

getFrame
public JFrame getFrame()
Get the JFrame parent object
Return:
the JFrame parent

getMIME
public MimeMediaType getMIME()
Return the mime type of the zip entries
Return:
the mime type

getPeerGroup
public PeerGroup getPeerGroup()
Return the currently selected peer group or null if no peer group is selected
Return:
the currently selected peer group

getRootDir
public File getRootDir()
Get the directory in which files should be saved or retrieved from
Return:
the parent directory

getZipEntry
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