|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.hints.AbstractIntelliHints com.jidesoft.hints.AbstractListIntelliHints com.jidesoft.hints.FileIntelliHints
public class FileIntelliHints
FileIntelliHints
is a concrete implementation of IntelliHints
.
It allows user to type in a file patch quickly by providing them the hints based on what
is existed on file system. You can use setFolderOnly(boolean)
to control if
the hints contain only the folders, or folders and files.
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 | |
---|---|
FileIntelliHints(JTextComponent comp)
|
Method Summary | |
---|---|
void |
acceptHint(Object selected)
After user has selected a item in the hints popup, this method will update JTextComponent accordingly to accept the hint. |
FilenameFilter |
getFilter()
Get FilenameFilter configured to this hints. |
boolean |
isFolderOnly()
If the hints contain the folder names only. |
boolean |
isShowFullPath()
If the hints contain the full path. |
void |
setFilter(FilenameFilter filter)
Set FilenameFilter to this hints. |
void |
setFolderOnly(boolean folderOnly)
Sets the property of folder only. |
void |
setShowFullPath(boolean showFullPath)
Sets the property of showing full path. |
boolean |
updateHints(Object value)
Update hints depending on the context. |
Methods inherited from class com.jidesoft.hints.AbstractListIntelliHints |
---|
createHintsComponent, createList, getDelegateComponent, getDelegateKeyStrokes, getList, getSelectedHint, setListData, setListData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileIntelliHints(JTextComponent comp)
Method Detail |
---|
public boolean isFolderOnly()
public void setFolderOnly(boolean folderOnly)
folderOnly
- only provide hints for the folders.public boolean isShowFullPath()
public void setShowFullPath(boolean showFullPath)
showFullPath
- whether show the full path.public boolean updateHints(Object value)
IntelliHints
value
- the current context
public void acceptHint(Object selected)
AbstractIntelliHints
FileIntelliHints
will append the
selected item at the end of the existing text in order to complete a full file path.
acceptHint
in interface IntelliHints
acceptHint
in class AbstractIntelliHints
selected
- the hint to be accepted.public FilenameFilter getFilter()
public void setFilter(FilenameFilter filter)
filter
- the FilenameFilter in use.getFilter()
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |