Package org.apache.pivot.wtk.skin.terra
Class TerraTextAreaSkin
- java.lang.Object
-
- org.apache.pivot.wtk.skin.ComponentSkin
-
- org.apache.pivot.wtk.skin.TextAreaSkin
-
- org.apache.pivot.wtk.skin.terra.TerraTextAreaSkin
-
- All Implemented Interfaces:
ComponentKeyListener
,ComponentListener
,ComponentMouseButtonListener
,ComponentMouseListener
,ComponentMouseWheelListener
,ComponentStateListener
,ComponentTooltipListener
,ConstrainedVisual
,Skin
,TextArea.Skin
,TextAreaContentListener
,TextAreaListener
,TextAreaSelectionListener
,Visual
public class TerraTextAreaSkin extends TextAreaSkin
Terra TextArea skin. Deals with colors that depend on the current theme.
-
-
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 TerraTextAreaSkin()
Specific constructor with nothing to do.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setBackgroundColor(int backgroundColor)
Set the background color to the given theme color.void
setColor(int color)
Set the foreground color to the given theme color.void
setInactiveColor(int inactiveColor)
Set the inactive color to the given theme color.void
setInactiveSelectionBackgroundColor(int inactiveSelectionBackgroundColor)
Set the inactive selection background color to the given theme color.void
setInactiveSelectionColor(int inactiveSelectionColor)
Set the inactive selection color to the given theme color.void
setSelectionBackgroundColor(int selectionBackgroundColor)
Set the selection background color to the given theme color.void
setSelectionColor(int selectionColor)
Set the selection color to the given theme color.-
Methods inherited from class org.apache.pivot.wtk.skin.TextAreaSkin
editableChanged, enabledChanged, focusedChanged, getAcceptsEnter, getAcceptsTab, getBackgroundColor, getBaseline, getCharacterBounds, getColor, getFont, getInactiveColor, getInactiveSelectionBackgroundColor, getInactiveSelectionColor, getInsertionPoint, getLineWidth, getMargin, getNextInsertionPoint, getPreferredHeight, getPreferredSize, getPreferredWidth, getRowAt, getRowCount, getRowLength, getRowOffset, getSelection, getSelectionBackgroundColor, getSelectionColor, getTabWidth, getTextArea, getWrapText, install, isOpaque, keyPressed, keyTyped, layout, maximumLengthChanged, mouseClick, mouseDown, mouseMove, mouseUp, paint, paragraphInserted, paragraphsRemoved, selectionChanged, setAcceptsEnter, setAcceptsTab, setBackgroundColor, setBackgroundColor, setColor, setColor, setFont, setFont, setFont, setInactiveColor, setInactiveColor, setInactiveSelectionBackgroundColor, setInactiveSelectionBackgroundColor, setInactiveSelectionColor, setInactiveSelectionColor, setLineWidth, setMargin, setMargin, setMargin, setMargin, setMargin, setMargin, setSelectionBackgroundColor, setSelectionBackgroundColor, setSelectionColor, setSelectionColor, setTabWidth, setWrapText, textChanged
-
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
-
-
-
-
Constructor Detail
-
TerraTextAreaSkin
public TerraTextAreaSkin()
Specific constructor with nothing to do.Default colors, etc. set by call to
TerraTheme.setDefaultStyles(T)
fromTextAreaSkin.install(org.apache.pivot.wtk.Component)
.
-
-
Method Detail
-
setColor
public final void setColor(int color)
Set the foreground color to the given theme color.- Parameters:
color
- The theme color index for the foreground color.
-
setInactiveColor
public final void setInactiveColor(int inactiveColor)
Set the inactive color to the given theme color.- Parameters:
inactiveColor
- The theme color index for the inactive color.
-
setBackgroundColor
public final void setBackgroundColor(int backgroundColor)
Set the background color to the given theme color.- Parameters:
backgroundColor
- The theme color index for the background color.
-
setSelectionColor
public final void setSelectionColor(int selectionColor)
Set the selection color to the given theme color.- Parameters:
selectionColor
- The theme color index for the selection color.
-
setSelectionBackgroundColor
public final void setSelectionBackgroundColor(int selectionBackgroundColor)
Set the selection background color to the given theme color.- Parameters:
selectionBackgroundColor
- The theme color index for the selection background color.
-
setInactiveSelectionColor
public final void setInactiveSelectionColor(int inactiveSelectionColor)
Set the inactive selection color to the given theme color.- Parameters:
inactiveSelectionColor
- The theme color index for the inactive selection color.
-
setInactiveSelectionBackgroundColor
public final void setInactiveSelectionBackgroundColor(int inactiveSelectionBackgroundColor)
Set the inactive selection background color to the given theme color.- Parameters:
inactiveSelectionBackgroundColor
- The theme color index for the inactive selection background color.
-
-