@@ -37,7 +37,7 @@ object FileChooser {
37
37
/**
38
38
* Used to open file dialogs.
39
39
*
40
- * @see [[ javax.swing.JFileChooser ]]
40
+ * @see [[ http://docs.oracle.com/javase/7/docs/api/javax/swing/JFileChooser.html javax.swing.JFileChooser ]]
41
41
*/
42
42
class FileChooser (dir : File ) {
43
43
import scala .swing .FileChooser ._
@@ -48,24 +48,24 @@ class FileChooser(dir: File) {
48
48
import scala .swing .Swing ._
49
49
50
50
/**
51
- * Display a dialog box to select a file.
52
- * @param over Parent container - Component, Frame or Dialog
53
- * @return Status of how the dialog was closed.
51
+ * Display a dialog box to select an "Open File" file.
52
+ * @param over Parent container - [[ scala.swing. Component Component ]], [[ scala.swing. Frame Frame ]] or [[ scala.swing. Dialog Dialog ]]
53
+ * @return a [[ scala.swing.FileChooser.Result Result ]] value based how dialog was closed.
54
54
*/
55
55
def showOpenDialog (over : PeerContainer ): Result .Value = Result (peer.showOpenDialog(nullPeer(over)))
56
56
57
57
/**
58
- * Display a dialog box to select a file.
59
- * @param over Parent container - Component, Frame or Dialog
60
- * @return Parent container - Component, Frame or Dialog
58
+ * Display a dialog box to select a "Save File" file.
59
+ * @param over Parent container - [[ scala.swing. Component Component ]], [[ scala.swing. Frame Frame ]] or [[ scala.swing. Dialog Dialog ]]
60
+ * @return a [[ scala.swing.FileChooser.Result Result ]] value based how dialog was closed.
61
61
*/
62
62
def showSaveDialog (over : PeerContainer ): Result .Value = Result (peer.showSaveDialog(nullPeer(over)))
63
63
64
64
/**
65
65
* Display a dialog box to select a file.
66
- * @param over Parent container - Component, Frame or Dialog
67
- * @param approveText text for the 'ok' button
68
- * @return Parent container - Component, Frame or Dialog
66
+ * @param over Parent container - [[ scala.swing. Component Component ]], [[ scala.swing. Frame Frame ]] or [[ scala.swing. Dialog Dialog ]]
67
+ * @param approveText Text for the 'ok' or 'approve' button.
68
+ * @return a [[ scala.swing.FileChooser.Result Result ]] value based how dialog was closed.
69
69
*/
70
70
def showDialog (over : PeerContainer , approveText : String ): Result .Value = Result (peer.showDialog(nullPeer(over), approveText))
71
71
0 commit comments