Class WAbbrText

    • Constructor Detail

      • WAbbrText

        public WAbbrText()

        Creates an empty WAbbrText.

        An instance of WAbbrText created in this manner must have abbreviated display text and a toolTip (the full text represented by the abbreviation) set to be useful.

      • WAbbrText

        public WAbbrText​(String text)

        Creates a WAbbrText with the specified abbreviated display text.

        An instance of WAbbrText created in this manner must have a toolTip (the full text represented by the abbreviation) set to be useful.

        Parameters:
        text - The abbreviated text to display
      • WAbbrText

        public WAbbrText​(String text,
                         String description)
        Creates a WAbbrText with the specified abbreviated display text and toolTip full expansion text.
        Parameters:
        text - the abbreviated text to display
        description - the full text represented by the abbreviation
    • Method Detail

      • setTextWithCode

        public void setTextWithCode​(Object entry)
        Loads the abbreviated text component from the given code reference table entry using the entry's code as the visible (abbreviated) text and the entry's description as the abbreviation's expanded text toolTip.
        Parameters:
        entry - the CRT entry to use.
      • setTextWithDesc

        public void setTextWithDesc​(Object entry)
        Loads the abbreviated text component from the given code reference table entry using the entry's description as the visible (abbreviated) text and the entry's code as the toolTip (expansion). You probably do not want this: you probably want setTextWithCode(java.lang.Object).
        Parameters:
        entry - the CRT entry to use
      • toString

        public String toString()
        Get a String representation of the component. This would normally only be required for debugging purposes.
        Overrides:
        toString in class WText
        Returns:
        a String representation of this component