Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package org.havi.ui;
/*
* Copyright 2000-2003 by HAVi, Inc. Java is a trademark of Sun
* Microsystems, Inc. All rights reserved.
*/
import java.awt.Color;
import java.awt.Font;
/**
The {@link org.havi.ui.HStaticText 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 {@link org.havi.ui.HTextLook HTextLook} to render
itself.
The parameters to the constructors are as follows, in cases where
parameters are not used, then the constructor should use the default
values.
Default parameter values exposed in the constructors
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 {@link
org.havi.ui.HState#NORMAL_STATE HState.NORMAL_STATE} state of this
component.
@see HDefaultTextLayoutManager
@see HTextLayoutManager
*/
public class HStaticText
extends HVisible
implements HNoInputPreferred
{
/**
* Creates an {@link org.havi.ui.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()
{
}
/**
* Creates an {@link org.havi.ui.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(String textNormal, int x, int y, int width, int height)
{
}
/**
* Creates an {@link org.havi.ui.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(String textNormal, int x, int y, int width, int height,
Font font, Color foreground, Color background,
HTextLayoutManager tlm)
{
}
/**
* Creates an {@link org.havi.ui.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(String textNormal)
{
}
/**
* Creates an {@link org.havi.ui.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(String textNormal, Font font, Color foreground,
Color background, HTextLayoutManager tlm)
{
}
/**
* Sets the {@link org.havi.ui.HLook HLook} for this component.
*
* @param hlook The {@link org.havi.ui.HLook 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.
* @exception HInvalidLookException if the Look is not an {@link
* org.havi.ui.HTextLook HTextLook}.
*/
public void setLook(HLook hlook)
throws HInvalidLookException
{
}
/**
* Sets the default {@link org.havi.ui.HLook HLook} for further
* {@link org.havi.ui.HStaticText HStaticText} Components.
*
* @param hlook The {@link org.havi.ui.HLook HLook} that will be
* used by default when creating a new {@link
* org.havi.ui.HStaticText 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 {@link
* org.havi.ui.HStaticText#setLook setLook} method.
*/
public static void setDefaultLook(HTextLook hlook)
{
}
/**
* Returns the currently set default {@link org.havi.ui.HLook
* HLook} for {@link org.havi.ui.HStaticText HStaticText}
* components.
*
* @return The {@link org.havi.ui.HLook HLook} that is used by
* default when creating a new {@link org.havi.ui.HStaticText
* HStaticText} component.
*/
public static HTextLook getDefaultLook()
{
return (null);
}
}