|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kalmeo.kuix.widget.Widget
org.kalmeo.kuix.widget.FocusableWidget
org.kalmeo.kuix.widget.TextWidget
org.kalmeo.kuix.widget.TextArea
public class TextArea
This class represents a textarea.
For further informations, visit the Kuix widgets reference page.
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextArea()
TextArea
Method Detail |
---|
public boolean setAttribute(java.lang.String name, java.lang.String value)
Widget
value
to the specified attribute representing by
the name
setAttribute
in class TextWidget
true
if the attribute existspublic TextWidget setText(java.lang.String text)
TextWidget
TextWidget
Useful in this case :
AbstractTextWidget text = new Text().setText("message");
setText
in class TextWidget
text
- the text to setpublic boolean isStyled()
public void setStyled(boolean styled)
styled
- the styled to setpublic Layout getLayout()
getLayout
in class Widget
public Metrics getPreferredSize(int preferredWidth)
Widget
Widget
getPreferredSize
in class Widget
Widget
public Gap getGap()
Widget
getGap
in class Widget
protected void paintChildrenImpl(Graphics g)
Widget
paintImpl
method on widget's children.
paintChildrenImpl
in class Widget
public void clearCachedStyle(boolean clearCachedStyle)
Widget
clearCachedStyle
in class TextWidget
protected void propagateFocusEvent(Widget focusedWidget, boolean lost)
Widget
propagateFocusEvent
in class Widget
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |