Class TextAreaSkin
- java.lang.Object
 - 
- org.apache.pivot.wtk.skin.ComponentSkin
 - 
- org.apache.pivot.wtk.skin.TextAreaSkin
 
 
 
- 
- All Implemented Interfaces:
 ComponentKeyListener,ComponentListener,ComponentMouseButtonListener,ComponentMouseListener,ComponentMouseWheelListener,ComponentStateListener,ComponentTooltipListener,ConstrainedVisual,Skin,TextArea.Skin,TextAreaContentListener,TextAreaListener,TextAreaSelectionListener,Visual
- Direct Known Subclasses:
 TerraTextAreaSkin
public class TextAreaSkin extends ComponentSkin implements TextArea.Skin, TextAreaListener, TextAreaContentListener, TextAreaSelectionListener
Text area skin. 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentKeyListener
ComponentKeyListener.Adapter, ComponentKeyListener.Listeners 
- 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentListener
ComponentListener.Adapter, ComponentListener.Listeners 
- 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseButtonListener
ComponentMouseButtonListener.Adapter, ComponentMouseButtonListener.Listeners 
- 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseListener
ComponentMouseListener.Adapter, ComponentMouseListener.Listeners 
- 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentMouseWheelListener
ComponentMouseWheelListener.Listeners 
- 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentStateListener
ComponentStateListener.Adapter, ComponentStateListener.Listeners 
- 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.ComponentTooltipListener
ComponentTooltipListener.Listeners 
- 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.TextAreaContentListener
TextAreaContentListener.Adapter, TextAreaContentListener.Listeners 
- 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.TextAreaListener
TextAreaListener.Adapter, TextAreaListener.Listeners 
- 
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.TextAreaSelectionListener
TextAreaSelectionListener.Listeners 
 - 
 
- 
Constructor Summary
Constructors Constructor Description TextAreaSkin()Default constructor that sets the default colors, fonts, etc. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voideditableChanged(TextArea textArea)Called when a text area's editable state has changed.voidenabledChanged(Component component)Called when a component's enabled state has changed.voidfocusedChanged(Component component, Component obverseComponent)Called when a component's focused state has changed.booleangetAcceptsEnter()booleangetAcceptsTab()Gets current value of style that determines the behavior ofTABandCtrl-TABcharacters.java.awt.ColorgetBackgroundColor()intgetBaseline(int width, int height)Should be implemented in every subclass.BoundsgetCharacterBounds(int index)java.awt.ColorgetColor()java.awt.FontgetFont()java.awt.ColorgetInactiveColor()java.awt.ColorgetInactiveSelectionBackgroundColor()java.awt.ColorgetInactiveSelectionColor()intgetInsertionPoint(int x, int y)intgetLineWidth()InsetsgetMargin()intgetNextInsertionPoint(int x, int from, TextArea.ScrollDirection direction)intgetPreferredHeight(int width)Returns the visual's preferred height given the provided width constraint.DimensionsgetPreferredSize()Returns the visual's unconstrained preferred size.intgetPreferredWidth(int height)Returns the visual's preferred width given the provided height constraint.intgetRowAt(int index)intgetRowCount()intgetRowLength(int index)intgetRowOffset(int index)java.awt.geom.AreagetSelection()java.awt.ColorgetSelectionBackgroundColor()java.awt.ColorgetSelectionColor()intgetTabWidth()TextAreagetTextArea()booleangetWrapText()voidinstall(Component component)Must be implemented in every subclass in order to do component-specific operations at instantiation time, but every subclass must call this superclass method to setup the necessary listeners, etc.booleanisOpaque()By default, skins are assumed to be opaque.booleankeyPressed(Component component, int keyCode, Keyboard.KeyLocation keyLocation)Keyboard handling (Tab key or Shift Tab).booleankeyTyped(Component component, char character)Called when a key has been typed.voidlayout()If the component on which the skin is installed is a container, lays out the container's children.voidmaximumLengthChanged(TextArea textArea, int previousMaximumLength)Called when a text area's maximum length has changed.booleanmouseClick(Component component, Mouse.Button button, int x, int y, int count)Called when a mouse button is clicked over a component.booleanmouseDown(Component component, Mouse.Button button, int x, int y)Called when a mouse button is pressed over a component.booleanmouseMove(Component component, int x, int y)Called when the mouse is moved over a component.booleanmouseUp(Component component, Mouse.Button button, int x, int y)Called when a mouse button is released over a component.voidpaint(java.awt.Graphics2D graphics)Paints the visual.voidparagraphInserted(TextArea textArea, int index)Called when a paragraph has been inserted into a text area's paragraph sequence.voidparagraphsRemoved(TextArea textArea, int index, Sequence<TextArea.Paragraph> removed)Called when paragraphs have been removed from a text area's paragraph sequence.voidselectionChanged(TextArea textArea, int previousSelectionStart, int previousSelectionLength)Called when a text area's selection state has changed.voidsetAcceptsEnter(boolean acceptsValue)voidsetAcceptsTab(boolean acceptsValue)Sets current value of style that determines the behavior ofTABandCtrl-TABcharacters.voidsetBackgroundColor(java.awt.Color colorValue)voidsetBackgroundColor(java.lang.String colorString)voidsetColor(java.awt.Color colorValue)Sets the foreground color of the text.voidsetColor(java.lang.String colorString)Sets the foreground color of the text.voidsetFont(java.awt.Font newFont)Sets the font for the text.voidsetFont(java.lang.String fontString)Sets the font for the text.voidsetFont(Dictionary<java.lang.String,?> fontDictionary)Sets the font for the text.voidsetInactiveColor(java.awt.Color colorValue)voidsetInactiveColor(java.lang.String colorString)voidsetInactiveSelectionBackgroundColor(java.awt.Color colorValue)voidsetInactiveSelectionBackgroundColor(java.lang.String colorString)voidsetInactiveSelectionColor(java.awt.Color colorValue)voidsetInactiveSelectionColor(java.lang.String colorString)voidsetLineWidth(int widthValue)voidsetMargin(int marginValue)Sets the amount of space between the edge of the TextArea and its text.voidsetMargin(java.lang.Number marginValue)Sets the amount of space between the edge of the TextArea and its text.voidsetMargin(java.lang.String marginString)Sets the amount of space between the edge of the TextArea and its text.voidsetMargin(Dictionary<java.lang.String,?> marginDictionary)Sets the amount of space between the edge of the TextArea and its text.voidsetMargin(Sequence<?> marginSequence)Sets the amount of space between the edge of the TextArea and its text.voidsetMargin(Insets newMargin)Sets the amount of space between the edge of the TextArea and its text.voidsetSelectionBackgroundColor(java.awt.Color colorValue)voidsetSelectionBackgroundColor(java.lang.String colorString)voidsetSelectionColor(java.awt.Color colorValue)voidsetSelectionColor(java.lang.String colorString)voidsetTabWidth(int tabValue)voidsetWrapText(boolean wrapValue)voidtextChanged(TextArea textArea)Called when a text area's text has changed.- 
Methods inherited from class org.apache.pivot.wtk.skin.ComponentSkin
colorFromObject, colorFromObject, colorFromObject, colorFromObject, currentTheme, cursorChanged, decodeFont, defaultBackgroundColor, defaultForegroundColor, dragSourceChanged, dropTargetChanged, fontFromObject, getBaseline, getColor, getComponent, getFocusRectangleStroke, getHeight, getSize, getTextInputMethodListener, getThemeFont, getWidth, heightLimitsChanged, invalidateComponent, isFocusable, keyReleased, locationChanged, menuHandlerChanged, mouseOut, mouseOver, mouseWheel, nameChanged, parentChanged, preferredSizeChanged, repaintComponent, repaintComponent, repaintComponent, repaintComponent, repaintComponent, setDefaultStyles, setSize, sizeChanged, themeHasThickFocusRectangle, themeHasTransitionEnabled, themeIsDark, themeIsFlat, tooltipDelayChanged, tooltipTextChanged, tooltipTriggered, visibleChanged, widthLimitsChanged 
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface org.apache.pivot.wtk.ConstrainedVisual
setSize 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getTextArea
public TextArea getTextArea()
- Returns:
 - The 
TextAreacomponent we are attached to. 
 
- 
install
public void install(Component component)
Description copied from class:ComponentSkinMust be implemented in every subclass in order to do component-specific operations at instantiation time, but every subclass must call this superclass method to setup the necessary listeners, etc.- Specified by:
 installin interfaceSkin- Overrides:
 installin classComponentSkin- Parameters:
 component- The component to which the skin is being attached.
 
- 
getPreferredWidth
public int getPreferredWidth(int height)
Description copied from interface:ConstrainedVisualReturns the visual's preferred width given the provided height constraint.- Specified by:
 getPreferredWidthin interfaceConstrainedVisual- Parameters:
 height- The height by which to constrain the preferred width, or-1for no constraint.- Returns:
 - The preferred width given the height constraint.
 
 
- 
getPreferredHeight
public int getPreferredHeight(int width)
Description copied from interface:ConstrainedVisualReturns the visual's preferred height given the provided width constraint.- Specified by:
 getPreferredHeightin interfaceConstrainedVisual- Parameters:
 width- The width by which to constrain the preferred height, or-1for no constraint.- Returns:
 - The preferred height given the width constraint.
 
 
- 
getPreferredSize
public Dimensions getPreferredSize()
Description copied from interface:ConstrainedVisualReturns the visual's unconstrained preferred size.- Specified by:
 getPreferredSizein interfaceConstrainedVisual- Overrides:
 getPreferredSizein classComponentSkin- Returns:
 - The preferred size (width and height) of this component.
 
Depending on the component this can be a static value or derived (as for a container) from its subcomponents, etc.
The default implementation simply calls
ConstrainedVisual.getPreferredWidth(int)andConstrainedVisual.getPreferredHeight(int). 
 
- 
layout
public void layout()
Description copied from interface:SkinIf the component on which the skin is installed is a container, lays out the container's children. 
- 
getBaseline
public int getBaseline(int width, int height)Description copied from class:ComponentSkinShould be implemented in every subclass.The default implementation here simply returns -1 (no baseline).
- Specified by:
 getBaselinein interfaceConstrainedVisual- Overrides:
 getBaselinein classComponentSkin- Parameters:
 width- Constrained width to compute the baseline for.height- Constrained height to compute the baseline for.- Returns:
 - The baseline relative to the origin of this visual, or 
-1if this visual does not have a baseline. 
 
- 
paint
public void paint(java.awt.Graphics2D graphics)
Description copied from interface:VisualPaints the visual. 
- 
isOpaque
public boolean isOpaque()
Description copied from class:ComponentSkinBy default, skins are assumed to be opaque.- Specified by:
 isOpaquein interfaceSkin- Overrides:
 isOpaquein classComponentSkin- Returns:
 trueif this skin is opaque;falseif any part of it is transparent or translucent.
 
- 
getInsertionPoint
public int getInsertionPoint(int x, int y)- Specified by:
 getInsertionPointin interfaceTextArea.Skin- Parameters:
 x- The X-location to check (likely from the mouse location).y- The Y-location to check.- Returns:
 - The insertion point for a given location.
 
 
- 
getNextInsertionPoint
public int getNextInsertionPoint(int x, int from, TextArea.ScrollDirection direction)- Specified by:
 getNextInsertionPointin interfaceTextArea.Skin- Parameters:
 x- The current X-location.from- The current character index to move from.direction- The direction we want to move.- Returns:
 - The next insertion point given an x coordinate and a character index.
 
 
- 
getRowAt
public int getRowAt(int index)
- Specified by:
 getRowAtin interfaceTextArea.Skin- Parameters:
 index- The character index to check.- Returns:
 - The row index of the character at a given index.
 
 
- 
getRowOffset
public int getRowOffset(int index)
- Specified by:
 getRowOffsetin interfaceTextArea.Skin- Parameters:
 index- The character index to check.- Returns:
 - The index of the first character in the row containing a given character index.
 
 
- 
getRowLength
public int getRowLength(int index)
- Specified by:
 getRowLengthin interfaceTextArea.Skin- Parameters:
 index- The character index to check.- Returns:
 - The number of characters in the row containing a given character index.
 
 
- 
getRowCount
public int getRowCount()
- Specified by:
 getRowCountin interfaceTextArea.Skin- Returns:
 - The total number of rows in the text area.
 
 
- 
getCharacterBounds
public Bounds getCharacterBounds(int index)
- Specified by:
 getCharacterBoundsin interfaceTextArea.Skin- Parameters:
 index- The index of the character to check.- Returns:
 - The bounds of the character at a given index.
 
 
- 
getSelection
public java.awt.geom.Area getSelection()
- Returns:
 - The current selection area (can be 
nullif nothing is selected). 
 
- 
getFont
public final java.awt.Font getFont()
- Returns:
 - The font of the text.
 
 
- 
setFont
public final void setFont(java.awt.Font newFont)
Sets the font for the text.- Parameters:
 newFont- The new font for the text.
 
- 
setFont
public final void setFont(java.lang.String fontString)
Sets the font for the text.- Parameters:
 fontString- Afont specification
 
- 
setFont
public final void setFont(Dictionary<java.lang.String,?> fontDictionary)
Sets the font for the text.- Parameters:
 fontDictionary- A dictionarydescribing a font
 
- 
getColor
public final java.awt.Color getColor()
- Returns:
 - The foreground color of the text.
 
 
- 
setColor
public final void setColor(java.awt.Color colorValue)
Sets the foreground color of the text.- Parameters:
 colorValue- The new foreground text color.
 
- 
setColor
public final void setColor(java.lang.String colorString)
Sets the foreground color of the text.- Parameters:
 colorString- Any of the color values recognized by Pivot.
 
- 
getBackgroundColor
public final java.awt.Color getBackgroundColor()
 
- 
setBackgroundColor
public final void setBackgroundColor(java.awt.Color colorValue)
 
- 
setBackgroundColor
public final void setBackgroundColor(java.lang.String colorString)
 
- 
getInactiveColor
public final java.awt.Color getInactiveColor()
 
- 
setInactiveColor
public final void setInactiveColor(java.awt.Color colorValue)
 
- 
setInactiveColor
public final void setInactiveColor(java.lang.String colorString)
 
- 
getSelectionColor
public final java.awt.Color getSelectionColor()
 
- 
setSelectionColor
public final void setSelectionColor(java.awt.Color colorValue)
 
- 
setSelectionColor
public final void setSelectionColor(java.lang.String colorString)
 
- 
getSelectionBackgroundColor
public final java.awt.Color getSelectionBackgroundColor()
 
- 
setSelectionBackgroundColor
public final void setSelectionBackgroundColor(java.awt.Color colorValue)
 
- 
setSelectionBackgroundColor
public final void setSelectionBackgroundColor(java.lang.String colorString)
 
- 
getInactiveSelectionColor
public final java.awt.Color getInactiveSelectionColor()
 
- 
setInactiveSelectionColor
public final void setInactiveSelectionColor(java.awt.Color colorValue)
 
- 
setInactiveSelectionColor
public final void setInactiveSelectionColor(java.lang.String colorString)
 
- 
getInactiveSelectionBackgroundColor
public final java.awt.Color getInactiveSelectionBackgroundColor()
 
- 
setInactiveSelectionBackgroundColor
public final void setInactiveSelectionBackgroundColor(java.awt.Color colorValue)
 
- 
setInactiveSelectionBackgroundColor
public final void setInactiveSelectionBackgroundColor(java.lang.String colorString)
 
- 
getMargin
public final Insets getMargin()
- Returns:
 - The amount of space between the edge of the TextArea and its text.
 
 
- 
setMargin
public final void setMargin(Insets newMargin)
Sets the amount of space between the edge of the TextArea and its text.- Parameters:
 newMargin- The individual margin values for all edges.
 
- 
setMargin
public final void setMargin(Dictionary<java.lang.String,?> marginDictionary)
Sets the amount of space between the edge of the TextArea and its text.- Parameters:
 marginDictionary- A dictionary with keys in the set {top, left, bottom, right}.
 
- 
setMargin
public final void setMargin(Sequence<?> marginSequence)
Sets the amount of space between the edge of the TextArea and its text.- Parameters:
 marginSequence- A sequence with values in the order [top, left, bottom, right].
 
- 
setMargin
public final void setMargin(int marginValue)
Sets the amount of space between the edge of the TextArea and its text.- Parameters:
 marginValue- The single value to use for all the margins.
 
- 
setMargin
public final void setMargin(java.lang.Number marginValue)
Sets the amount of space between the edge of the TextArea and its text.- Parameters:
 marginValue- The single value to use for all the margins.
 
- 
setMargin
public final void setMargin(java.lang.String marginString)
Sets the amount of space between the edge of the TextArea and its text.- Parameters:
 marginString- A string containing an integer or a JSON dictionary or list with keys top, left, bottom, and/or right.
 
- 
getWrapText
public final boolean getWrapText()
 
- 
setWrapText
public final void setWrapText(boolean wrapValue)
 
- 
getAcceptsEnter
public final boolean getAcceptsEnter()
 
- 
setAcceptsEnter
public final void setAcceptsEnter(boolean acceptsValue)
 
- 
getAcceptsTab
public final boolean getAcceptsTab()
Gets current value of style that determines the behavior ofTABandCtrl-TABcharacters.- Returns:
 trueifTABinserts an appropriate number of spaces, whileCtrl-TABshifts focus to next component.false(default) meansTABshifts focus andCtrl-TABinserts spaces.
 
- 
setAcceptsTab
public final void setAcceptsTab(boolean acceptsValue)
Sets current value of style that determines the behavior ofTABandCtrl-TABcharacters.- Parameters:
 acceptsValue-trueifTABinserts an appropriate number of spaces, whileCtrl-TABshifts focus to next component.false(default) meansTABshifts focus andCtrl-TABinserts spaces.
 
- 
getTabWidth
public final int getTabWidth()
- Specified by:
 getTabWidthin interfaceTextArea.Skin- Returns:
 - The current setting of the "tabWidth" style (so "setText" uses the same value as Ctrl-Tab from user).
 
 
- 
setTabWidth
public final void setTabWidth(int tabValue)
 
- 
getLineWidth
public final int getLineWidth()
 
- 
setLineWidth
public final void setLineWidth(int widthValue)
 
- 
mouseMove
public boolean mouseMove(Component component, int x, int y)
Description copied from interface:ComponentMouseListenerCalled when the mouse is moved over a component.- Specified by:
 mouseMovein interfaceComponentMouseListener- Overrides:
 mouseMovein classComponentSkin- Parameters:
 component- Component that is under the mouse.x- X position of the mouse.y- Y position of the mouse.- Returns:
 trueto consume the event;falseto allow it to propagate (default return).
 
- 
mouseDown
public boolean mouseDown(Component component, Mouse.Button button, int x, int y)
Description copied from interface:ComponentMouseButtonListenerCalled when a mouse button is pressed over a component.- Specified by:
 mouseDownin interfaceComponentMouseButtonListener- Overrides:
 mouseDownin classComponentSkin- Parameters:
 component- Component that is under the mouse pointer.button- Which mouse button was pressed.x- X position of the mouse.y- Y position of the mouse.- Returns:
 trueto consume the event;falseto allow it to propagate (default).
 
- 
mouseUp
public boolean mouseUp(Component component, Mouse.Button button, int x, int y)
Description copied from interface:ComponentMouseButtonListenerCalled when a mouse button is released over a component.- Specified by:
 mouseUpin interfaceComponentMouseButtonListener- Overrides:
 mouseUpin classComponentSkin- Parameters:
 component- Component user the mouse pointer.button- Which mouse button that was released.x- X position of the mouse.y- Y position of the mouse.- Returns:
 trueto consume the event;falseto allow it to propagate (default).
 
- 
mouseClick
public boolean mouseClick(Component component, Mouse.Button button, int x, int y, int count)
Description copied from interface:ComponentMouseButtonListenerCalled when a mouse button is clicked over a component.- Specified by:
 mouseClickin interfaceComponentMouseButtonListener- Overrides:
 mouseClickin classComponentSkin- Parameters:
 component- Component user the mouse pointer.button- Which mouse button was clicked.x- X position of the mouse.y- Y position of the mouse.count- Number of clicks (1 = single click, 2 = double click, etc.).- Returns:
 trueto consume the event;falseto allow it to propagate (default).
 
- 
keyTyped
public boolean keyTyped(Component component, char character)
Description copied from interface:ComponentKeyListenerCalled when a key has been typed.- Specified by:
 keyTypedin interfaceComponentKeyListener- Overrides:
 keyTypedin classComponentSkin- Parameters:
 component- Component that has the focus, that is receiving this key.character- The decoded character that was typed.- Returns:
 trueto consume the event;falseto allow it to propagate.
 
- 
keyPressed
public boolean keyPressed(Component component, int keyCode, Keyboard.KeyLocation keyLocation)
Description copied from class:ComponentSkinKeyboard handling (Tab key or Shift Tab).- Specified by:
 keyPressedin interfaceComponentKeyListener- Overrides:
 keyPressedin classComponentSkin- Parameters:
 component- Component that has the focus.keyCode- The key code for the key that was pressed.keyLocation- Location value for the key (left or right for shift keys, etc.).- Returns:
 trueto consume the event;falseto allow it to propagate.
 
- 
enabledChanged
public void enabledChanged(Component component)
Description copied from interface:ComponentStateListenerCalled when a component's enabled state has changed.Called both when the component is enabled and when it is disabled. The component's
enabledflag has already been set when this method is called so the new state can be determined by calling theComponent.isEnabled()method.- Specified by:
 enabledChangedin interfaceComponentStateListener- Overrides:
 enabledChangedin classComponentSkin- Parameters:
 component- The component whose enabled state is changing.
 
- 
focusedChanged
public void focusedChanged(Component component, Component obverseComponent)
Description copied from interface:ComponentStateListenerCalled when a component's focused state has changed.This will be called both when a component gains focus and when it loses focus. The currently focused component has already been set when this method is called, so that the new state of the component can be determined by calling the
Component.isFocused()method.- Specified by:
 focusedChangedin interfaceComponentStateListener- Overrides:
 focusedChangedin classComponentSkin- Parameters:
 component- The component that is either gaining focus or the one that previously had focus and is now losing it.obverseComponent- If the component is gaining focus, this is the component that is losing focus. If the component is losing focus this is the component that is gaining the focus instead.
 
- 
maximumLengthChanged
public void maximumLengthChanged(TextArea textArea, int previousMaximumLength)
Description copied from interface:TextAreaListenerCalled when a text area's maximum length has changed.- Specified by:
 maximumLengthChangedin interfaceTextAreaListener- Parameters:
 textArea- The source of this event.previousMaximumLength- What the maximum length used to be.
 
- 
editableChanged
public void editableChanged(TextArea textArea)
Description copied from interface:TextAreaListenerCalled when a text area's editable state has changed.- Specified by:
 editableChangedin interfaceTextAreaListener- Parameters:
 textArea- The source of this event.
 
- 
paragraphInserted
public void paragraphInserted(TextArea textArea, int index)
Description copied from interface:TextAreaContentListenerCalled when a paragraph has been inserted into a text area's paragraph sequence.- Specified by:
 paragraphInsertedin interfaceTextAreaContentListener- Parameters:
 textArea- The source of the event.index- The index at which the paragraph was inserted.
 
- 
paragraphsRemoved
public void paragraphsRemoved(TextArea textArea, int index, Sequence<TextArea.Paragraph> removed)
Description copied from interface:TextAreaContentListenerCalled when paragraphs have been removed from a text area's paragraph sequence.- Specified by:
 paragraphsRemovedin interfaceTextAreaContentListener- Parameters:
 textArea- The source of the event.index- The starting index from which the paragraphs were removed.removed- The paragraphs that were removed.
 
- 
textChanged
public void textChanged(TextArea textArea)
Description copied from interface:TextAreaContentListenerCalled when a text area's text has changed.- Specified by:
 textChangedin interfaceTextAreaContentListener- Parameters:
 textArea- The source of the event.
 
- 
selectionChanged
public void selectionChanged(TextArea textArea, int previousSelectionStart, int previousSelectionLength)
Description copied from interface:TextAreaSelectionListenerCalled when a text area's selection state has changed.- Specified by:
 selectionChangedin interfaceTextAreaSelectionListener- Parameters:
 textArea- The source of this event.previousSelectionStart- Where the selection used to start.previousSelectionLength- The previous selection length.
 
 - 
 
 -