Exemplo n.º 1
0
 /**
  * _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;
   }
 }
Exemplo n.º 2
0
 /**
  * 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);
   }
 }
Exemplo n.º 3
0
 /**
  * _more_
  *
  * @param have _more_
  */
 public void setHaveData(boolean have) {
   super.setHaveData(have);
   updateStatus();
 }