org.kalmeo.kuix.widget
Class TextArea

java.lang.Object
  extended by org.kalmeo.kuix.widget.Widget
      extended by org.kalmeo.kuix.widget.FocusableWidget
          extended by org.kalmeo.kuix.widget.TextWidget
              extended by org.kalmeo.kuix.widget.TextArea

public class TextArea
extends TextWidget

This class represents a textarea.

For further informations, visit the Kuix widgets reference page.

Author:
bbeaulant

Nested Class Summary
 
Nested classes/interfaces inherited from class org.kalmeo.kuix.widget.Widget
Widget.BindInstruction
 
Field Summary
 
Fields inherited from class org.kalmeo.kuix.widget.TextWidget
text
 
Fields inherited from class org.kalmeo.kuix.widget.FocusableWidget
DISABLED_PSEUDO_CLASS, enabled, focusable, focused, HOVER_PSEUDO_CLASS, PSEUDO_CLASSES
 
Fields inherited from class org.kalmeo.kuix.widget.Widget
bindInstructions, DEFAULT_ALIGN, DEFAULT_BACKGROUND_ALIGN, DEFAULT_BACKGROUND_REPEAT, DEFAULT_BORDER, DEFAULT_GAP, DEFAULT_MARGIN, DEFAULT_MIN_SIZE, DEFAULT_PADDING, DEFAULT_SPAN, DEFAULT_WEIGHT, next, parent, previous
 
Constructor Summary
TextArea()
          Construct a TextArea
 
Method Summary
 void clearCachedStyle(boolean clearCachedStyle)
          Clear the cachedStyle.
 Gap getGap()
          Returns the gap value.
 Layout getLayout()
           
 Metrics getPreferredSize(int preferredWidth)
          Returns the prefered size of this Widget
 boolean isStyled()
           
protected  void paintChildrenImpl(Graphics g)
          Invoke the paintImpl method on widget's children.
protected  void propagateFocusEvent(Widget focusedWidget, boolean lost)
          Propagate focus lost or gain event to widget's children.
 boolean setAttribute(java.lang.String name, java.lang.String value)
          Set the value to the specified attribute representing by the name
 void setStyled(boolean styled)
           
 TextWidget setText(java.lang.String text)
          Returns the instance of this TextWidget Useful in this case : AbstractTextWidget text = new Text().setText("message");
 
Methods inherited from class org.kalmeo.kuix.widget.TextWidget
getAttribute, getDefaultStylePropertyValue, getDisplayedText, getFont, getText, isFocusable, setDefaultFontFace, setDefaultFontSize, setDefaultFontStyle
 
Methods inherited from class org.kalmeo.kuix.widget.FocusableWidget
getAvailablePseudoClasses, getOnFocus, getOnLostFocus, giveFocusToNearestWidget, isEnabled, isFocused, isPseudoClassCompatible, onAdded, processFocusEvent, processPointerEvent, remove, requestFocus, setEnabled, setFocusable, setOnFocus, setOnLostFocus, setVisible
 
Methods inherited from class org.kalmeo.kuix.widget.Widget
add, add, bringNear, bringToFront, catchChildrenFrom, cleanUp, cleanUpChildren, doLayout, getAlign, getAuthorStyle, getBackgroundAlign, getBackgroundColor, getBackgroundImage, getBackgroundRepeat, getBorder, getBorderAlign, getBorderColor, getBorderImage, getBorderStroke, getCachedMetrics, getChild, getColor, getDataProvider, getDesktop, getDisplayX, getDisplayY, getFocusManager, getGrayedColor, getHeight, getId, getInheritedTag, getInnerHeight, getInnerWidth, getInsets, getInternalChildInstance, getLastChild, getLayoutData, getMargin, getMinSize, getOtherFocus, getPadding, getSpan, getStyleClasses, getStylePropertyValue, getStyles, getTag, getWeight, getWidget, getWidgetAt, getWidgetAt, getWidth, getX, getY, hasBindInstruction, hasShortcutKeyCodes, hasShortcuts, invalidate, invalidate, invalidateAppearance, invalidateAppearanceRegion, invalidateStylePropertiesCache, isFocusWidgetChild, isIndividualyVisible, isInvalidated, isInWidgetTree, isObjectAttribute, isShortcutKeyCodeCompatible, isVisible, markAsValidate, needToComputePreferredSize, onChildAdded, onChildRemoved, onFocus, onLostFocus, onRemoved, paint, paintBackground, paintBorder, paintImpl, paintMosaicImage, parseAuthorStyle, processActionEvent, processDataBindEvent, processItemsModelUpdateEvent, processKeyEvent, processModelUpdateEvent, processShortcutKeyEvent, removeAll, removeAttributeBindInstruction, requestBackwardFocus, requestForwardFocus, sendToBack, setAttributeBindInstruction, setAuthorStyle, setBounds, setDataProvider, setId, setObjectAttribute, setShortcutKeyCodes, setShortcuts, setStyleClass, setStyleClasses
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextArea

public TextArea()
Construct a TextArea

Method Detail

setAttribute

public boolean setAttribute(java.lang.String name,
                            java.lang.String value)
Description copied from class: Widget
Set the value to the specified attribute representing by the name

Overrides:
setAttribute in class TextWidget
Returns:
true if the attribute exists

setText

public TextWidget setText(java.lang.String text)
Description copied from class: TextWidget
Returns the instance of this TextWidget Useful in this case : AbstractTextWidget text = new Text().setText("message");

Overrides:
setText in class TextWidget
Parameters:
text - the text to set

isStyled

public boolean isStyled()
Returns:
the styled

setStyled

public void setStyled(boolean styled)
Parameters:
styled - the styled to set

getLayout

public Layout getLayout()
Overrides:
getLayout in class Widget
Returns:
the layout

getPreferredSize

public Metrics getPreferredSize(int preferredWidth)
Description copied from class: Widget
Returns the prefered size of this Widget

Overrides:
getPreferredSize in class Widget
Returns:
The prefered size of this Widget

getGap

public Gap getGap()
Description copied from class: Widget
Returns the gap value. The gape represents the horizontal and vertical space between widget's children.

Overrides:
getGap in class Widget
Returns:
the gap

paintChildrenImpl

protected void paintChildrenImpl(Graphics g)
Description copied from class: Widget
Invoke the paintImpl method on widget's children.

Overrides:
paintChildrenImpl in class Widget

clearCachedStyle

public void clearCachedStyle(boolean clearCachedStyle)
Description copied from class: Widget
Clear the cachedStyle.

Overrides:
clearCachedStyle in class TextWidget

propagateFocusEvent

protected void propagateFocusEvent(Widget focusedWidget,
                                   boolean lost)
Description copied from class: Widget
Propagate focus lost or gain event to widget's children.

Overrides:
propagateFocusEvent in class Widget


Copyright © 2007-2008 Kalmeo. All Rights Reserved.