Groovy 1.8.5

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
 
Method Summary
def ConsoleTextEditor()

Creates a new instance of ConsoleTextEditor

boolean clipBoardAvailable()

String getDefaultFamily()

Action getPrintAction()

Action getRedoAction()

TextEditor getTextEditor()

Action getUndoAction()

protected void initActions()

void setDefaultFamily(String defaultFamily)

void setEditable(boolean editable)

void setShowLineNumbers(boolean showLineNumbers)

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

Method Detail

ConsoleTextEditor

public def ConsoleTextEditor()
Creates a new instance of 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)


setEditable

public void setEditable(boolean editable)


setShowLineNumbers

public void setShowLineNumbers(boolean showLineNumbers)


 

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