java.lang.Object
de.grogra.pf.ui.swing.PanelSupport
de.grogra.pf.ui.swing.AutoCompletableTextEditorSupport
de.grogra.pf.ui.swing.TextEditorSupport
- All Implemented Interfaces:
XAListener,RegistryContext,AutoCompletable,Context,Panel,Synchronizer.Callback,TextEditor,Disposable,ModifiableMap.Producer,EventListener,ChangeListener
- Direct Known Subclasses:
RSyntaxTextAreaTextEditor
public class TextEditorSupport
extends AutoCompletableTextEditorSupport
implements ChangeListener, ModifiableMap.Producer
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface de.grogra.persistence.XAListener
XAListener.WeakDelegate -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Actionprotected Actionprotected Actionprotected static final Stringprotected Objectprotected Objectprotected Objectprotected static final Stringprotected static final Stringprotected static final String[]protected Actionprotected Actionprotected Actionprotected JTabbedPaneprotected JToolBarprotected static final Stringprotected ActionFields inherited from class de.grogra.pf.ui.swing.PanelSupport
mapProducer, menu, MIN_UNUSED_ACTION, sync, wsFields inherited from interface de.grogra.pf.ui.Panel
DEC_WAIT_CURSOR, DEFAULT_CURSOR, INC_WAIT_CURSOR, INHERIT_CURSOR, PANEL_ID, WAIT_CURSORFields inherited from interface de.grogra.pf.ui.TextEditor
TEXT_EDITOR_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMappings(ModifiableMap out) voidCall the auto completion Likely useless with the autocmpletor implementationvoidcheckClose(Command ok) voidcheckClose(Runnable ok) voidcloseDocument(String systemId) protected voidprotected voidconfigureEditor(JTextArea editor) protected Actionprotected Actionprotected Actionprotected FileDocumentprotected JTextAreacreateEditor(FileDocument doc) protected Actionprotected Actionprotected Actionprotected JComponentcreateScrollPanel(JTextArea editor) protected Actionprotected voidgetAlreadyEnteredText(CompletionProvider provider) Get the String to be autocompleted Likely useless with the autocmpletor implementationString[]voidAdd an autocompetor to the panelvoidopenDocument(String doc, String ref) protected voidopenDocumentSync(String systemId, String ref) protected voidsetupTransferHandler(Map params) voidvoidremove an autocompetorprotected voidupdate(JTextArea editor, UndoManager m, FileDocument doc) Methods inherited from class de.grogra.pf.ui.swing.AutoCompletableTextEditorSupport
transactionAppliedMethods inherited from class de.grogra.pf.ui.swing.PanelSupport
dispose, executeCheckClose, getComponent, getContent, getDecorator, getMenu, getPanel, getPanelId, getRegistry, getUIPropertyMap, getWindow, getWorkbench, hide, initDecorator, initialize, resolve, setContent, setCursor, setMenu, show, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.grogra.pf.ui.Context
getComponent, getPanel, getWindow, getWorkbenchMethods inherited from interface de.grogra.util.Disposable
disposeMethods inherited from interface de.grogra.pf.ui.Panel
getContent, getDecorator, getMenu, getPanelId, getUIPropertyMap, initDecorator, initialize, resolve, setContent, setCursor, setMenu, show
-
Field Details
-
UNDO_MANAGER
- See Also:
-
HANDLER
- See Also:
-
DOCUMENT
- See Also:
-
EDITOR
- See Also:
-
KEYS
-
undoAction
-
redoAction
-
saveAction
-
cutAction
-
copyAction
-
pasteAction
-
closeAction
-
doUndo
-
doRedo
-
doSave
-
tab
-
tb
-
-
Constructor Details
-
TextEditorSupport
public TextEditorSupport()
-
-
Method Details
-
createSaveAction
-
createUndoAction
-
createRedoAction
-
createCutAction
-
createCopyAction
-
createPasteAction
-
createCloseAction
-
configure
- Overrides:
configurein classAutoCompletableTextEditorSupport
-
setupTransferHandler
-
openDocumentSync
-
createScrollPanel
-
createDoc
-
createEditor
-
configureEditor
-
run
- Specified by:
runin interfaceSynchronizer.Callback- Overrides:
runin classPanelSupport
-
openDocument
- Specified by:
openDocumentin interfaceTextEditor
-
update
-
stateChanged
- Specified by:
stateChangedin interfaceChangeListener
-
disposeImpl
protected void disposeImpl()- Overrides:
disposeImplin classAutoCompletableTextEditorSupport
-
checkClose
- Overrides:
checkClosein classPanelSupport
-
checkClose
- Specified by:
checkClosein interfacePanel- Overrides:
checkClosein classPanelSupport
-
getDocuments
- Specified by:
getDocumentsin interfaceTextEditor
-
addMappings
- Specified by:
addMappingsin interfaceModifiableMap.Producer
-
closeDocument
- Specified by:
closeDocumentin interfaceTextEditor
-
autocomplete
public void autocomplete()Description copied from interface:AutoCompletableCall the auto completion Likely useless with the autocmpletor implementation- Specified by:
autocompletein interfaceAutoCompletable
-
getAlreadyEnteredText
Description copied from interface:AutoCompletableGet the String to be autocompleted Likely useless with the autocmpletor implementation- Specified by:
getAlreadyEnteredTextin interfaceAutoCompletable
-
installAutoCompletor
Description copied from interface:AutoCompletableAdd an autocompetor to the panel- Specified by:
installAutoCompletorin interfaceAutoCompletable
-
uninstallAutoCompletor
public void uninstallAutoCompletor()Description copied from interface:AutoCompletableremove an autocompetor- Specified by:
uninstallAutoCompletorin interfaceAutoCompletable
-