|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnextapp.echo.app.Component
echopoint.Anchor
public class Anchor
A component that represents a HTML anchor tag. This component makes it
easier to create regular HTML links without having to configure a Button component and an associated action listener. You
can create a raw anchor tag using AbstractHtmlComponent
implementations, but may find configuring styles not as convenient.
Note: Since anchor tags cannot be fully styled using in-line styles, this component does not offer the ability to configure styles for hover, active or visited.
The following shows sample usage of this component:
import echopoint.Anchor;
import nextapp.echo.app.Color;
import nextapp.echo.app.Extent;
import nextapp.echo.app.Font;
...
final Anchor anchor = new Anchor();
anchor.setUri( "https://echopoint.dev.java.net/" );
anchor.setColor( new Color( 0x2f2f4f );
anchor.setFont( new Font( Font.HELVETICA, Font.BOLD, new Extent( 10 ) ) );
container.add( anchor );
| Nested Class Summary | |
|---|---|
static class |
Anchor.Target
The options for specifying the PROPERTY_TARGET property. |
| Field Summary | |
|---|---|
static String |
PROPERTY_TARGET
The target for the anchor tag. |
static String |
PROPERTY_TEXT
The text that is to be hyper-linked. |
static String |
PROPERTY_TOOL_TIP_TEXT
The tooltip (title) for the anchor tag. |
static String |
PROPERTY_URI
The destination URI to which the anchor tag points. |
| Constructor Summary | |
|---|---|
Anchor()
|
|
| Method Summary | |
|---|---|
String |
getTarget()
Return the target attribute for the anchor tag. |
String |
getText()
Return the text that is to be hyper-linked. |
String |
getToolTipText()
Return the tool tip text displayed for the anchor tag. |
String |
getUri()
Return the URI to which the anchor tag points. |
void |
setTarget(Anchor.Target target)
Set the value for the target attribute to be applied to the anchor tag. |
void |
setTarget(String target)
Set the value for the target attribute to be applied to the anchor tag. |
void |
setText(String text)
Set the value of the text that is to be displayed as hyper-linked. |
void |
setToolTipText(String toolTipText)
Set the value of the tool tip text that is to be displayed. |
void |
setUri(String uri)
Set the value of the URI to which the the anchor tag points. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTY_TARGET
public static final String PROPERTY_TEXT
public static final String PROPERTY_TOOL_TIP_TEXT
public static final String PROPERTY_URI
| Constructor Detail |
|---|
public Anchor()
| Method Detail |
|---|
public String getTarget()
public void setTarget(String target)
target - The value to set.setTarget(echopoint.Anchor.Target)public void setTarget(Anchor.Target target)
target - The value to set.public String getText()
public void setText(String text)
text - The value to set.public String getToolTipText()
public void setToolTipText(String toolTipText)
toolTipText - The value to set.public String getUri()
public void setUri(String uri)
uri - The value to set.
|
EchoPoint API - 3.0.0b5 App Webcontainer |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||