Class InterfaceFilter

    • Field Detail

      • publicVariables

        private java.util.Set<java.lang.String> publicVariables
    • Constructor Detail

      • InterfaceFilter

        InterfaceFilter​(ProjectInterface pInterface)
        Sole constructor for this class.
        Parameters:
        pInterface - A project interface defined in the currently displayed project, or null to deactivate this filter.
    • Method Detail

      • checkVariable

        protected boolean checkVariable​(GUIVariable variable)
        Description copied from class: AbstractConfigurationFilter
        Determines whether a given variable should be shown inside the editor or not. Parents of variables which shall be shown should not be filtered. The AbstractConfigurationFilter ensures that.
        This method must also ensure that nested elements of a shown variable are also displayed. Therefore, this method should also be written in a recursive manner to check nested elements of displayed variables. This should be done in the following way:
        if(checkVariable(variable)) {
          for(GUIVariable nestedVariable : variable.getNestedVars()) {
            checkVariable(nestedVariable);
          }
        }
        Specified by:
        checkVariable in class AbstractConfigurationFilter
        Parameters:
        variable - The variable which should be tested whether it should be displayed inside the editor
        Returns:
        true if the variable should be displayed, false otherwise.