Package nl.gx.webmanager.cms.element
Interface AnchorItem
-
- All Superinterfaces:
Wrapper
public interface AnchorItem extends Wrapper
The AnchorElement displays links to AnchorItems. An AnchorItem is associated with an Element on the page and has a title and a name that is used for the html anchor. The html representation of an ancor usually looks like this:<a href="#anchorname">title<a> ..... <p id="anchorname">Hello World</p>
In this html example anchorname is the name of the anchor, the element it points to is a paragraph and title is the text that is displayed in the link.- See Also:
AnchorElement
,Element
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Element
getElement()
Returns the element to which this AnchorItem is linked.String
getName()
Returns the html anchor name used after the #-sign.String
getTitle()
Return the text that is displayed in the AnchorElement.void
setName(String name)
Sets the HTML anchor name used after the #-sign.
-
-
-
Method Detail
-
getTitle
String getTitle()
Return the text that is displayed in the AnchorElement.- Returns:
- the text that is displayed in the AnchorElement.
-
getElement
Element getElement()
Returns the element to which this AnchorItem is linked.- Returns:
- the element to which this AnchorItem is linked.
-
getName
String getName()
Returns the html anchor name used after the #-sign.- Returns:
- the html anchor name used after the #-sign.
-
setName
void setName(String name)
Sets the HTML anchor name used after the #-sign.- Parameters:
name
- the HTML anchor name used after the #-sign
-
-