Class RoleValidatedField.RolesIntelliHints

  • All Implemented Interfaces:
    com.jidesoft.hints.IntelliHints
    Enclosing class:
    RoleValidatedField

    public static class RoleValidatedField.RolesIntelliHints
    extends com.jidesoft.hints.ListDataIntelliHints<java.lang.String>
    • Field Summary

      • Fields inherited from class com.jidesoft.hints.AbstractListIntelliHints

        _keyStrokes
      • Fields inherited from interface com.jidesoft.hints.IntelliHints

        CLIENT_PROPERTY_INTELLI_HINTS
    • Constructor Summary

      Constructors 
      Constructor Description
      RolesIntelliHints​(javax.swing.text.JTextComponent comp, java.lang.String[] roleArray)  
      RolesIntelliHints​(javax.swing.text.JTextComponent comp, java.util.List<java.lang.String> roleList)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void acceptHint​(java.lang.Object selected)  
      protected boolean compare​(java.lang.Object context, java.lang.String o)  
      java.lang.String getStringRelativeToCaret​(java.lang.String contextString)
      finds the string relative to the caret position and comma, so the hint will be for the correct string
      java.lang.String replaceStringRelativeToCaret​(java.lang.String replacement, java.lang.String source)
      this method replaces the string in the source text relative to the to where the caret is and where the commas seperating roles are
      • Methods inherited from class com.jidesoft.hints.ListDataIntelliHints

        getCompletionList, isCaseSensitive, setCaseSensitive, setCompletionList, setCompletionList, updateHints
      • Methods inherited from class com.jidesoft.hints.AbstractListIntelliHints

        createHintsComponent, createList, getDelegateComponent, getDelegateKeyStrokes, getList, getSelectedHint, setListData, setListData
      • Methods inherited from class com.jidesoft.hints.AbstractIntelliHints

        addShowHintsKeyStroke, createPopup, getAllShowHintsKeyStrokes, getCaretPositionForPopup, getCaretRectangleForPopup, getContext, getIntelliHints, getShowHintsDelay, getShowHintsKeyStroke, getTextComponent, hideHintsPopup, isAutoPopup, isFollowCaret, isHintsPopupVisible, isMultilineTextComponent, removeShowHintsKeyStroke, setAutoPopup, setFollowCaret, setHintsEnabled, setShowHintsDelay, showHints, showHintsPopup, updateHints
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RolesIntelliHints

        public RolesIntelliHints​(javax.swing.text.JTextComponent comp,
                                 java.lang.String[] roleArray)
      • RolesIntelliHints

        public RolesIntelliHints​(javax.swing.text.JTextComponent comp,
                                 java.util.List<java.lang.String> roleList)
    • Method Detail

      • compare

        protected boolean compare​(java.lang.Object context,
                                  java.lang.String o)
        Overrides:
        compare in class com.jidesoft.hints.ListDataIntelliHints<java.lang.String>
      • getStringRelativeToCaret

        public java.lang.String getStringRelativeToCaret​(java.lang.String contextString)
        finds the string relative to the caret position and comma, so the hint will be for the correct string
      • replaceStringRelativeToCaret

        public java.lang.String replaceStringRelativeToCaret​(java.lang.String replacement,
                                                             java.lang.String source)
        this method replaces the string in the source text relative to the to where the caret is and where the commas seperating roles are
      • acceptHint

        public void acceptHint​(java.lang.Object selected)
        Specified by:
        acceptHint in interface com.jidesoft.hints.IntelliHints
        Overrides:
        acceptHint in class com.jidesoft.hints.AbstractIntelliHints