Class UnitCommentNodeWrapper

    • Constructor Detail

      • UnitCommentNodeWrapper

        public UnitCommentNodeWrapper​(Unit u,
                                      java.lang.String comment)
        Creates a new BorderNodeWrapper object.
    • Method Detail

      • toString

        public java.lang.String toString()
        Returns the comment.
        Specified by:
        toString in interface CellObject
        Overrides:
        toString in class java.lang.Object
        Returns:
        String representation of this CellObject
      • getIconNames

        public java.util.List<java.lang.String> getIconNames()
        Description copied from interface: CellObject
        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.
        Specified by:
        getIconNames in interface CellObject
        Returns:
        list of icon names or null if no icons shall be displayed.
        See Also:
        CellObject.getIconNames()
      • init

        public NodeWrapperDrawPolicy init​(java.util.Properties settings,
                                          NodeWrapperDrawPolicy adapter)
        Description copied from interface: CellObject
        Creates a preferences adapter factory.
        Specified by:
        init in interface CellObject
        Returns:
        A preferences adapter factory. If adapter!=null it should be returned. If this object has no changeable preferences, null should be returned.
      • getComment

        public java.lang.String getComment()
        Returns:
        the comment
      • setComment

        public void setComment​(java.lang.String comment)
        Parameters:
        comment - the comment to set
      • getUnit

        public Unit getUnit()
        Returns:
        the u
      • setUnit

        public void setUnit​(Unit u)
        Parameters:
        u - the u to set