|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
org.havi.ui.HComponent
org.havi.ui.HVisible
org.havi.ui.HStaticText
public class HStaticText
The HStaticText
is a user interface
component used to display static read-only textual content which
does not permit the user to navigate (focus) upon it. By
default it uses the HTextLook
to render
itself.
Parameter | Description | Default value | Set method | Get method |
---|---|---|---|---|
x | x-coordinate of top left hand corner of this component in pixels, relative to its parent container (subject to layout management). | --- | java.awt.Component#setBounds | java.awt.Component#getBounds |
y | y-coordinate of top left hand corner of this component in pixels, relative to its parent container (subject to layout management). | --- | java.awt.Component#setBounds | java.awt.Component#getBounds |
width | width of this component in pixels (subject to layout management). | --- | java.awt.Component#setBounds | java.awt.Component#getBounds |
height | height of this component in pixels (subject to layout management). | --- | java.awt.Component#setBounds | java.awt.Component#getBounds |
textNormal | The string to be used as the content for the HState.NORMAL_STATE state of this
component. |
null | setTextContent |
getTextContent |
tlm | The text layout manager responsible for text formatting. | An HDefaultTextLayoutManager object. |
setTextLayoutManager |
getTextLayoutManager |
font | The font for this component. | --- | java.awt.Component#setFont |
java.awt.Component#getFont |
background | The background color for this component. | --- | java.awt.Component#getBackground |
java.awt.Component#setBackground |
foreground | The foreground color for this component. | --- | java.awt.Component#getForeground |
java.awt.Component#setForeground |
HDefaultTextLayoutManager
,
HTextLayoutManager
,
Serialized FormField Summary |
---|
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface org.havi.ui.HState |
---|
ACTIONED_FOCUSED_STATE, ACTIONED_STATE, ACTIONED_STATE_BIT, ALL_STATES, DISABLED_ACTIONED_FOCUSED_STATE, DISABLED_ACTIONED_STATE, DISABLED_FOCUSED_STATE, DISABLED_STATE, DISABLED_STATE_BIT, FIRST_STATE, FOCUSED_STATE, FOCUSED_STATE_BIT, LAST_STATE, NORMAL_STATE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
HStaticText()
Creates an HStaticText
object. |
|
HStaticText(java.lang.String textNormal)
Creates an HStaticText
object. |
|
HStaticText(java.lang.String textNormal,
java.awt.Font font,
java.awt.Color foreground,
java.awt.Color background,
HTextLayoutManager tlm)
Creates an HStaticText
object. |
|
HStaticText(java.lang.String textNormal,
int x,
int y,
int width,
int height)
Creates an HStaticText
object. |
|
HStaticText(java.lang.String textNormal,
int x,
int y,
int width,
int height,
java.awt.Font font,
java.awt.Color foreground,
java.awt.Color background,
HTextLayoutManager tlm)
Creates an HStaticText
object. |
Method Summary | |
---|---|
static HTextLook |
getDefaultLook()
Returns the currently set default HLook for HStaticText
components. |
static void |
setDefaultLook(HTextLook hlook)
Sets the default HLook for further
HStaticText Components. |
void |
setLook(HLook hlook)
Sets the HLook for this component. |
Methods inherited from class org.havi.ui.HComponent |
---|
getMatte, isDoubleBuffered, isEnabled, setMatte |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isFocusable, isFocusCycleRoot, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HStaticText()
HStaticText
object. See the class description for details of constructor
parameters and default values. For constructors which specify
content as parameters, see 'State-based content' in HVisible for
unspecified content associated with other HStates.
public HStaticText(java.lang.String textNormal, int x, int y, int width, int height)
HStaticText
object. See the class description for details of constructor
parameters and default values. For constructors which specify
content as parameters, see 'State-based content' in HVisible for
unspecified content associated with other HStates.
public HStaticText(java.lang.String textNormal, int x, int y, int width, int height, java.awt.Font font, java.awt.Color foreground, java.awt.Color background, HTextLayoutManager tlm)
HStaticText
object. See the class description for details of constructor
parameters and default values. For constructors which specify
content as parameters, see 'State-based content' in HVisible for
unspecified content associated with other HStates.
public HStaticText(java.lang.String textNormal)
HStaticText
object. See the class description for details of constructor
parameters and default values. For constructors which specify
content as parameters, see 'State-based content' in HVisible for
unspecified content associated with other HStates.
public HStaticText(java.lang.String textNormal, java.awt.Font font, java.awt.Color foreground, java.awt.Color background, HTextLayoutManager tlm)
HStaticText
object. See the class description for details of constructor
parameters and default values. For constructors which specify
content as parameters, see 'State-based content' in HVisible for
unspecified content associated with other HStates.
Method Detail |
---|
public void setLook(HLook hlook) throws HInvalidLookException
HLook
for this component.
setLook
in class HVisible
hlook
- The HLook
that is to be
used for this component.
Note that this parameter may be null, in which case the
component will not draw itself until a look is set.
HInvalidLookException
- if the Look is not an HTextLook
.public static void setDefaultLook(HTextLook hlook)
HLook
for further
HStaticText
Components.
hlook
- The HLook
that will be
used by default when creating a new HStaticText
component.
Note that this parameter may be null, in which case newly
created components shall not draw themselves until a non-null
look is set using the setLook
method.public static HTextLook getDefaultLook()
HLook
for HStaticText
components.
HLook
that is used by
default when creating a new HStaticText
component.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |