コード例 #1
0
ファイル: XmlChooser.java プロジェクト: nbearson/IDV
 /**
  * _more_
  *
  * @param dataSource _more_
  */
 public void setDataSource(DataSource dataSource) {
   super.setDataSource(dataSource);
   String tmp = (String) dataSource.getProperty(PROP_CHOOSER_URL);
   if (tmp != null) {
     initialUrlPath = tmp;
   }
 }
コード例 #2
0
ファイル: XmlChooser.java プロジェクト: nbearson/IDV
 /**
  * Handle any Gui actions.
  *
  * @param ae The <code>ActionEvent</code>.
  */
 public void actionPerformed(ActionEvent ae) {
   String cmd = ae.getActionCommand();
   if (cmd.equals(CMD_BROWSE)) {
     String filename = FileManager.getReadFile(FILTER_XML);
     if (filename == null) {
       return;
     }
     urlBox.setSelectedItem(filename);
   } else if (cmd.equals(GuiUtils.CMD_OK)) {
     doLoad();
   } else {
     // Here, the base class ChooserPanel will check if this command
     // is the load or cancel command.
     super.actionPerformed(ae);
   }
 }
コード例 #3
0
ファイル: XmlChooser.java プロジェクト: nbearson/IDV
 /**
  * _more_
  *
  * @param have _more_
  */
 public void setHaveData(boolean have) {
   super.setHaveData(have);
   updateStatus();
 }