|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ViFactory
This provides Vi the items it needs to interface with swing UI environment.
Method Summary | |
---|---|
void |
commandEntryAssist(ViCmdEntry cmdEntry,
boolean enable)
|
Action |
createCharAction(String name)
|
ViCmdEntry |
createCmdEntry(int type)
A command entry object will be created if needed. |
Action |
createInsertModeKeyAction(String name,
char vkey,
String desc)
|
Action |
createKeyAction(String name,
char key)
|
Action |
createNormalModeKeyAction(String name,
int vkey,
String desc)
|
ViOutputStream |
createOutputStream(ViTextView tv,
Object type,
Object info,
int priority)
create an output stream for some kind of results. |
PropertyDescriptor |
createPropertyDescriptor(String optName,
String methodName,
Class clazz)
Create a property descriptor. |
void |
displayTags()
|
void |
finishTagPush(ViTextView tv)
|
Buffer |
getBuffer(JEditorPane editorPane)
Return a Buffer, create one if it doesn't already exist |
Set<Buffer> |
getBufferSet()
|
String |
getDisplayFilename(Object o)
For an environmental object, used for debug output |
ViTextView |
getExistingViTextView(Object editorPane)
|
ViFS |
getFS()
File manipulation handled through this object. |
Preferences |
getPreferences()
|
ViTextView |
getViTextView(JEditorPane editorPane)
Return a TextView, create one if it doesn't already exist |
Set<ViTextView> |
getViTextViewSet()
|
boolean |
isStandalone()
|
boolean |
isVisible(ViTextView tv)
|
Class |
loadClass(String name)
|
Window |
lookupWindow(JEditorPane editorPane)
The factory keeps track of which Window is active when there is a switch. |
void |
registerEditorPane(JEditorPane editorPane)
|
void |
shutdown(JEditorPane editorPane)
This editor pane is going away, forget about it. |
void |
startGlassKeyCatch(KeyListener kl)
|
void |
startModalKeyCatch(KeyListener kl)
|
void |
startTagPush(ViTextView tv,
String ident)
|
void |
stopGlassKeyCatch()
|
void |
stopModalKeyCatch()
|
void |
tagDialog(ColonCommands.ColonEvent e)
|
void |
tagStack(ViTextView.TAGOP op,
int count)
|
ActionListener |
xlateKeymapAction(ActionListener act)
The actions used for keymap translation may be munged by the environment so we need a way to get back the original action. |
Method Detail |
---|
Class loadClass(String name) throws ClassNotFoundException
ClassNotFoundException
ViTextView getViTextView(JEditorPane editorPane)
Buffer getBuffer(JEditorPane editorPane)
boolean isStandalone()
ViTextView getExistingViTextView(Object editorPane)
Set<ViTextView> getViTextViewSet()
boolean isVisible(ViTextView tv)
Set<Buffer> getBufferSet()
String getDisplayFilename(Object o)
void shutdown(JEditorPane editorPane)
void registerEditorPane(JEditorPane editorPane)
ViFS getFS()
ViOutputStream createOutputStream(ViTextView tv, Object type, Object info, int priority)
type
- Should be a constant from ViOutputStream,
e.g. ViOutputStream.SEARCH.info
- qualifier for the output stream, e.g. search pattern.priority
- 0 - 10 where 0 is lowest priority, 5 is normal,
0-2 is low, don't raise window.void startGlassKeyCatch(KeyListener kl)
void stopGlassKeyCatch()
void startModalKeyCatch(KeyListener kl)
void stopModalKeyCatch()
Window lookupWindow(JEditorPane editorPane)
Action createCharAction(String name)
Action createKeyAction(String name, char key)
Action createInsertModeKeyAction(String name, char vkey, String desc)
Action createNormalModeKeyAction(String name, int vkey, String desc)
ActionListener xlateKeymapAction(ActionListener act)
PropertyDescriptor createPropertyDescriptor(String optName, String methodName, Class clazz) throws IntrospectionException
optName
- methodName
- clazz
-
IntrospectionException
ViCmdEntry createCmdEntry(int type)
Preferences getPreferences()
void startTagPush(ViTextView tv, String ident)
void finishTagPush(ViTextView tv)
void tagStack(ViTextView.TAGOP op, int count)
void displayTags()
void tagDialog(ColonCommands.ColonEvent e)
void commandEntryAssist(ViCmdEntry cmdEntry, boolean enable)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |