Class AbstractLogixNGTableAction<E extends NamedBean>

    • Constructor Detail

      • AbstractLogixNGTableAction

        public AbstractLogixNGTableAction​(java.lang.String s)
        Create a AbstractLogixNGTableAction instance.
        Parameters:
        s - the Action title, not the title of the resulting frame. Perhaps this should be changed?
    • Method Detail

      • enableAll

        protected abstract void enableAll​(boolean enable)
      • setEnabled

        protected abstract void setEnabled​(E bean,
                                           boolean enable)
      • isEnabled

        protected abstract boolean isEnabled​(E bean)
      • createBean

        protected abstract E createBean​(java.lang.String userName)
      • createBean

        protected abstract E createBean​(java.lang.String systemName,
                                        java.lang.String userName)
      • deleteBean

        protected abstract void deleteBean​(E bean)
      • getAddTitleKey

        protected abstract java.lang.String getAddTitleKey()
      • hasChildren

        protected abstract boolean hasChildren​(E t)
      • setMenuBar

        public void setMenuBar​(BeanTableFrame<E> f)
        Insert 2 table specific menus.

        Accounts for the Window and Help menus, which are already added to the menu bar as part of the creation of the JFrame, by adding the new menus 2 places earlier unless the table is part of the ListedTableFrame, which adds the Help menu later on.

        Overrides:
        setMenuBar in class AbstractTableAction<E extends NamedBean>
        Parameters:
        f - the JFrame of this table
      • addPressed

        protected void addPressed​(java.awt.event.ActionEvent e)
        Respond to the Add button in bean table Creates and/or initialize the Add bean pane.
        Specified by:
        addPressed in class AbstractTableAction<E extends NamedBean>
        Parameters:
        e - The event heard
      • makeAddFrame

        protected abstract javax.swing.JPanel makeAddFrame​(java.lang.String titleId,
                                                           java.lang.String startMessageId)
      • autoSystemName

        void autoSystemName()
        Enable/disable fields for data entry when user selects to have system name automatically generated.
      • cancelAddPressed

        void cancelAddPressed​(java.awt.event.ActionEvent e)
        Respond to the Cancel button in Add bean window.

        Note: Also get there if the user closes the Add bean window.

        Parameters:
        e - The event heard
      • copyPressed

        void copyPressed​(java.lang.String sName)
        Respond to the Copy bean button in Add bean window.

        Provides a pane to set new properties of the copy.

        Parameters:
        sName - system name of bean to be copied
      • checkLogixNGUserName

        boolean checkLogixNGUserName​(java.lang.String uName)
        Check and warn if a string is already in use as the user name of a LogixNG.
        Parameters:
        uName - the suggested name
        Returns:
        true if not in use
      • checkLogixNGSysName

        boolean checkLogixNGSysName()
        Check validity of various LogixNG system names.

        Fixes name if it doesn't start with the appropriate prefix or the $ for alpha suffixes

        Returns:
        false if the name fails the NameValidity check
      • checkFlags

        boolean checkFlags​(java.lang.String sName)
        Check if another bean editing session is currently open or no system name is provided.
        Parameters:
        sName - system name of bean to be copied
        Returns:
        true if a new session may be started
      • createPressed

        void createPressed​(java.awt.event.ActionEvent e)
        Respond to the Create bean button in Add bean window.
        Parameters:
        e - The event heard
      • editPressed

        void editPressed​(java.lang.String sName)
        Respond to the Edit button pressed in LogixNG table.
        Parameters:
        sName - system name of LogixNG to be edited
      • deletePressed

        void deletePressed​(java.lang.String sName)
        Respond to the Delete combo selection bean window delete request.
        Parameters:
        sName - system name of bean to be deleted
      • executePressed

        void executePressed​(java.lang.String sName)
        Respond to the Execute combo selection bean window execute request.
        Parameters:
        sName - system name of bean to be deleted
      • browserPressed

        void browserPressed​(java.lang.String sName)
        Respond to the Browse button pressed in bean table.
        Parameters:
        sName - The selected bean system name