Class SearchResult


  • public final class SearchResult
    extends java.lang.Object
    One entry in the list the chatbox item search shows under the prompt, as used by the Grand Exchange and by "choose an item" dialogues.

    The game draws every entry as three widgets in a row: the button that selects it, the item name and the item icon. Only the button carries the Select action.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      WidgetRef getButton()
      The widget that selects this entry.
      int getItemId()  
      java.lang.String getName()
      The name as listed, without colour tags.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getItemId

        public int getItemId()
      • getName

        public java.lang.String getName()
        The name as listed, without colour tags.
      • getButton

        public WidgetRef getButton()
        The widget that selects this entry.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object