Class Proposal

java.lang.Object
org.yamcs.studio.autocomplete.proposals.Proposal
All Implemented Interfaces:
Comparable<Proposal>

public class Proposal extends Object implements Comparable<Proposal>
Defines a proposal as it will be displayed.
  • Constructor Details

    • Proposal

      public Proposal(String value, boolean isPartial)
  • Method Details

    • getInsertionPos

      public int getInsertionPos()
    • increment

      public void increment()
    • decrement

      public void decrement()
    • getOccurrence

      public int getOccurrence()
    • addStyle

      public void addStyle(ProposalStyle style)
    • addTooltipData

      public void addTooltipData(TooltipData td)
    • getValue

      public String getValue()
    • isPartial

      public boolean isPartial()
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • isFunction

      public boolean isFunction()
    • setFunction

      public void setFunction(boolean isFunction)
    • getStartWithContent

      public boolean getStartWithContent()
    • setStartWithContent

      public void setStartWithContent(boolean startWithContent)
    • getStyles

      public List<ProposalStyle> getStyles()
    • getTooltips

      public List<TooltipData> getTooltips()
    • setInsertionPos

      public void setInsertionPos(int insertionPos)
    • getOriginalValue

      public String getOriginalValue()
    • setOriginalValue

      public void setOriginalValue(String originalValue)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(Proposal arg0)
      Specified by:
      compareTo in interface Comparable<Proposal>
    • toString

      public String toString()
      Overrides:
      toString in class Object