Skip navigation links
com.essbase.eas.ui.editor.editpane
Class TextComponentFrame
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.essbase.eas.ui.editor.editpane.TextComponentFrame
- All Implemented Interfaces:
- TextEditor, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible
-
public class TextComponentFrame
- extends javax.swing.JPanel
- implements TextEditor
Title: Editor using the JEditPane Description: Copyright: Copyright (c) 2003 Company: Hyperion Solutions, Inc.
- Version:
- 1.0
- Author:
- Sree Menon
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Method Summary |
protected void |
addCaretListener()
|
void |
addCaretListener(javax.swing.event.CaretListener listener)
|
void |
addDocumentListener(javax.swing.event.DocumentListener listener)
|
protected void |
addKeyAdpater()
|
protected void |
addMouseAdapter()
|
protected void |
addSettingsListener()
|
protected void |
addUndoListener()
|
void |
append(java.lang.Object object, boolean undoable)
|
void |
beginCompoundEdit(boolean start)
|
boolean |
canClear()
|
boolean |
canCopy()
|
boolean |
canCut()
|
boolean |
canFind()
|
boolean |
canPaste()
|
boolean |
canRedo()
|
boolean |
canReplace()
|
boolean |
canSelectAll()
|
boolean |
canSupportAutoComplete()
|
boolean |
canUndo()
|
void |
clean()
|
void |
clear()
|
void |
copy()
|
static TextEditor |
createEditor(java.lang.Class contentType, EditorTokenMarker marker)
|
void |
cut()
|
void |
discard()
|
void |
dispose()
|
void |
doCompleteWord(java.awt.event.KeyEvent e)
|
void |
endCompoundEdit(boolean start)
|
void |
endInsert()
|
void |
ensureCapacity(int buffer_size, int lines)
|
java.lang.String |
filterInvalidChars(java.lang.String s, char rc)
|
void |
find()
|
int |
getCaretLine()
|
int |
getCaretPosition()
|
java.awt.Point |
getCaretXY()
|
char |
getCharAt(int pos)
|
javax.swing.JPopupMenu |
getContextMenu()
|
javax.swing.text.Document |
getDocument()
|
java.awt.Component |
getEditingComponent()
|
CMenu |
getEditMenu(java.lang.Object owner)
|
java.awt.Font |
getEditorFont()
|
java.awt.event.KeyListener |
getInputHandler()
|
int |
getLength()
|
int |
getLineCount()
|
int |
getLineEndOffset(int line)
|
int |
getLineOfOffset(int offset)
|
java.lang.String |
getLineText(int line)
|
java.lang.String |
getSelectedText()
|
int |
getSelectionEnd()
|
int |
getSelectionStart()
|
int |
getTabSize()
|
java.lang.String |
getText()
|
java.lang.String |
getText(int start, int len)
|
void |
insertString(int offset, java.lang.String text)
|
boolean |
isDirty()
|
boolean |
isEditable()
|
void |
paste()
|
void |
processKeyEvent(java.awt.event.KeyEvent evt)
|
void |
read(java.io.Reader reader)
|
void |
redo()
|
protected void |
registerKeyMaps()
|
void |
remove(int offset, int len)
|
void |
removeCaretListener(javax.swing.event.CaretListener listener)
|
void |
removeDocumentListener(javax.swing.event.DocumentListener listener)
|
void |
replace()
|
void |
requestFocus()
|
void |
scrollTo(int line, int offset)
|
void |
select(int startpos, int endpos)
|
void |
selectAll()
|
void |
setAutoCompleteContext(java.lang.Object context)
|
void |
setBlockCaretEnabled(boolean enabled)
|
void |
setCaretBlinkEnabled(boolean enabled)
|
void |
setCaretPosition(int pos)
|
void |
setCaretVisibleAlways(boolean visible)
|
void |
setContextMenu(javax.swing.JPopupMenu menu)
|
void |
setDocument(javax.swing.text.Document doc)
|
void |
setEditable(boolean editable)
|
void |
setFont(java.awt.Font font)
|
void |
setKeyEventInterceptor(java.awt.event.KeyListener listener)
|
void |
setLineWrap(boolean wrap)
|
void |
setModified(boolean modified)
|
void |
setSelectedText(java.lang.String text)
|
void |
setSelectionEnd(int end)
|
void |
setSelectionStart(int start)
|
void |
setStatus()
|
void |
setTabSize(int tabSize)
|
void |
setText(java.lang.Object object)
|
void |
setText(java.lang.Object object, boolean undoable)
|
void |
setText(java.lang.Object object, int maxSplitOffset)
|
void |
settingsChanged()
|
void |
setTokenMarker(EditorTokenMarker marker)
|
void |
setWordWrap(boolean wrap)
|
void |
startInsert()
|
void |
undo()
|
void |
waitingCursor(boolean wait)
|
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TextComponentFrame
public TextComponentFrame()
TextComponentFrame
public TextComponentFrame(EditorTokenMarker marker)
addUndoListener
protected void addUndoListener()
addCaretListener
protected void addCaretListener()
addSettingsListener
protected void addSettingsListener()
addKeyAdpater
protected void addKeyAdpater()
addMouseAdapter
protected void addMouseAdapter()
registerKeyMaps
protected void registerKeyMaps()
getEditingComponent
public java.awt.Component getEditingComponent()
-
- Specified by:
getEditingComponent
in interface TextEditor
getEditMenu
public CMenu getEditMenu(java.lang.Object owner)
-
- Specified by:
getEditMenu
in interface TextEditor
getEditorFont
public java.awt.Font getEditorFont()
-
- Specified by:
getEditorFont
in interface TextEditor
setContextMenu
public void setContextMenu(javax.swing.JPopupMenu menu)
-
- Specified by:
setContextMenu
in interface TextEditor
getContextMenu
public javax.swing.JPopupMenu getContextMenu()
-
- Specified by:
getContextMenu
in interface TextEditor
waitingCursor
public void waitingCursor(boolean wait)
-
- Specified by:
waitingCursor
in interface TextEditor
scrollTo
public void scrollTo(int line,
int offset)
-
- Specified by:
scrollTo
in interface TextEditor
requestFocus
public void requestFocus()
-
- Specified by:
requestFocus
in interface TextEditor
- Overrides:
requestFocus
in class javax.swing.JComponent
setCaretPosition
public void setCaretPosition(int pos)
-
- Specified by:
setCaretPosition
in interface TextEditor
getCaretPosition
public int getCaretPosition()
-
- Specified by:
getCaretPosition
in interface TextEditor
setBlockCaretEnabled
public void setBlockCaretEnabled(boolean enabled)
-
- Specified by:
setBlockCaretEnabled
in interface TextEditor
setCaretBlinkEnabled
public void setCaretBlinkEnabled(boolean enabled)
-
- Specified by:
setCaretBlinkEnabled
in interface TextEditor
setEditable
public void setEditable(boolean editable)
-
- Specified by:
setEditable
in interface TextEditor
setText
public void setText(java.lang.Object object)
-
- Specified by:
setText
in interface TextEditor
setText
public void setText(java.lang.Object object,
int maxSplitOffset)
setText
public void setText(java.lang.Object object,
boolean undoable)
-
- Specified by:
setText
in interface TextEditor
append
public void append(java.lang.Object object,
boolean undoable)
-
- Specified by:
append
in interface TextEditor
select
public void select(int startpos,
int endpos)
-
- Specified by:
select
in interface TextEditor
setSelectedText
public void setSelectedText(java.lang.String text)
-
- Specified by:
setSelectedText
in interface TextEditor
setSelectionEnd
public void setSelectionEnd(int end)
-
- Specified by:
setSelectionEnd
in interface TextEditor
setSelectionStart
public void setSelectionStart(int start)
-
- Specified by:
setSelectionStart
in interface TextEditor
getSelectionStart
public int getSelectionStart()
-
- Specified by:
getSelectionStart
in interface TextEditor
getSelectionEnd
public int getSelectionEnd()
-
- Specified by:
getSelectionEnd
in interface TextEditor
filterInvalidChars
public java.lang.String filterInvalidChars(java.lang.String s,
char rc)
-
- Specified by:
filterInvalidChars
in interface TextEditor
getSelectedText
public java.lang.String getSelectedText()
-
- Specified by:
getSelectedText
in interface TextEditor
getCharAt
public char getCharAt(int pos)
-
- Specified by:
getCharAt
in interface TextEditor
discard
public void discard()
-
- Specified by:
discard
in interface TextEditor
setStatus
public void setStatus()
-
- Specified by:
setStatus
in interface TextEditor
getText
public java.lang.String getText()
-
- Specified by:
getText
in interface TextEditor
getLength
public int getLength()
-
- Specified by:
getLength
in interface TextEditor
clean
public void clean()
-
- Specified by:
clean
in interface TextEditor
getLineCount
public int getLineCount()
-
- Specified by:
getLineCount
in interface TextEditor
setModified
public void setModified(boolean modified)
-
- Specified by:
setModified
in interface TextEditor
isDirty
public boolean isDirty()
-
- Specified by:
isDirty
in interface TextEditor
canSupportAutoComplete
public boolean canSupportAutoComplete()
-
- Specified by:
canSupportAutoComplete
in interface TextEditor
setAutoCompleteContext
public void setAutoCompleteContext(java.lang.Object context)
-
- Specified by:
setAutoCompleteContext
in interface TextEditor
ensureCapacity
public void ensureCapacity(int buffer_size,
int lines)
-
- Specified by:
ensureCapacity
in interface TextEditor
startInsert
public void startInsert()
-
- Specified by:
startInsert
in interface TextEditor
endInsert
public void endInsert()
-
- Specified by:
endInsert
in interface TextEditor
find
public void find()
-
- Specified by:
find
in interface TextEditor
replace
public void replace()
-
- Specified by:
replace
in interface TextEditor
undo
public void undo()
-
- Specified by:
undo
in interface TextEditor
redo
public void redo()
-
- Specified by:
redo
in interface TextEditor
cut
public void cut()
-
- Specified by:
cut
in interface TextEditor
copy
public void copy()
-
- Specified by:
copy
in interface TextEditor
paste
public void paste()
-
- Specified by:
paste
in interface TextEditor
selectAll
public void selectAll()
-
- Specified by:
selectAll
in interface TextEditor
clear
public void clear()
-
- Specified by:
clear
in interface TextEditor
canUndo
public boolean canUndo()
-
- Specified by:
canUndo
in interface TextEditor
canRedo
public boolean canRedo()
-
- Specified by:
canRedo
in interface TextEditor
canCut
public boolean canCut()
-
- Specified by:
canCut
in interface TextEditor
canCopy
public boolean canCopy()
-
- Specified by:
canCopy
in interface TextEditor
canPaste
public boolean canPaste()
-
- Specified by:
canPaste
in interface TextEditor
canClear
public boolean canClear()
-
- Specified by:
canClear
in interface TextEditor
canSelectAll
public boolean canSelectAll()
-
- Specified by:
canSelectAll
in interface TextEditor
canFind
public boolean canFind()
-
- Specified by:
canFind
in interface TextEditor
canReplace
public boolean canReplace()
-
- Specified by:
canReplace
in interface TextEditor
addDocumentListener
public void addDocumentListener(javax.swing.event.DocumentListener listener)
-
- Specified by:
addDocumentListener
in interface TextEditor
removeDocumentListener
public void removeDocumentListener(javax.swing.event.DocumentListener listener)
-
- Specified by:
removeDocumentListener
in interface TextEditor
doCompleteWord
public void doCompleteWord(java.awt.event.KeyEvent e)
-
- Specified by:
doCompleteWord
in interface TextEditor
addCaretListener
public void addCaretListener(javax.swing.event.CaretListener listener)
-
- Specified by:
addCaretListener
in interface TextEditor
removeCaretListener
public void removeCaretListener(javax.swing.event.CaretListener listener)
-
- Specified by:
removeCaretListener
in interface TextEditor
setCaretVisibleAlways
public void setCaretVisibleAlways(boolean visible)
-
- Specified by:
setCaretVisibleAlways
in interface TextEditor
isEditable
public boolean isEditable()
-
- Specified by:
isEditable
in interface TextEditor
getText
public java.lang.String getText(int start,
int len)
-
- Specified by:
getText
in interface TextEditor
beginCompoundEdit
public void beginCompoundEdit(boolean start)
-
- Specified by:
beginCompoundEdit
in interface TextEditor
endCompoundEdit
public void endCompoundEdit(boolean start)
-
- Specified by:
endCompoundEdit
in interface TextEditor
getLineOfOffset
public int getLineOfOffset(int offset)
-
- Specified by:
getLineOfOffset
in interface TextEditor
getLineEndOffset
public int getLineEndOffset(int line)
-
- Specified by:
getLineEndOffset
in interface TextEditor
getLineText
public java.lang.String getLineText(int line)
-
- Specified by:
getLineText
in interface TextEditor
remove
public void remove(int offset,
int len)
-
- Specified by:
remove
in interface TextEditor
insertString
public void insertString(int offset,
java.lang.String text)
-
- Specified by:
insertString
in interface TextEditor
getCaretLine
public int getCaretLine()
-
- Specified by:
getCaretLine
in interface TextEditor
getCaretXY
public java.awt.Point getCaretXY()
-
- Specified by:
getCaretXY
in interface TextEditor
setKeyEventInterceptor
public void setKeyEventInterceptor(java.awt.event.KeyListener listener)
-
- Specified by:
setKeyEventInterceptor
in interface TextEditor
processKeyEvent
public void processKeyEvent(java.awt.event.KeyEvent evt)
-
- Specified by:
processKeyEvent
in interface TextEditor
- Overrides:
processKeyEvent
in class javax.swing.JComponent
getInputHandler
public java.awt.event.KeyListener getInputHandler()
-
- Specified by:
getInputHandler
in interface TextEditor
settingsChanged
public void settingsChanged()
setTokenMarker
public void setTokenMarker(EditorTokenMarker marker)
-
- Specified by:
setTokenMarker
in interface TextEditor
setFont
public void setFont(java.awt.Font font)
-
- Specified by:
setFont
in interface TextEditor
- Overrides:
setFont
in class javax.swing.JComponent
read
public void read(java.io.Reader reader)
throws java.io.IOException
-
- Specified by:
read
in interface TextEditor
-
- Throws:
java.io.IOException
getDocument
public javax.swing.text.Document getDocument()
-
- Specified by:
getDocument
in interface TextEditor
setDocument
public void setDocument(javax.swing.text.Document doc)
-
- Specified by:
setDocument
in interface TextEditor
setLineWrap
public void setLineWrap(boolean wrap)
-
- Specified by:
setLineWrap
in interface TextEditor
setWordWrap
public void setWordWrap(boolean wrap)
-
- Specified by:
setWordWrap
in interface TextEditor
setTabSize
public void setTabSize(int tabSize)
-
- Specified by:
setTabSize
in interface TextEditor
getTabSize
public int getTabSize()
-
- Specified by:
getTabSize
in interface TextEditor
dispose
public void dispose()
createEditor
public static TextEditor createEditor(java.lang.Class contentType,
EditorTokenMarker marker)
Skip navigation links
Copyright © 2001, 2007, Oracle. All rights reserved.