Tabnine Logo
GenericObjectEditor.setValue
Code IndexAdd Tabnine to your IDE (free)

How to use
setValue
method
in
weka.gui.GenericObjectEditor

Best Java code snippets using weka.gui.GenericObjectEditor.setValue (Showing top 20 results out of 315)

origin: nz.ac.waikato.cms.weka/weka-stable

 @Override
 public void actionPerformed(ActionEvent e) {
  m_ClassifierEditor.setValue(classifier);
 }
});
origin: Waikato/weka-trunk

 @Override
 public void actionPerformed(ActionEvent e) {
  m_AttributeEvaluatorEditor.setValue(eval);
  m_AttributeSearchEditor.setValue(search);
 }
});
origin: nz.ac.waikato.cms.weka/weka-stable

 @Override
 public void actionPerformed(ActionEvent e) {
  m_ClustererEditor.setValue(clusterer);
 }
});
origin: nz.ac.waikato.cms.weka/weka-stable

 @Override
 public void actionPerformed(ActionEvent e) {
  m_AttributeEvaluatorEditor.setValue(eval);
  m_AttributeSearchEditor.setValue(search);
 }
});
origin: nz.ac.waikato.cms.weka/weka-stable

 @Override
 public void actionPerformed(ActionEvent e) {
  m_AssociatorEditor.setValue(model);
 }
});
origin: Waikato/weka-trunk

 @Override
 public void actionPerformed(ActionEvent e) {
  m_ClassifierEditor.setValue(classifier);
 }
});
origin: Waikato/weka-trunk

 @Override
 public void actionPerformed(ActionEvent e) {
  m_ClustererEditor.setValue(clusterer);
 }
});
origin: Waikato/weka-trunk

 @Override
 public void actionPerformed(ActionEvent e) {
  m_AssociatorEditor.setValue(model);
 }
});
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * sets the generator to use initially
 * 
 * @param value    the data generator to use
 */
public void setGenerator(DataGenerator value) {
 if (value != null)
  m_GeneratorEditor.setValue(value);
 else
  m_GeneratorEditor.setValue(
    new weka.datagenerators.classifiers.classification.RDG1());
}
origin: Waikato/weka-trunk

/**
 * sets the generator to use initially
 * 
 * @param value    the data generator to use
 */
public void setGenerator(DataGenerator value) {
 if (value != null)
  m_GeneratorEditor.setValue(value);
 else
  m_GeneratorEditor.setValue(
    new weka.datagenerators.classifiers.classification.RDG1());
}
origin: nz.ac.waikato.cms.weka/weka-stable

 @Override
 public void actionPerformed(ActionEvent e) {
  Object object = openObject();
  if (object != null) {
   // setValue takes care of: Making sure obj is of right type,
   // and firing property change.
   setValue(object);
   // Need a second setValue to get property values filled in OK.
   // Not sure why.
   setValue(object);
  }
 }
});
origin: Waikato/weka-trunk

 @Override
 public void actionPerformed(ActionEvent e) {
  Object object = openObject();
  if (object != null) {
   // setValue takes care of: Making sure obj is of right type,
   // and firing property change.
   setValue(object);
   // Need a second setValue to get property values filled in OK.
   // Not sure why.
   setValue(object);
  }
 }
});
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * initializes the GUI components with the data.
 */
private void setData() {
 m_IgnoreChanges = true;
 // Precision
 m_MeanPrecSpinner.setValue(m_ResultMatrix.getMeanPrec());
 m_StdDevPrecSpinner.setValue(m_ResultMatrix.getStdDevPrec());
 // format
 for (int i = 0; i < m_OutputFormatClasses.size(); i++) {
  if (m_OutputFormatClasses.get(i).equals(m_ResultMatrix.getClass())) {
   m_OutputFormatComboBox.setSelectedItem(m_OutputFormatNames.get(i));
   break;
  }
 }
 // average
 m_ShowAverageCheckBox.setSelected(m_ResultMatrix.getShowAverage());
 // filter names
 m_RemoveFilterNameCheckBox
  .setSelected(m_ResultMatrix.getRemoveFilterName());
 // GOE
 m_ResultMatrixEditor.setValue(m_ResultMatrix);
 m_IgnoreChanges = false;
}
origin: Waikato/weka-trunk

/**
 * initializes the GUI components with the data.
 */
private void setData() {
 m_IgnoreChanges = true;
 // Precision
 m_MeanPrecSpinner.setValue(m_ResultMatrix.getMeanPrec());
 m_StdDevPrecSpinner.setValue(m_ResultMatrix.getStdDevPrec());
 // format
 for (int i = 0; i < m_OutputFormatClasses.size(); i++) {
  if (m_OutputFormatClasses.get(i).equals(m_ResultMatrix.getClass())) {
   m_OutputFormatComboBox.setSelectedItem(m_OutputFormatNames.get(i));
   break;
  }
 }
 // average
 m_ShowAverageCheckBox.setSelected(m_ResultMatrix.getShowAverage());
 // filter names
 m_RemoveFilterNameCheckBox
  .setSelected(m_ResultMatrix.getRemoveFilterName());
 // GOE
 m_ResultMatrixEditor.setValue(m_ResultMatrix);
 m_IgnoreChanges = false;
}
origin: nz.ac.waikato.cms.weka/weka-stable

 @Override
 public void propertyChange(PropertyChangeEvent e) {
  // user selected different class?
  if (!m_ResultMatrix.getClass().equals(
   m_ResultMatrixEditor.getValue().getClass())) {
   // if it's the preferred class, then automaticallly use the
   // Experimenter defaults
   if (m_ResultMatrixEditor.getValue().getClass()
    .equals(ExperimenterDefaults.getOutputFormat().getClass())) {
    m_ResultMatrix = ExperimenterDefaults.getOutputFormat();
    m_ResultMatrixEditor.setValue(ExperimenterDefaults
     .getOutputFormat());
   } else {
    m_ResultMatrix = (ResultMatrix) m_ResultMatrixEditor.getValue();
   }
   setData();
  }
  repaint();
 }
});
origin: Waikato/weka-trunk

 @Override
 public void propertyChange(PropertyChangeEvent e) {
  // user selected different class?
  if (!m_ResultMatrix.getClass().equals(
   m_ResultMatrixEditor.getValue().getClass())) {
   // if it's the preferred class, then automaticallly use the
   // Experimenter defaults
   if (m_ResultMatrixEditor.getValue().getClass()
    .equals(ExperimenterDefaults.getOutputFormat().getClass())) {
    m_ResultMatrix = ExperimenterDefaults.getOutputFormat();
    m_ResultMatrixEditor.setValue(ExperimenterDefaults
     .getOutputFormat());
   } else {
    m_ResultMatrix = (ResultMatrix) m_ResultMatrixEditor.getValue();
   }
   setData();
  }
  repaint();
 }
});
origin: nz.ac.waikato.cms.weka/weka-stable

setValue(WekaPackageClassLoaderManager.forName(defaultValue).newInstance());
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Pops up generic object editor with list of conversion filters
 *
 * @param f the File
 */
private void converterQuery(final File f) {
 final GenericObjectEditor convEd = new GenericObjectEditor(true);
 try {
  convEd.setClassType(weka.core.converters.Loader.class);
  convEd.setValue(new weka.core.converters.CSVLoader());
  ((GenericObjectEditor.GOEPanel) convEd.getCustomEditor())
   .addOkListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
     tryConverter((Loader) convEd.getValue(), f);
    }
   });
 } catch (Exception ex) {
 }
 PropertyDialog pd;
 if (PropertyDialog.getParentDialog(this) != null)
  pd =
   new PropertyDialog(PropertyDialog.getParentDialog(this), convEd, -1, -1);
 else
  pd =
   new PropertyDialog(PropertyDialog.getParentFrame(this), convEd, -1, -1);
 pd.setVisible(true);
}
origin: Waikato/weka-trunk

/**
 * Pops up generic object editor with list of conversion filters
 *
 * @param f the File
 */
private void converterQuery(final File f) {
 final GenericObjectEditor convEd = new GenericObjectEditor(true);
 try {
  convEd.setClassType(weka.core.converters.Loader.class);
  convEd.setValue(new weka.core.converters.CSVLoader());
  ((GenericObjectEditor.GOEPanel) convEd.getCustomEditor())
   .addOkListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
     tryConverter((Loader) convEd.getValue(), f);
    }
   });
 } catch (Exception ex) {
 }
 PropertyDialog pd;
 if (PropertyDialog.getParentDialog(this) != null)
  pd =
   new PropertyDialog(PropertyDialog.getParentDialog(this), convEd, -1, -1);
 else
  pd =
   new PropertyDialog(PropertyDialog.getParentFrame(this), convEd, -1, -1);
 pd.setVisible(true);
}
origin: nz.ac.waikato.cms.weka/weka-stable

  getPerspectiveID(), AssociationsPanelDefaults.ASSOCIATOR_KEY,
  AssociationsPanelDefaults.ASSOCIATOR, Environment.getSystemWide());
m_AssociatorEditor.setValue(initialA);
weka.guiGenericObjectEditorsetValue

Javadoc

Sets the current Object. If the Object is in the Object chooser, this becomes the selected item (and added to the chooser if necessary).

Popular methods of GenericObjectEditor

  • <init>
    Constructor that allows specifying whether it is possible to change the class within the editor dial
  • determineClasses
  • getValue
    Gets the current Object.
  • setClassType
    Sets the class of values that can be edited.
  • addPropertyChangeListener
    Adds a PropertyChangeListener who will be notified of value changes.
  • getChooseClassPopupMenu
    Returns a popup menu that allows the user to change the class of object.
  • getClassesFromProperties
    Called when the class of object being edited changes.
  • getCustomEditor
    Returns the array editing component.
  • setEnabled
    Sets whether the editor is "enabled", meaning that the current values will be painted.
  • addChildrenToTree
    Recursively builds a JTree from an object heirarchy. Also updates m_treeNodeOfCurrentObject if the c
  • classSelected
    Called when the user selects an class type to change to.
  • createChooseClassButton
    Creates a button that when clicked will enable the user to change the class of the object being edit
  • classSelected,
  • createChooseClassButton,
  • createTree,
  • getBackup,
  • getCapabilitiesFilter,
  • getClassnameFromPath,
  • getHistory,
  • getRootFromClass,
  • makeCopy

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • setRequestProperty (URLConnection)
  • onRequestPermissionsResult (Fragment)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now