Class AbstractTableActionWithDataContainerPanel

    • Constructor Detail

      • AbstractTableActionWithDataContainerPanel

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

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

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

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

      • getSuffix

        protected abstract String getSuffix()
        Returns the suffix of the required field.
        Returns:
        the required suffix, null if no restrictions
      • getDataContainerPanel

        protected DataContainerPanel getDataContainerPanel()
        Returns the underlying DataContainerPanel.
        Returns:
        the panel, null if not available
      • 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