Class SourceParamChoicesProvider.SimpleCompletion

  • All Implemented Interfaces:
    java.lang.Comparable<org.fife.ui.autocomplete.Completion>, JavaSourceCompletion, org.fife.ui.autocomplete.Completion
    Enclosing class:
    SourceParamChoicesProvider

    private static class SourceParamChoicesProvider.SimpleCompletion
    extends org.fife.ui.autocomplete.BasicCompletion
    implements JavaSourceCompletion
    A very simple, low-relevance parameter choice completion. This is never used as a general-purpose completion in Java code, as it cannot render itself.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static javax.swing.Icon ICON  
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleCompletion​(org.fife.ui.autocomplete.CompletionProvider provider, java.lang.String text)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.swing.Icon getIcon()  
      void rendererText​(java.awt.Graphics g, int x, int y, boolean selected)
      Used by JavaCellRenderer to render this completion choice.
      • Methods inherited from class org.fife.ui.autocomplete.BasicCompletion

        getReplacementText, getShortDescription, getSummary, setShortDescription, setSummary, toString
      • Methods inherited from class org.fife.ui.autocomplete.AbstractCompletion

        compareTo, getAlreadyEntered, getInputText, getProvider, getRelevance, getToolTipText, setIcon, setRelevance
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.fife.ui.autocomplete.Completion

        compareTo, getAlreadyEntered, getInputText, getProvider, getRelevance, getReplacementText, getSummary, getToolTipText
    • Field Detail

      • ICON

        private static final javax.swing.Icon ICON
    • Constructor Detail

      • SimpleCompletion

        SimpleCompletion​(org.fife.ui.autocomplete.CompletionProvider provider,
                         java.lang.String text)
    • Method Detail

      • getIcon

        public javax.swing.Icon getIcon()
        Specified by:
        getIcon in interface org.fife.ui.autocomplete.Completion
        Overrides:
        getIcon in class org.fife.ui.autocomplete.AbstractCompletion
      • rendererText

        public void rendererText​(java.awt.Graphics g,
                                 int x,
                                 int y,
                                 boolean selected)
        Description copied from interface: JavaSourceCompletion
        Used by JavaCellRenderer to render this completion choice.
        Specified by:
        rendererText in interface JavaSourceCompletion
        Parameters:
        g - The graphics context to render to.
        x - The x-offset at which to render.
        y - The y-offset at which to render.
        selected - Whether this completion is currently selected/active.