| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Represents dialog which text field for input some text and button for call file chooser.
Example of usage:
private String chooseURL(String url){
String rezult = null;
URLChooser chooser = new URLChooser(url, lastDirectory);
if (chooser.show()){
rezult = chooser.getUrl();
if(rezult != null && rezult.length() > 0) {
lastDirectory = chooser.getDirectory();
lastURL = rezult;
}
}
return rezult;
}
| Field Summary | |
private final static String | ABSOLUTE_RBUTTON_COMMAND |
private final static String | ABSOLUTE_RBUTTON_LABEL |
private boolean | isCanceled |
private JRadioButton | myAbsoluteButton |
private IdeConfig | myConfig |
private String | myCurrentDirectory |
private JDialog | myDialog |
private ExtendedControl | myExtendedControl |
private ButtonGroup | myRButtonGroup |
private JRadioButton | myRelativeButton |
private JTextField | myTextField |
private String | myTitle |
private String | myUrl |
private VirtualFileManager | myVirtualFileManager |
private final static String | RELATIVE_PATHS_CONFIG_PROPERTY |
private final static String | RELATIVE_RBUTTON_COMMAND |
private final static String | RELATIVE_RBUTTON_LABEL |
| Constructor Summary | |
URLChooser(String title, String url, String currentDirectory)Creates new URLChooser. | |
URLChooser(String url, String currentDirectory)Creates new URLChooser with title - "Choose URL". | |
| Method Summary | |
void | actionPerformed(ActionEvent evt)Implements ActionListener interface. |
private JPanel | createButtonPane() |
private JPanel | createContentPane() |
private JPanel | createRadioButtonGroup() |
private void | dispose() |
private void | doCancel() |
private void | enableRadioButtons(boolean state) |
private String | getAbsolutePath(String fileName) |
String | getDirectory() |
private VirtualFile | getProjectFileParent() |
private String | getRelativePath(String fileName) |
String | getUrl() |
private boolean | isFile(String url) |
private void | selectRadioButton(String url) |
boolean | show()Shows URLChooser and returns rezult of view. |
| Field Detail |
private final static String ABSOLUTE_RBUTTON_COMMAND
private final static String ABSOLUTE_RBUTTON_LABEL
private boolean isCanceled
private JRadioButton myAbsoluteButton
private IdeConfig myConfig
private String myCurrentDirectory
private JDialog myDialog
private ExtendedControl myExtendedControl
private ButtonGroup myRButtonGroup
private JRadioButton myRelativeButton
private JTextField myTextField
private String myTitle
private String myUrl
private VirtualFileManager myVirtualFileManager
private final static String RELATIVE_PATHS_CONFIG_PROPERTY
private final static String RELATIVE_RBUTTON_COMMAND
private final static String RELATIVE_RBUTTON_LABEL
| Constructor Detail |
public URLChooser(String title, String url, String currentDirectory)
URLChooser.String - title for chooser dialog.String - initialization string.String - current path reflected by file chooser.public URLChooser(String url, String currentDirectory)
URLChooser with title - "Choose URL".String - initialization string.String - current path reflected by file chooser.| Method Detail |
public void actionPerformed(ActionEvent evt)
ActionListener interface.private JPanel createButtonPane()
private JPanel createContentPane()
private JPanel createRadioButtonGroup()
private void dispose()
private void doCancel()
private void enableRadioButtons(boolean state)
private String getAbsolutePath(String fileName)
public String getDirectory()
String path from file chooser.private VirtualFile getProjectFileParent()
private String getRelativePath(String fileName)
public String getUrl()
String choosed url.private boolean isFile(String url)
private void selectRadioButton(String url)
public boolean show()
URLChooser and returns rezult of view.boolean true if pressed Ok button or false if pressed Cancel.| Association Links |
to Class com.togethersoft.openapi.vfs.VirtualFileManager
to Class com.togethersoft.openapi.util.ui.ExtendedControl
to Class javax.swing.JTextField
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class javax.swing.JDialog
to Class javax.swing.JRadioButton
to Class javax.swing.JRadioButton
to Class javax.swing.ButtonGroup
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||