Class AbstractTableActionWithDatabaseAccess

    • Constructor Detail

      • AbstractTableActionWithDatabaseAccess

        public AbstractTableActionWithDatabaseAccess()
        Defines an AbstractTableActionWithDatabaseAccess object with a default description string and default icon.
      • AbstractTableActionWithDatabaseAccess

        public AbstractTableActionWithDatabaseAccess​(String name)
        Defines an AbstractTableActionWithDatabaseAccess object with the specified description string and a default icon.
        Parameters:
        name - the description
      • AbstractTableActionWithDatabaseAccess

        public AbstractTableActionWithDatabaseAccess​(String name,
                                                     Icon icon)
        Defines an AbstractTableActionWithDatabaseAccess object with the specified description string and a the specified icon.
        Parameters:
        name - the description
        icon - the icon
      • AbstractTableActionWithDatabaseAccess

        public AbstractTableActionWithDatabaseAccess​(String name,
                                                     String icon)
        Defines an AbstractTableActionWithDatabaseAccess object with the specified description string and a the specified icon.
        Parameters:
        name - the description
        icon - the icon file (without path)
    • Method Detail

      • isApplicable

        public boolean isApplicable​(ReportFactory.Table table,
                                    int row,
                                    AbstractField field,
                                    String value)
        Checks whether the action is applicable and should be added to the popup menu.
        Specified by:
        isApplicable in class AbstractTableAction
        Parameters:
        table - the table the popup menu is for
        row - the currently selected row
        field - the field in the specified row
        value - the current value
        Returns:
        true if the action is applicable, i.e., should be included in the popup menu