|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wings.SComponent
org.wings.SContainer
org.wings.SAnchor
public class SAnchor
Container used to force a HTML Link.
Creates a 'normal' <a href="http://whatever/">...</a> HTML link around some components that are stored in the container.
| Field Summary | |
|---|---|
protected String |
target
the target frame/window. |
protected SimpleURL |
url
the URL to link to. |
| Fields inherited from class org.wings.SComponent |
|---|
DONE_RENDERING, dynamicStyles, enabled, propertyChangeSupport, SELECTOR_ALL, START_RENDERING, visible, WHEN_FOCUSED_OR_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_FRAME |
| Constructor Summary | |
|---|---|
SAnchor()
creates an anchor with emtpy URL and target. |
|
SAnchor(SimpleURL url,
String target)
creates an anchor that points to the URL and is openend in the frame or window named target. |
|
SAnchor(String url)
create an anchor that points to the URL url. |
|
SAnchor(String url,
String target)
creates an anchor that points to the URL and is openend in the frame or window named target. |
|
| Method Summary | |
|---|---|
String |
getTarget()
get the name of the target frame/window. |
SimpleURL |
getURL()
get the url the anchor points to. |
void |
setCG(AnchorCG cg)
|
void |
setTarget(String t)
set the name of the target frame/window. |
void |
setURL(SimpleURL r)
set the url this anchor points to. |
void |
setURL(String url)
set the url this anchor points to. |
void |
setURL(URL ref)
set the url this anchor points to. |
| Methods inherited from class org.wings.SContainer |
|---|
add, add, add, add, addComponent, addComponent, addComponent, addComponent, addContainerListener, addNotify, clone, fireContainerEvent, getComponent, getComponentCount, getComponentList, getComponents, getConstraintAt, getConstraintList, getLayout, invite, inviteEachComponent, isShowingChildren, processContainerEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setCG, setLayout, setParentFrame, updateCG |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected SimpleURL url
protected String target
| Constructor Detail |
|---|
public SAnchor()
public SAnchor(String url)
url - the url to point to.
public SAnchor(String url,
String target)
url - the url to link to.target - the target window or frame.
public SAnchor(SimpleURL url,
String target)
url - the url to link to.target - the target window or frame.| Method Detail |
|---|
public void setURL(URL ref)
ref - the url.public void setURL(SimpleURL r)
r - the url.public void setURL(String url)
url - the url.public void setTarget(String t)
public String getTarget()
public SimpleURL getURL()
public void setCG(AnchorCG cg)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||