|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pdfsam.guiclient.utils.DialogUtility
public class DialogUtility
Utility to show dialogs
Field Summary | |
---|---|
static int |
AT_LEAST_ONE_DOC
|
static int |
DIRECTORY_DESTINATION
|
static int |
FILE_DESTINATION
|
static int |
ONE_DOC
|
static int |
TWO_DOC
|
Constructor Summary | |
---|---|
DialogUtility()
|
Method Summary | |
---|---|
static java.lang.String |
askForDocumentPasswordDialog(java.awt.Component comp,
java.lang.String filename)
Show a dialog to ask the user for the document password |
static int |
askForEmptySelectionPanel(java.awt.Component comp)
Shows a yes/no confirmation dialog to ask the user if he wants to empty the selection list |
static int |
askForOverwriteConfirmation(java.awt.Component comp)
Shows a yes/no/cancel asking the user for a confirmation about the overwrite check |
static int |
askForOverwriteOutputFileDialog(java.awt.Component comp,
java.lang.String filename)
Shows a yes/no/cancel dialog to ask the user about overwriting output file |
static int |
askForPdfVersionConfilct(java.awt.Component comp,
java.lang.String lowestVersion)
Shows a yes/no confirmation dialog to ask the user if he wants to continue even if the selected pdf version is lower than the lowest available |
static void |
errorGenericDialog(java.awt.Component comp,
java.lang.String title,
java.lang.String message)
Generic error dialog |
static void |
errorValidatingBounds(java.awt.Component comp,
java.lang.String bounds)
Shows an error dialog |
static int |
showConfirmOuputLocationDialog(java.awt.Component comp,
java.lang.String suggestedDir)
Shows a yes/no/cancel dialog to ask for change the output directory |
static void |
showWarningAddingDocument(java.awt.Component comp)
Shows a warning dialog telling the user that the selection panel is still adding files. |
static void |
showWarningNoDestinationSelected(java.awt.Component comp,
int msgType)
Shows a warning dialog telling the user that the destination is not set |
static void |
showWarningNoDocsSelected(java.awt.Component comp,
int msgType)
Shows a warning dialog telling the user that at least one document should be selected |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int AT_LEAST_ONE_DOC
public static final int ONE_DOC
public static final int TWO_DOC
public static final int FILE_DESTINATION
public static final int DIRECTORY_DESTINATION
Constructor Detail |
---|
public DialogUtility()
Method Detail |
---|
public static int showConfirmOuputLocationDialog(java.awt.Component comp, java.lang.String suggestedDir)
comp
- parent componentsuggestedDir
- suggested directory
public static void showWarningNoDocsSelected(java.awt.Component comp, int msgType)
comp
- msgType
- the type of the messagepublic static void showWarningAddingDocument(java.awt.Component comp)
comp
- msgType
- public static void showWarningNoDestinationSelected(java.awt.Component comp, int msgType)
comp
- msgType
- public static int askForOverwriteOutputFileDialog(java.awt.Component comp, java.lang.String filename)
comp
- parent componentfilename
- suggested directory
public static int askForOverwriteConfirmation(java.awt.Component comp)
comp
-
public static void errorValidatingBounds(java.awt.Component comp, java.lang.String bounds)
comp
- bounds
- public static void errorGenericDialog(java.awt.Component comp, java.lang.String title, java.lang.String message)
comp
- title
- message
- public static java.lang.String askForDocumentPasswordDialog(java.awt.Component comp, java.lang.String filename)
comp
-
public static int askForEmptySelectionPanel(java.awt.Component comp)
comp
-
public static int askForPdfVersionConfilct(java.awt.Component comp, java.lang.String lowestVersion)
comp
- lowestVersion
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |