Interface CellObject

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int L_ERROR
      Error level.
      static int L_MESSAGE
      Message level.
      static int L_WARNING
      Warning level.
    • Method Detail

      • init

        NodeWrapperDrawPolicy init​(java.util.Properties settings,
                                   NodeWrapperDrawPolicy adapter)
        Creates a preferences adapter factory.
        Parameters:
        settings -
        adapter -
        Returns:
        A preferences adapter factory. If adapter!=null it should be returned. If this object has no changeable preferences, null should be returned.
      • init

        NodeWrapperDrawPolicy init​(java.util.Properties settings,
                                   java.lang.String prefix,
                                   NodeWrapperDrawPolicy adapter)
        Creates a preferences adapter factory.
        Parameters:
        settings -
        prefix - Prefix for properties keys
        adapter - The cell object should be appended to this adapter. If this is null a new adapter should be returned.
        Returns:
        A preferences adapter factory. If adapter!=null it should be returned. If this object has no changeable preferences, null should be returned.
      • propertiesChanged

        void propertiesChanged()
        Notifies this object that the draw policy may have changed. So it may have to recalculate its appearance.
      • getIconNames

        java.util.Collection<java.lang.String> getIconNames()
        Returns a list of String objects that denote the file name (without the extension) of the icons to be displayed by the tree cell renderer. A return value of null is valid to indicate that no icons shall be displayed.
        Returns:
        list of icon names or null if no icons shall be displayed.
      • emphasized

        boolean emphasized()
        Controls whether the tree cell renderer should display this item more noticeably than other nodes.
        Returns:
        true if this item shall be displayed emphasized, false otherwise
      • setWarningLevel

        int setWarningLevel​(int level)
        Sets the warning level for this node
        Parameters:
        level - the new warning level
        Returns:
        the old warning level
      • getWarningLevel

        int getWarningLevel()
        Returns the warning level for this node.
        Returns:
        the warning level for this node
      • toString

        java.lang.String toString()
        This enforces the toString method
        Overrides:
        toString in class java.lang.Object
        Returns:
        String representation of this CellObject