Class SkillNodeWrapper

    • Field Detail

      • text

        protected java.lang.String text
      • icon

        protected java.util.List<java.lang.String> icon
      • SHOW_NEXTLEVEL

        public static final int SHOW_NEXTLEVEL
        The index of the show next level property
        See Also:
        Constant Field Values
      • SHOW_NEXTLEVELPOINTS

        public static final int SHOW_NEXTLEVELPOINTS
        The index of the show points to next level property
        See Also:
        Constant Field Values
      • SHOW_NEXTLEVELTURNS

        public static final int SHOW_NEXTLEVELTURNS
        The index of the show change turns until next level property
        See Also:
        Constant Field Values
      • SHOW_CHANGES

        public static final int SHOW_CHANGES
        The index of the show change property
        See Also:
        Constant Field Values
      • SHOW_CHANGE_STYLED

        public static final int SHOW_CHANGE_STYLED
        The index of the show change style property
        See Also:
        Constant Field Values
      • SHOW_CHANGE_TEXT

        public static final int SHOW_CHANGE_TEXT
        The index of the show change text property
        See Also:
        Constant Field Values
    • Constructor Detail

      • SkillNodeWrapper

        public SkillNodeWrapper​(Unit u,
                                Skill s,
                                Skill ms)
        Creates a new SkillNodeWrapper object.
        Parameters:
        u - the unit with the specified skills.
        s - the base skill. If s is null, it is assumed that the unit acquires that skill only through a person transfer. s and ms may not both be null.
        ms - the modified skill. If ms is null, it is assumed that the modification of the skill cannot be determined. s and ms may not both be null.
    • Method Detail

      • toString

        public java.lang.String toString()
        Return "Skillname Level|- (+|-change) [points -> nextlevelpoints {turns to learn }] ..."
        Specified by:
        toString in interface CellObject
        Overrides:
        toString in class java.lang.Object
        Returns:
        String representation of this CellObject
      • showNextLevelPoints

        public void showNextLevelPoints​(boolean bool)
        Controls whether this wrapper shows the skill points required before the next skill level can be reached.
      • isShowingNextLevelPoints

        public boolean isShowingNextLevelPoints()
        Returns whether this wrapper shows the skill points required before the next skill level can be reached.
      • showNextLevelLearnTurns

        public void showNextLevelLearnTurns​(boolean bool)
        Controls whether this wrapper shows the number of turns to learn before the next skill level can be reached.
      • isShowingNextLevelLearnTurns

        public boolean isShowingNextLevelLearnTurns()
        Returns whether this wrapper shows the number of turns to learn before the next skill level can be reached.
      • isShowingNextLevel

        public boolean isShowingNextLevel()
        Returns:
        if this wrapper shows the next level
      • isShowingChanges

        public boolean isShowingChanges()
        Returns:
        if this wrapper shows skill level changes
      • isShowingChangesStyled

        public boolean isShowingChangesStyled()
        Returns true if the appropriate style is applied to changed skills.
      • isShowingChangesText

        public boolean isShowingChangesText()
        Returns true if skill change is shown as text.
      • 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()