thinwire.ui
Interface AlignTextComponent

All Superinterfaces:
Component, TextComponent
All Known Subinterfaces:
EditorComponent, MaskEditorComponent
All Known Implementing Classes:
DropDown, DropDownDateBox, DropDownGridBox, Label, TextArea, TextField

public interface AlignTextComponent
extends TextComponent


Nested Class Summary
static class AlignTextComponent.AlignX
          AlignX handles text alignment in screen elements.
 
Field Summary
static java.lang.String PROPERTY_ALIGN_X
           
 
Fields inherited from interface thinwire.ui.TextComponent
PROPERTY_TEXT
 
Fields inherited from interface thinwire.ui.Component
ACTION_CLICK, ACTION_DOUBLE_CLICK, PROPERTY_ENABLED, PROPERTY_FOCUS, PROPERTY_FOCUS_CAPABLE, PROPERTY_HEIGHT, PROPERTY_LIMIT, PROPERTY_USER_OBJECT, PROPERTY_VISIBLE, PROPERTY_WIDTH, PROPERTY_X, PROPERTY_Y
 
Method Summary
 AlignTextComponent.AlignX getAlignX()
          Get this label's text justification
 void setAlignX(AlignTextComponent.AlignX alignX)
          Sets the text justification of the label (left, right, or center).
 
Methods inherited from interface thinwire.ui.TextComponent
getText, setText
 
Methods inherited from interface thinwire.ui.Component
addActionListener, addActionListener, addDropListener, addDropListener, addKeyPressListener, addKeyPressListener, addPropertyChangeListener, addPropertyChangeListener, fireAction, fireAction, fireAction, fireDrop, fireDrop, fireDrop, fireKeyPress, fireKeyPress, getContainer, getHeight, getLabel, getLimit, getParent, getStyle, getUserObject, getWidth, getX, getY, isEnabled, isFocus, isFocusCapable, isVisible, removeActionListener, removeDropListener, removeKeyPressListener, removePropertyChangeListener, setBounds, setEnabled, setFocus, setFocusCapable, setHeight, setLimit, setPosition, setSize, setUserObject, setVisible, setWidth, setX, setY
 

Field Detail

PROPERTY_ALIGN_X

static final java.lang.String PROPERTY_ALIGN_X
See Also:
Constant Field Values
Method Detail

getAlignX

AlignTextComponent.AlignX getAlignX()
Get this label's text justification

Returns:
this label's text justification

setAlignX

void setAlignX(AlignTextComponent.AlignX alignX)
Sets the text justification of the label (left, right, or center).

Parameters:
alignX - (Default = AlignX.LEFT)
Throws:
java.lang.IllegalArgumentException - if alignX is null


ThinWire® is a registered of Custom Credit Systems  Copyright © 2007 All rights reserved.
ThinWire_is_Open_Source_under_the_terms_of_the_LGPLv2.1 SourceForge.net_Project_Page java.net_Member Support_ThinWire,_Digg_our_Story