|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.gui.AbstractComponent
com.groiss.gui.component.Link
public class Link
A HTML link element (a).
| Field Summary | |
|---|---|
protected String |
text
|
| Fields inherited from class com.groiss.gui.AbstractComponent |
|---|
actions, ACTIVE, browserMode, DEFAULT, ID, IE, INVISIBLE, isSensitive, label, NS, ON_BLUR, ON_CHANGE, ON_CLICK, ON_DBLCLICK, ON_FOCUS, ON_KEY_DOWN, ON_KEY_PRESS, ON_KEY_UP, ON_LOAD, ON_MOUSE_DOWN, ON_MOUSE_MOVE, ON_MOUSE_OUT, ON_MOUSE_UP, ON_RESET, ON_SELECT, ON_SUBMIT, ON_UNLOAD, outputter, parent, parentElem, READONLY, root, viewMode |
| Constructor Summary | |
|---|---|
Link()
Constructs a new empty link. |
|
Link(String href,
Component text)
|
|
Link(String href,
Component text,
String target,
String styleClass)
|
|
Link(String href,
org.jdom.Content text)
|
|
Link(String href,
Object[] text)
|
|
Link(String href,
String text)
|
|
Link(String href,
String text,
String target)
Constructor with text, url and target. |
|
Link(String href,
String text,
String target,
String styleClass)
Constructor with text, url, target, and style. |
|
Link(String href,
String text,
String target,
String styleClass,
String id)
Constructor with text, url, target, style, and id. |
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
|
Object |
getContent()
Set the href attribute. |
String |
getHref()
|
String |
getTarget()
|
String |
getText()
|
void |
setContent(Object o)
Set the href attribute. |
void |
setHref(String href)
sets the link url |
void |
setTarget(String target)
sets the target where the link will open |
void |
setText(Component text)
|
void |
setText(String text)
sets the text |
| Methods inherited from class com.groiss.gui.AbstractComponent |
|---|
clone, create, getActionListener, getAttribute, getBrowserMode, getId, getLabel, getName, getParent, getParentElement, getRoot, getRootName, getStyle, getViewMode, init, init, init, removeAttribute, setActionListener, setAttribute, setBrowserMode, setEncoding, setExpandEmptyElements, setId, setIndenting, setLabel, setName, setNewLines, setParent, setParentElement, setRootName, setStyle, setViewMode, show, show, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String text
| Constructor Detail |
|---|
public Link()
public Link(String href,
String text)
public Link(String href,
Object[] text)
public Link(String href,
Component text)
public Link(String href,
org.jdom.Content text)
public Link(String href,
String text,
String target)
href - the url of the linktext - the description of the linktarget - the target where the link will open
public Link(String href,
String text,
String target,
String styleClass)
href - the url of the linktext - the description of the linktarget - the target where the link will openstyleClass - the name of a CSS class
public Link(String href,
Component text,
String target,
String styleClass)
public Link(String href,
String text,
String target,
String styleClass,
String id)
href - the url of the linktext - the description of the linktarget - the target where the link will openstyleClass - the name of a CSS classid - the uniqe element id| Method Detail |
|---|
public void setHref(String href)
href - the urlpublic String getHref()
public void setText(String text)
text - - the text Stringpublic void setText(Component text)
public String getText()
public void setTarget(String target)
target - - the targetpublic String getTarget()
public void setContent(Object o)
setContent in interface ComponentsetContent in class AbstractComponento - - any object where the string representation is used for renderingpublic Object getContent()
getContent in interface ComponentgetContent in class AbstractComponent
public int compareTo(Object o)
throws ClassCastException
compareTo in interface ComparableClassCastException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||