Package weka.gui

Class PropertySheetPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, EnvironmentHandler

public class PropertySheetPanel extends JPanel implements PropertyChangeListener, EnvironmentHandler
Displays a property sheet where (supported) properties of the target object may be edited.
Version:
$Revision: 15452 $
Author:
Len Trigg (trigg@cs.waikato.ac.nz)
See Also:
  • Constructor Details

    • PropertySheetPanel

      public PropertySheetPanel()
      Creates the property sheet panel with an about panel.
    • PropertySheetPanel

      public PropertySheetPanel(boolean showAboutPanel)
      Creates the property sheet panel
      Parameters:
      showAboutPanel - true if the about panel is to be shown
  • Method Details

    • setUseEnvironmentPropertyEditors

      public void setUseEnvironmentPropertyEditors(boolean u)
      Set whether to use environment property editors for string and file properties
      Parameters:
      u - true to use environment property editors
    • getUseEnvironmentPropertyEditors

      public boolean getUseEnvironmentPropertyEditors()
      Get whether to use environment property editors for string and file properties
      Returns:
      true to use environment property editors
    • setPropertyGroupingCategory

      public void setPropertyGroupingCategory(String category)
    • getPropertyGroupingCategory

      public String getPropertyGroupingCategory()
    • getAboutPanel

      public JPanel getAboutPanel()
      Return the panel containing global info and help for the object being edited. May return null if the edited object provides no global info or tip text.
      Returns:
      the about panel.
    • propertyChange

      public void propertyChange(PropertyChangeEvent evt)
      Updates the property sheet panel with a changed property and also passed the event along.
      Specified by:
      propertyChange in interface PropertyChangeListener
      Parameters:
      evt - a value of type 'PropertyChangeEvent'
    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener l)
      Adds a PropertyChangeListener.
      Overrides:
      addPropertyChangeListener in class Container
      Parameters:
      l - a value of type 'PropertyChangeListener'
    • removePropertyChangeListener

      public void removePropertyChangeListener(PropertyChangeListener l)
      Removes a PropertyChangeListener.
      Overrides:
      removePropertyChangeListener in class Component
      Parameters:
      l - a value of type 'PropertyChangeListener'
    • setTarget

      public void setTarget(Object targ)
      Sets a new target object for customisation.
      Parameters:
      targ - a value of type 'Object'
    • editableProperties

      public int editableProperties()
      Gets the number of editable properties for the current target.
      Returns:
      the number of editable properties.
    • hasCustomizer

      public boolean hasCustomizer()
      Returns true if the object being edited has a customizer
      Returns:
      true if the object being edited has a customizer
    • setEnvironment

      public void setEnvironment(Environment env)
      Set environment variables to pass on to any editor that can use them
      Specified by:
      setEnvironment in interface EnvironmentHandler
      Parameters:
      env - the variables to pass on to individual property editors
    • closingOK

      public void closingOK()
      Pass on an OK closing notification to the customizer (if one is in use)
    • closingCancel

      public void closingCancel()
      Pass on a CANCEL closing notificiation to the customizer (if one is in use).