Class WekaPropertySheetPanelPage

  • All Implemented Interfaces:
    adams.core.logging.LoggingSupporter, ImageObserver, MenuContainer, Serializable, Accessible

    public class WekaPropertySheetPanelPage
    extends adams.gui.wizard.AbstractWizardPage
    Wizard page that use a PropertySheetPanel for displaying the properties of an object.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • PROPERTY_CMDLINE

        public static final String PROPERTY_CMDLINE
        the identifier for the commandline of the object.
        See Also:
        Constant Field Values
      • m_Target

        protected transient Object m_Target
        the current target.
      • m_PanelButtons

        protected JPanel m_PanelButtons
        the panel for the buttons.
      • m_ButtonLoad

        protected adams.gui.core.BaseButton m_ButtonLoad
        the load props button.
      • m_ButtonSave

        protected adams.gui.core.BaseButton m_ButtonSave
        the save props button.
      • m_FileChooser

        protected adams.gui.chooser.BaseFileChooser m_FileChooser
        the filechooser for loading/saving properties.
    • Constructor Detail

      • WekaPropertySheetPanelPage

        public WekaPropertySheetPanelPage()
        Default constructor.
      • WekaPropertySheetPanelPage

        public WekaPropertySheetPanelPage​(String pageName)
        Initializes the page with the given page name.
        Parameters:
        pageName - the page name to use
    • Method Detail

      • initGUI

        protected void initGUI()
        Initializes the widets.
        Overrides:
        initGUI in class adams.gui.wizard.AbstractWizardPage
      • finishInit

        protected void finishInit()
        finishes the initialization.
        Overrides:
        finishInit in class adams.gui.core.BasePanel
      • getParameterPanel

        public weka.gui.PropertySheetPanel getParameterPanel()
        Returns the underlying property sheet panel.
        Returns:
        the property sheet panel
      • setTarget

        public void setTarget​(Object value)
        Sets the object to display the properties for.
        Parameters:
        value - the object
      • getTarget

        public Object getTarget()
        Returns the current object.
        Returns:
        the object
      • setProperties

        public void setProperties​(adams.core.Properties value)
        Sets the properties to base the properties on.
        Specified by:
        setProperties in class adams.gui.wizard.AbstractWizardPage
        Parameters:
        value - the properties to use
      • getProperties

        public adams.core.Properties getProperties()
        Returns the content of the page (ie parameters) as properties.
        Specified by:
        getProperties in class adams.gui.wizard.AbstractWizardPage
        Returns:
        the parameters as properties
      • getFileChooser

        protected adams.gui.chooser.BaseFileChooser getFileChooser()
        Returns the file chooser to use for loading/saving of props files.
        Overrides:
        getFileChooser in class adams.gui.wizard.AbstractWizardPage
        Returns:
        the file chooser
      • loadProperties

        protected void loadProperties()
        Loads properties from a file, prompts the user to select props file.
        Overrides:
        loadProperties in class adams.gui.wizard.AbstractWizardPage
      • saveProperties

        protected void saveProperties()
        Saves properties to a file, prompts the user to select props file.
        Overrides:
        saveProperties in class adams.gui.wizard.AbstractWizardPage
      • setButtonPanelVisible

        public void setButtonPanelVisible​(boolean value)
        Sets the visibility state of the buttons panel (load/save).
        Overrides:
        setButtonPanelVisible in class adams.gui.wizard.AbstractWizardPage
        Parameters:
        value - true if to show buttons
      • isButtonPanelVisible

        public boolean isButtonPanelVisible()
        Returns the visibility state of the buttons panel (load/save).
        Overrides:
        isButtonPanelVisible in class adams.gui.wizard.AbstractWizardPage
        Returns:
        true if buttons displayed
      • main

        public static void main​(String[] args)
        For testing only.
        Parameters:
        args - ignored