Package weka.gui

Class PropertySheetPanel

    • Constructor Detail

      • 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 Detail

      • 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'
      • 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).