Class ListClassUsage

    • Field Detail

      • m_Actual

        protected transient Class m_Actual
        the actual class to look for.
      • m_AllowDerivedClasses

        protected boolean m_AllowDerivedClasses
        whether to allow derived classes.
    • Constructor Detail

      • ListClassUsage

        public ListClassUsage()
    • Method Detail

      • setFind

        public void setFind​(BaseClassname value)
        Sets the class to look for.
        Parameters:
        value - the class
      • getFind

        public BaseClassname getFind()
        Returns the class to look for.
        Returns:
        the class
      • findTipText

        public String findTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setAllowDerivedClasses

        public void setAllowDerivedClasses​(boolean value)
        Sets whether derived classes can be listed as well.
        Parameters:
        value - true if allowed
      • getAllowDerivedClasses

        public boolean getAllowDerivedClasses()
        Returns whether derived classes can be listed as well.
        Returns:
        true if allowed
      • allowDerivedClassesTipText

        public String allowDerivedClassesTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • isValid

        protected boolean isValid​(AbstractOption option,
                                  Object obj,
                                  OptionTraversalPath path)
        Checks whether the object is valid and should be added to the list.
        Specified by:
        isValid in class AbstractListingProcessor
        Parameters:
        option - the current option
        obj - the object to check
        path - the traversal path of properties
        Returns:
        true if valid
      • getHeader

        protected String getHeader()
        Returns the header to use in the dialog, i.e., the one-liner that explains the output.
        Specified by:
        getHeader in class AbstractListingProcessor
        Returns:
        the header, null if no header available
      • getTitle

        public String getTitle()
        Returns the title for the dialog.
        Returns:
        the title