Groovy 1.7.11

groovy.ui
[Java] Class ConsoleTextEditor

java.lang.Object
  java.awt.Component
      java.awt.Container
          javax.swing.JComponent
              javax.swing.JScrollPane
                  groovy.ui.ConsoleTextEditor

public class ConsoleTextEditor
extends JScrollPane

Component which provides a styled editor for the console.

Authors:
hippy
Danno Ferrin
Tim Yates
Guillaume Laforge


Field Summary
 
Fields inherited from class JScrollPane
VIEWPORT, VERTICAL_SCROLLBAR, HORIZONTAL_SCROLLBAR, ROW_HEADER, COLUMN_HEADER, LOWER_LEFT_CORNER, LOWER_RIGHT_CORNER, UPPER_LEFT_CORNER, UPPER_RIGHT_CORNER, LOWER_LEADING_CORNER, LOWER_TRAILING_CORNER, UPPER_LEADING_CORNER, UPPER_TRAILING_CORNER, VERTICAL_SCROLLBAR_POLICY, HORIZONTAL_SCROLLBAR_POLICY, VERTICAL_SCROLLBAR_AS_NEEDED, VERTICAL_SCROLLBAR_NEVER, VERTICAL_SCROLLBAR_ALWAYS, HORIZONTAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_NEVER, HORIZONTAL_SCROLLBAR_ALWAYS, WHEN_FOCUSED, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_WINDOW, UNDEFINED_CONDITION, TOOL_TIP_TEXT_KEY, TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, WIDTH, HEIGHT, PROPERTIES, SOMEBITS, FRAMEBITS, ALLBITS, ERROR, ABORT
 
Fields inherited from class JComponent
WHEN_FOCUSED, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_WINDOW, UNDEFINED_CONDITION, TOOL_TIP_TEXT_KEY, TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, WIDTH, HEIGHT, PROPERTIES, SOMEBITS, FRAMEBITS, ALLBITS, ERROR, ABORT
 
Fields inherited from class Container
TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, WIDTH, HEIGHT, PROPERTIES, SOMEBITS, FRAMEBITS, ALLBITS, ERROR, ABORT
 
Fields inherited from class Component
TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, WIDTH, HEIGHT, PROPERTIES, SOMEBITS, FRAMEBITS, ALLBITS, ERROR, ABORT
 
Method Summary
def ConsoleTextEditor()

boolean clipBoardAvailable()

String getDefaultFamily()

Action getPrintAction()

Action getRedoAction()

TextEditor getTextEditor()

Action getUndoAction()

protected void initActions()

void setDefaultFamily(String defaultFamily)

 
Methods inherited from class JScrollPane
isValidateRoot, setComponentOrientation, getAccessibleContext, setUI, updateUI, getUIClassID, getUI, setLayout, getVerticalScrollBarPolicy, setVerticalScrollBarPolicy, getHorizontalScrollBarPolicy, setHorizontalScrollBarPolicy, getViewportBorder, setViewportBorder, getViewportBorderBounds, createHorizontalScrollBar, getHorizontalScrollBar, setHorizontalScrollBar, createVerticalScrollBar, getVerticalScrollBar, setVerticalScrollBar, setViewport, setViewportView, getRowHeader, setRowHeader, setRowHeaderView, getColumnHeader, setColumnHeader, isWheelScrollingEnabled, setWheelScrollingEnabled, getViewport, setColumnHeaderView, getCorner, setCorner, setFont, getPreferredSize, getMinimumSize, getMaximumSize, getAlignmentX, getAlignmentY, paint, addNotify, resetKeyboardActions, getInputMap, getInputMap, setActionMap, getActionMap, requestDefaultFocus, getDefaultLocale, setDefaultLocale, setToolTipText, getToolTipText, getToolTipText, getToolTipLocation, getPopupLocation, createToolTip, scrollRectToVisible, setAutoscrolls, getAutoscrolls, setTransferHandler, getTransferHandler, getClientProperty, putClientProperty, isLightweightComponent, setOpaque, computeVisibleRect, getVisibleRect, addVetoableChangeListener, removeVetoableChangeListener, getVetoableChangeListeners, getTopLevelAncestor, removeAncestorListener, getAncestorListeners, isOptimizedDrawingEnabled, paintImmediately, paintImmediately, setDoubleBuffered, getRootPane, setInheritsPopupMenu, getInheritsPopupMenu, setComponentPopupMenu, getComponentPopupMenu, getHeight, isDoubleBuffered, setForeground, setBackground, getBounds, reshape, setPreferredSize, setMinimumSize, setMaximumSize, getBaseline, getBaselineResizeBehavior, revalidate, getGraphics, getFontMetrics, repaint, repaint, printAll, requestFocusInWindow, requestFocus, requestFocus, setVisible, getX, getY, getWidth, getInsets, getInsets, addAncestorListener, isPaintingTile, isPaintingForPrint, isManagingFocus, setNextFocusableComponent, getNextFocusableComponent, setRequestFocusEnabled, isRequestFocusEnabled, grabFocus, setVerifyInputWhenFocusTarget, getVerifyInputWhenFocusTarget, setBorder, getBorder, setAlignmentY, setAlignmentX, setInputVerifier, getInputVerifier, setDebugGraphicsOptions, getDebugGraphicsOptions, registerKeyboardAction, registerKeyboardAction, unregisterKeyboardAction, getRegisteredKeyStrokes, getConditionForKeyStroke, getActionForKeyStroke, setInputMap, removeNotify, setFocusTraversalKeys, firePropertyChange, firePropertyChange, firePropertyChange, getListeners, contains, getLocation, print, getSize, update, isOpaque, enable, disable, setEnabled, setComponentZOrder, getComponentZOrder, doLayout, preferredSize, minimumSize, paintComponents, printComponents, addContainerListener, removeContainerListener, getContainerListeners, deliverEvent, getComponentAt, getComponentAt, locate, getMousePosition, getComponentCount, countComponents, insets, findComponentAt, findComponentAt, isAncestorOf, getFocusTraversalKeys, areFocusTraversalKeysSet, isFocusCycleRoot, isFocusCycleRoot, setFocusTraversalPolicy, getFocusTraversalPolicy, isFocusTraversalPolicySet, setFocusCycleRoot, setFocusTraversalPolicyProvider, isFocusTraversalPolicyProvider, transferFocusDownCycle, applyComponentOrientation, add, add, add, add, add, list, list, remove, remove, removeAll, validate, invalidate, getLayout, layout, getComponent, getComponents, addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener, getMousePosition, setBounds, setBounds, setDropTarget, getDropTarget, getToolkit, enableInputMethods, getForeground, isForegroundSet, getBackground, isBackgroundSet, isFontSet, getColorModel, getLocationOnScreen, getBounds, setCursor, getCursor, isCursorSet, paintAll, repaint, repaint, repaint, imageUpdate, createImage, createImage, createVolatileImage, createVolatileImage, prepareImage, prepareImage, checkImage, checkImage, setIgnoreRepaint, getIgnoreRepaint, inside, addComponentListener, removeComponentListener, getComponentListeners, addFocusListener, removeFocusListener, getFocusListeners, addHierarchyListener, removeHierarchyListener, getHierarchyListeners, addHierarchyBoundsListener, removeHierarchyBoundsListener, getHierarchyBoundsListeners, addKeyListener, removeKeyListener, getKeyListeners, addMouseListener, removeMouseListener, getMouseListeners, addMouseMotionListener, removeMouseMotionListener, getMouseMotionListeners, addMouseWheelListener, removeMouseWheelListener, getMouseWheelListeners, addInputMethodListener, removeInputMethodListener, getInputMethodListeners, getInputMethodRequests, getInputContext, mouseDown, mouseDrag, mouseUp, mouseMove, mouseEnter, mouseExit, keyDown, keyUp, gotFocus, lostFocus, isFocusTraversable, setFocusable, setFocusTraversalKeysEnabled, getFocusTraversalKeysEnabled, nextFocus, transferFocusUpCycle, hasFocus, getComponentOrientation, getTreeLock, getGraphicsConfiguration, dispatchEvent, isVisible, isDisplayable, isFocusable, getPeer, isFocusOwner, transferFocus, getFont, isPreferredSizeSet, isMinimumSizeSet, isMaximumSizeSet, isShowing, handleEvent, postEvent, transferFocusBackward, getFocusCycleRootAncestor, bounds, isLightweight, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, add, toString, getName, size, contains, list, list, list, getParent, getLocation, remove, setName, getSize, isValid, action, setSize, setSize, resize, resize, location, enable, setLocation, setLocation, getLocale, setLocale, move, isEnabled, show, show, hide, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll
 
Methods inherited from class JComponent
isValidateRoot, setFont, getPreferredSize, getMinimumSize, getMaximumSize, getAlignmentX, getAlignmentY, paint, addNotify, resetKeyboardActions, getInputMap, getInputMap, setActionMap, getActionMap, requestDefaultFocus, getDefaultLocale, setDefaultLocale, setToolTipText, getToolTipText, getToolTipText, getToolTipLocation, getPopupLocation, createToolTip, scrollRectToVisible, setAutoscrolls, getAutoscrolls, setTransferHandler, getTransferHandler, getClientProperty, putClientProperty, isLightweightComponent, setOpaque, computeVisibleRect, getVisibleRect, addVetoableChangeListener, removeVetoableChangeListener, getVetoableChangeListeners, getTopLevelAncestor, removeAncestorListener, getAncestorListeners, isOptimizedDrawingEnabled, paintImmediately, paintImmediately, setDoubleBuffered, getRootPane, setInheritsPopupMenu, getInheritsPopupMenu, setComponentPopupMenu, getComponentPopupMenu, getHeight, isDoubleBuffered, setForeground, setBackground, getBounds, reshape, setPreferredSize, setMinimumSize, setMaximumSize, getBaseline, getBaselineResizeBehavior, revalidate, getGraphics, getFontMetrics, repaint, repaint, printAll, requestFocusInWindow, requestFocus, requestFocus, getAccessibleContext, setVisible, getX, getY, getWidth, updateUI, getUIClassID, getInsets, getInsets, addAncestorListener, isPaintingTile, isPaintingForPrint, isManagingFocus, setNextFocusableComponent, getNextFocusableComponent, setRequestFocusEnabled, isRequestFocusEnabled, grabFocus, setVerifyInputWhenFocusTarget, getVerifyInputWhenFocusTarget, setBorder, getBorder, setAlignmentY, setAlignmentX, setInputVerifier, getInputVerifier, setDebugGraphicsOptions, getDebugGraphicsOptions, registerKeyboardAction, registerKeyboardAction, unregisterKeyboardAction, getRegisteredKeyStrokes, getConditionForKeyStroke, getActionForKeyStroke, setInputMap, removeNotify, setFocusTraversalKeys, firePropertyChange, firePropertyChange, firePropertyChange, getListeners, contains, getLocation, print, getSize, update, isOpaque, enable, disable, setEnabled, setComponentZOrder, getComponentZOrder, doLayout, preferredSize, minimumSize, paintComponents, printComponents, addContainerListener, removeContainerListener, getContainerListeners, deliverEvent, getComponentAt, getComponentAt, locate, getMousePosition, getComponentCount, countComponents, insets, findComponentAt, findComponentAt, isAncestorOf, getFocusTraversalKeys, areFocusTraversalKeysSet, isFocusCycleRoot, isFocusCycleRoot, setFocusTraversalPolicy, getFocusTraversalPolicy, isFocusTraversalPolicySet, setFocusCycleRoot, setFocusTraversalPolicyProvider, isFocusTraversalPolicyProvider, transferFocusDownCycle, applyComponentOrientation, add, add, add, add, add, list, list, remove, remove, removeAll, validate, invalidate, getLayout, setLayout, layout, getComponent, getComponents, addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener, getMousePosition, setBounds, setBounds, setDropTarget, getDropTarget, getToolkit, enableInputMethods, getForeground, isForegroundSet, getBackground, isBackgroundSet, isFontSet, getColorModel, getLocationOnScreen, getBounds, setCursor, getCursor, isCursorSet, paintAll, repaint, repaint, repaint, imageUpdate, createImage, createImage, createVolatileImage, createVolatileImage, prepareImage, prepareImage, checkImage, checkImage, setIgnoreRepaint, getIgnoreRepaint, inside, addComponentListener, removeComponentListener, getComponentListeners, addFocusListener, removeFocusListener, getFocusListeners, addHierarchyListener, removeHierarchyListener, getHierarchyListeners, addHierarchyBoundsListener, removeHierarchyBoundsListener, getHierarchyBoundsListeners, addKeyListener, removeKeyListener, getKeyListeners, addMouseListener, removeMouseListener, getMouseListeners, addMouseMotionListener, removeMouseMotionListener, getMouseMotionListeners, addMouseWheelListener, removeMouseWheelListener, getMouseWheelListeners, addInputMethodListener, removeInputMethodListener, getInputMethodListeners, getInputMethodRequests, getInputContext, mouseDown, mouseDrag, mouseUp, mouseMove, mouseEnter, mouseExit, keyDown, keyUp, gotFocus, lostFocus, isFocusTraversable, setFocusable, setFocusTraversalKeysEnabled, getFocusTraversalKeysEnabled, nextFocus, transferFocusUpCycle, hasFocus, setComponentOrientation, getComponentOrientation, getTreeLock, getGraphicsConfiguration, dispatchEvent, isVisible, isDisplayable, isFocusable, getPeer, isFocusOwner, transferFocus, getFont, isPreferredSizeSet, isMinimumSizeSet, isMaximumSizeSet, isShowing, handleEvent, postEvent, transferFocusBackward, getFocusCycleRootAncestor, bounds, isLightweight, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, add, toString, getName, size, contains, list, list, list, getParent, getLocation, remove, setName, getSize, isValid, action, setSize, setSize, resize, resize, location, enable, setLocation, setLocation, getLocale, setLocale, move, isEnabled, show, show, hide, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll
 
Methods inherited from class Container
setComponentZOrder, getComponentZOrder, doLayout, isValidateRoot, setFont, getPreferredSize, preferredSize, getMinimumSize, minimumSize, getMaximumSize, getAlignmentX, getAlignmentY, paint, paintComponents, printComponents, addContainerListener, removeContainerListener, getContainerListeners, deliverEvent, getComponentAt, getComponentAt, locate, getMousePosition, addNotify, getComponentCount, countComponents, getInsets, insets, findComponentAt, findComponentAt, removeNotify, isAncestorOf, setFocusTraversalKeys, getFocusTraversalKeys, areFocusTraversalKeysSet, isFocusCycleRoot, isFocusCycleRoot, setFocusTraversalPolicy, getFocusTraversalPolicy, isFocusTraversalPolicySet, setFocusCycleRoot, setFocusTraversalPolicyProvider, isFocusTraversalPolicyProvider, transferFocusDownCycle, applyComponentOrientation, getListeners, add, add, add, add, add, list, list, remove, remove, print, removeAll, update, validate, invalidate, getLayout, setLayout, layout, getComponent, getComponents, addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener, getMousePosition, getHeight, setBounds, setBounds, setDropTarget, getDropTarget, getToolkit, isDoubleBuffered, enableInputMethods, getForeground, setForeground, isForegroundSet, getBackground, setBackground, isBackgroundSet, isFontSet, getColorModel, getLocationOnScreen, getBounds, getBounds, reshape, setPreferredSize, setMinimumSize, setMaximumSize, getBaseline, getBaselineResizeBehavior, revalidate, getGraphics, getFontMetrics, setCursor, getCursor, isCursorSet, paintAll, repaint, repaint, repaint, repaint, printAll, imageUpdate, createImage, createImage, createVolatileImage, createVolatileImage, prepareImage, prepareImage, checkImage, checkImage, setIgnoreRepaint, getIgnoreRepaint, inside, addComponentListener, removeComponentListener, getComponentListeners, addFocusListener, removeFocusListener, getFocusListeners, addHierarchyListener, removeHierarchyListener, getHierarchyListeners, addHierarchyBoundsListener, removeHierarchyBoundsListener, getHierarchyBoundsListeners, addKeyListener, removeKeyListener, getKeyListeners, addMouseListener, removeMouseListener, getMouseListeners, addMouseMotionListener, removeMouseMotionListener, getMouseMotionListeners, addMouseWheelListener, removeMouseWheelListener, getMouseWheelListeners, addInputMethodListener, removeInputMethodListener, getInputMethodListeners, getInputMethodRequests, getInputContext, mouseDown, mouseDrag, mouseUp, mouseMove, mouseEnter, mouseExit, keyDown, keyUp, gotFocus, lostFocus, isFocusTraversable, setFocusable, setFocusTraversalKeysEnabled, getFocusTraversalKeysEnabled, requestFocusInWindow, nextFocus, transferFocusUpCycle, hasFocus, setComponentOrientation, getComponentOrientation, getTreeLock, getGraphicsConfiguration, dispatchEvent, isVisible, isDisplayable, isFocusable, getPeer, isFocusOwner, transferFocus, getFont, isPreferredSizeSet, isMinimumSizeSet, isMaximumSizeSet, isShowing, handleEvent, postEvent, transferFocusBackward, getFocusCycleRootAncestor, requestFocus, getAccessibleContext, setVisible, getX, getY, getWidth, bounds, isLightweight, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, add, toString, getName, size, contains, contains, list, list, list, getParent, getLocation, getLocation, remove, setName, getSize, getSize, isValid, action, setSize, setSize, resize, resize, isOpaque, location, enable, enable, disable, setLocation, setLocation, getLocale, setLocale, move, setEnabled, isEnabled, show, show, hide, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll
 
Methods inherited from class Component
removePropertyChangeListener, removePropertyChangeListener, doLayout, setFont, getPreferredSize, preferredSize, getMinimumSize, minimumSize, getMaximumSize, getAlignmentX, getAlignmentY, paint, deliverEvent, getComponentAt, getComponentAt, locate, getMousePosition, addNotify, getHeight, setBounds, setBounds, setDropTarget, getDropTarget, getToolkit, isDoubleBuffered, enableInputMethods, getForeground, setForeground, isForegroundSet, getBackground, setBackground, isBackgroundSet, isFontSet, getColorModel, getLocationOnScreen, getBounds, getBounds, reshape, setPreferredSize, setMinimumSize, setMaximumSize, getBaseline, getBaselineResizeBehavior, revalidate, getGraphics, getFontMetrics, setCursor, getCursor, isCursorSet, paintAll, repaint, repaint, repaint, repaint, printAll, imageUpdate, createImage, createImage, createVolatileImage, createVolatileImage, prepareImage, prepareImage, checkImage, checkImage, setIgnoreRepaint, getIgnoreRepaint, inside, addComponentListener, removeComponentListener, getComponentListeners, addFocusListener, removeFocusListener, getFocusListeners, addHierarchyListener, removeHierarchyListener, getHierarchyListeners, addHierarchyBoundsListener, removeHierarchyBoundsListener, getHierarchyBoundsListeners, addKeyListener, removeKeyListener, getKeyListeners, addMouseListener, removeMouseListener, getMouseListeners, addMouseMotionListener, removeMouseMotionListener, getMouseMotionListeners, addMouseWheelListener, removeMouseWheelListener, getMouseWheelListeners, addInputMethodListener, removeInputMethodListener, getInputMethodListeners, getInputMethodRequests, getInputContext, mouseDown, mouseDrag, mouseUp, mouseMove, mouseEnter, mouseExit, keyDown, keyUp, gotFocus, lostFocus, isFocusTraversable, setFocusable, setFocusTraversalKeysEnabled, getFocusTraversalKeysEnabled, requestFocusInWindow, nextFocus, transferFocusUpCycle, hasFocus, setComponentOrientation, getComponentOrientation, getTreeLock, getGraphicsConfiguration, dispatchEvent, isVisible, isDisplayable, isFocusable, getPeer, isFocusOwner, transferFocus, getFont, isPreferredSizeSet, isMinimumSizeSet, isMaximumSizeSet, isShowing, handleEvent, postEvent, transferFocusBackward, getFocusCycleRootAncestor, requestFocus, getAccessibleContext, setVisible, getX, getY, getWidth, bounds, removeNotify, setFocusTraversalKeys, getFocusTraversalKeys, areFocusTraversalKeysSet, isFocusCycleRoot, applyComponentOrientation, isLightweight, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getListeners, getPropertyChangeListeners, getPropertyChangeListeners, add, toString, getName, size, contains, contains, list, list, list, list, list, getParent, getLocation, getLocation, remove, setName, print, getSize, getSize, isValid, action, setSize, setSize, update, resize, resize, isOpaque, location, enable, enable, disable, setLocation, setLocation, getLocale, setLocale, validate, invalidate, move, setEnabled, isEnabled, layout, show, show, hide, addPropertyChangeListener, addPropertyChangeListener, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Method Detail

ConsoleTextEditor

public def ConsoleTextEditor()


clipBoardAvailable

public boolean clipBoardAvailable()


getDefaultFamily

public String getDefaultFamily()


getPrintAction

public Action getPrintAction()


getRedoAction

public Action getRedoAction()


getTextEditor

public TextEditor getTextEditor()


getUndoAction

public Action getUndoAction()


initActions

protected void initActions()


setDefaultFamily

public void setDefaultFamily(String defaultFamily)


 

Copyright © 2003-2010 The Codehaus. All rights reserved.