Class WekaPropertySheetPanelPage

    • 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 BaseButton m_ButtonLoad
        the load props button.
      • m_ButtonSave

        protected BaseButton m_ButtonSave
        the save props button.
      • m_FileChooser

        protected 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

      • finishInit

        protected void finishInit()
        finishes the initialization.
        Overrides:
        finishInit in class 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​(Properties value)
        Sets the properties to base the properties on.
        Specified by:
        setProperties in class AbstractWizardPage
        Parameters:
        value - the properties to use
      • getProperties

        public Properties getProperties()
        Returns the content of the page (ie parameters) as properties.
        Specified by:
        getProperties in class AbstractWizardPage
        Returns:
        the parameters as properties
      • loadProperties

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

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

        public void setButtonPanelVisible​(boolean value)
        Sets the visibility state of the buttons panel (load/save).
        Overrides:
        setButtonPanelVisible in class 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 AbstractWizardPage
        Returns:
        true if buttons displayed
      • main

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