Package weka.gui

Class PropertySheetPanel

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

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

    • PropertySheetPanel

      public PropertySheetPanel()
      Creates the property sheet panel.
  • Method Details

    • listCapabilities

      public static String listCapabilities(Capabilities c)
      returns a comma-separated list of all the capabilities.
      Parameters:
      c - the capabilities to get a string representation from
      Returns:
      the string describing the capabilities
    • addCapabilities

      public static String addCapabilities(String title, Capabilities c)
      generates a string from the capapbilities, suitable to add to the help text.
      Parameters:
      title - the title for the capabilities
      c - the capabilities
      Returns:
      a string describing the capabilities
    • 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.