Package: groovy.console.ui

## [Java] Class ConsoleTextEditor

- groovy.console.ui.ConsoleTextEditor

-     public class ConsoleTextEditor
      extends JScrollPane

  Component which provides a styled editor for the console.

- - Inherited fields
    Fields inherited from class | Fields
    --- | ---
    `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`

  - ### Constructor Summary

    Constructors
    Constructor and description
    `ConsoleTextEditor()` Creates a new instance of ConsoleTextEditor

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public void` | `changedUpdate(DocumentEvent documentEvent)`
    `` | `public boolean` | `clipBoardAvailable()`
    `` | `public void` | `enableHighLighter(Class<? extends DocumentFilter> clazz)`
    `` | `public String` | `getDefaultFamily()`
    `` | `public Action` | `getPrintAction()`
    `` | `public Action` | `getRedoAction()`
    `` | `public TextEditor` | `getTextEditor()`
    `` | `public Action` | `getUndoAction()`
    `` | `protected void` | `initActions()`
    `` | `public void` | `insertUpdate(DocumentEvent documentEvent)`
    `` | `public void` | `paintComponent(Graphics g)`
    `` | `public void` | `removeUpdate(DocumentEvent documentEvent)`
    `` | `public void` | `setDefaultFamily(String defaultFamily)`
    `` | `public void` | `setEditable(boolean editable)`
    `` | `public void` | `setShowLineNumbers(boolean showLineNumbers)`

  - ### Inherited Methods Summary

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

- - ### Constructor Detail

    - #### public ConsoleTextEditor()

      Creates a new instance of ConsoleTextEditor

  - ### Method Detail

    - #### @Override
      public void changedUpdate(DocumentEvent documentEvent)

    - #### public boolean clipBoardAvailable()

    - #### public void enableHighLighter(Class<? extends DocumentFilter> clazz)

    - #### public String getDefaultFamily()

    - #### public Action getPrintAction()

    - #### public Action getRedoAction()

    - #### public TextEditor getTextEditor()

    - #### public Action getUndoAction()

    - #### protected void initActions()

    - #### @Override
      public void insertUpdate(DocumentEvent documentEvent)

    - #### @Override
      public void paintComponent(Graphics g)

    - #### @Override
      public void removeUpdate(DocumentEvent documentEvent)

    - #### public void setDefaultFamily(String defaultFamily)

    - #### public void setEditable(boolean editable)

    - #### public void setShowLineNumbers(boolean showLineNumbers)