|
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.editor.AbstractCodeEditorIntelliHints com.jidesoft.editor.AbstractListCodeEditorIntelliHints
public abstract class AbstractListCodeEditorIntelliHints
AbstractListCodeEditorIntelliHints
extends AbstractCodeEditorIntelliHints and further implement most of
the methods in interface IntelliHints
. In this class, it assumes the hints can be represented
as a JList, so it used JList in the hints popup.
Field Summary | |
---|---|
protected KeyStroke[] |
_keyStrokes
|
Fields inherited from interface com.jidesoft.hints.IntelliHints |
---|
CLIENT_PROPERTY_INTELLI_HINTS |
Constructor Summary | |
---|---|
AbstractListCodeEditorIntelliHints(CodeEditor codeEditor)
|
Method Summary | |
---|---|
JComponent |
createHintsComponent()
Creates the component which contains hints. |
protected JList |
createList()
Creates the list to display the hints. |
JComponent |
getDelegateComponent()
Gets the delegate component. |
KeyStroke[] |
getDelegateKeyStrokes()
Gets the delegate keystrokes. |
protected JList |
getList()
Gets the list. |
int |
getMinimumPopupWidth()
Gets the minimum popup width. |
Object |
getSelectedHint()
Gets the selected value. |
protected void |
setListData(Object[] objects)
Sets the list data. |
protected void |
setListData(Vector<?> objects)
Sets the list data. |
void |
setMinimumPopupWidth(int minimumWidth)
Sets the minimum popup width. |
Methods inherited from class com.jidesoft.editor.AbstractCodeEditorIntelliHints |
---|
acceptHint, addShowHintsKeyStroke, createPopup, getAllShowHintsKeyStrokes, getCaretRectangleForPopup, getCodeEditor, getContext, getDelimiters, getIntelliHints, getShowHintsKeyStroke, hideHintsPopup, install, isAutoPopup, isHintsPopupVisible, removeShowHintsKeyStroke, setAutoPopup, setDelimiters, setHintsEnabled, showHintsPopup, uninstall |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jidesoft.hints.IntelliHints |
---|
updateHints |
Field Detail |
---|
protected KeyStroke[] _keyStrokes
Constructor Detail |
---|
public AbstractListCodeEditorIntelliHints(CodeEditor codeEditor)
Method Detail |
---|
public JComponent createHintsComponent()
IntelliHints
IntelliHints.updateHints(Object)
will update the content.
protected JList createList()
return new JList() {
public int getVisibleRowCount() {
int size = getModel().getSize();
return size < super.getVisibleRowCount() ? size : super.getVisibleRowCount();
}
public Dimension getPreferredScrollableViewportSize() {
if (getModel().getSize() == 0) {
return new Dimension(0, 0);
}
else {
return super.getPreferredScrollableViewportSize();
}
}
};
protected JList getList()
protected void setListData(Object[] objects)
objects
- protected void setListData(Vector<?> objects)
objects
- public Object getSelectedHint()
IntelliHints
public JComponent getDelegateComponent()
AbstractCodeEditorIntelliHints
getDelegateComponent
in class AbstractCodeEditorIntelliHints
public KeyStroke[] getDelegateKeyStrokes()
getDelegateComponent()
.
getDelegateKeyStrokes
in class AbstractCodeEditorIntelliHints
getDelegateComponent()
when hint popup is
shown.public int getMinimumPopupWidth()
setMinimumPopupWidth(int)
public void setMinimumPopupWidth(int minimumWidth)
minimumWidth
- the minimum popup width
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |