|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.purl.sword.client.PostDialog
public class PostDialog
Dialog for users to enter details of post destinations.
| Field Summary | |
|---|---|
protected static String |
ADD
label for the add command. |
protected static String |
BROWSE
label for the browse command. |
protected static String |
CLEAR
label for the clear command. |
protected static String |
DELETE
label for the delete command. |
protected static String |
EDIT
label for the edit command. |
| Constructor Summary | |
|---|---|
PostDialog(JFrame parentFrame)
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent evt)
Handle the button click to select a file to upload. |
void |
addDepositUrls(String[] deposits)
Add a list of deposit URLs. |
void |
addFiles(String[] files)
Add a list of file names. |
void |
addFileTypes(String[] types)
Add a list of file types. |
void |
addFormatNamespaces(String[] namespaces)
Add the list of formatNamespace strings. |
void |
addOnBehalfOf(String[] users)
Add a list of onBehalfOf names. |
void |
addUserIds(String[] users)
Add a list of user ids. |
boolean |
corruptMD5()
Determine if the MD5 hash should be corrupted. |
boolean |
corruptRequest()
Determine if the POST request should be corrupted. |
protected JPanel |
createControls()
Create the controls for the main panel. |
protected JPanel |
createDestinationsPanel()
Create the destinations panel. |
PostDestination[] |
getDestinations()
Get the list of Post Destinations. |
String |
getFile()
Get the file details. |
String |
getFileType()
Get the filetype value. |
String |
getFormatNamespace()
Get the format namespace value. |
String |
getOnBehalfOf()
Get the onBehalfOf value. |
String |
getPostLocation()
Get the post location. |
void |
setDepositLocation(String location)
Set the deposit location. |
int |
show()
Show the dialog with ok and cancel options. |
PostDestination |
showDestinationDialog(PostDestination destination)
Show the destination dialog. |
void |
stateChanged(ChangeEvent evt)
Detect a state change event for the checkbox. |
boolean |
useMd5()
Determine if the MD5 checkbox is selected. |
boolean |
useNoOp()
Determine if the noOp checkbox is selected. |
boolean |
useVerbose()
Determine if the verbose checkbox is selected. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String BROWSE
protected static final String ADD
protected static final String EDIT
protected static final String DELETE
protected static final String CLEAR
| Constructor Detail |
|---|
public PostDialog(JFrame parentFrame)
parentFrame - | Method Detail |
|---|
public int show()
protected final JPanel createControls()
protected JPanel createDestinationsPanel()
public void actionPerformed(ActionEvent evt)
actionPerformed in interface ActionListenerpublic PostDestination showDestinationDialog(PostDestination destination)
destination - The post destination. If this is not null, the values
in the object are used to set the current values
in the dialog controls.
public PostDestination[] getDestinations()
public String getFile()
public String getFileType()
public String getOnBehalfOf()
public String getFormatNamespace()
public boolean useMd5()
public boolean useNoOp()
public boolean useVerbose()
public String getPostLocation()
public boolean corruptMD5()
public boolean corruptRequest()
public void stateChanged(ChangeEvent evt)
stateChanged in interface ChangeListenerevt - The event.public void addUserIds(String[] users)
users - The user ids.public void addDepositUrls(String[] deposits)
deposits - The URLs.public void addOnBehalfOf(String[] users)
users - The names.public void addFormatNamespaces(String[] namespaces)
namespaces - list of strings.public void addFileTypes(String[] types)
types - The file types.public void addFiles(String[] files)
files - The list of files.public void setDepositLocation(String location)
location - The location.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||