public class BasicLink extends FlowObjectWithElements implements InlineElement
EMPTY_ARRAY
MAP_TYPE_FLYWEIGHT, MAP_TYPE_HASH
Constructor and Description |
---|
BasicLink()
Creates a new empty BasicLink.
|
BasicLink(InlineElement inline,
FormattingObject internalDestination)
Creates a new BasicLink, adds an Inline and sets an internal destination.
|
BasicLink(InlineElement inline,
java.lang.String externalDestination)
Creates a new BasicLink, adds an inline and sets an external destination.
|
BasicLink(java.lang.String text)
Creates a new BasicLink and adds some text.
|
BasicLink(java.lang.String text,
FormattingObject internalDestination)
Creates a new BasicLink, adds some text and sets an internal destination.
|
BasicLink(java.lang.String text,
java.lang.String externalDestination)
Creates a new BasicLink, adds some text and sets an external destination.
|
Modifier and Type | Method and Description |
---|---|
BasicLink |
add(BlockElement element)
Adds an formatting object (that is a block-group-member) to this FO
at end.
|
BasicLink |
add(InlineElement element)
Adds an formatting object (that is an inline-group-member) to this FO
at end.
|
BasicLink |
add(int idx,
BlockElement element)
Adds an formatting object (that is a block-group-member) to this FO
at the given index.
|
BasicLink |
add(int idx,
InlineElement element)
Adds an formatting object (that is an inline-group-member) to this FO
at the given index.
|
BasicLink |
add(int idx,
java.lang.String pcdata)
Adds PCdata (Text) to this FO at the given index.
|
BasicLink |
add(java.lang.String pcdata)
Adds PCdata (Text) to this FO.
|
Accessibility |
getAccessibility()
Gets the accessibilty of this fo.
|
Background |
getBackground()
Gets the background of this fo.
|
Border |
getBorder()
Gets the border of this fo.
|
java.lang.String |
getExternalDestinaion()
Gets the external destination.
|
java.lang.String |
getInternalDestinaion()
Gets the internal destination.
|
Padding |
getPadding()
Gets the padding of this fo.
|
RelativePosition |
getRelativePosition()
Gets the relative position of this fo.
|
boolean |
hasBorder()
Returns true if at least one border attribute is set.
|
void |
setAccessibility(Accessibility access)
Sets the accessibility of this fo.
|
void |
setBackground(Background bg)
Sets the background of this fo.
|
void |
setBorder(Border border)
Sets the border of this fo.
|
void |
setExternalDestination(java.lang.String dest)
Sets the external destination of this link.
|
void |
setInternalDestination(FormattingObject dest)
Sets the internal destination of this link.
|
void |
setInternalDestination(java.lang.String dest)
Sets the internal destination of this link.
|
void |
setPadding(Padding padding)
Sets the padding of this fo.
|
void |
setRelativePosition(RelativePosition pos)
Sets the relative position of this fo.
|
add, add, add, add, addAllImpl, addAllUnsafe, addAllUnsafe, addElement, addElement, addElements, addElements, addUnsafe, addUnsafe, clone, firstElement, getElements, isEmpty, lastElement, remove, remove, removeAll, removeElement, removeElement, removeLast, replaceElement, setElement
cloned, clonedList, createUniqueID, doGetAttribute, doSetAttribute, elementCount, get, getAbsolutePosition, getAttributeMap, getDefinedAttributes, getDocument, getFont, getID, getLanguage, getLogger, getMargin, getMeasureValue, getObjectValue, getObjectValue, getObjectValue, getObjectValue, getOrphans, getParentFO, getWidows, hasID, hasPadding, isHyphenation, setAbsolutePosition, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setFont, setHyphenation, setID, setLanguage, setLanguage, setMargin, setOrphans, setWidows
getDefaultMapType, setDefaultMapType
addAttributeChangeListener, clearEqualAttributes, clearInheratedAttribute, clearInheratedAttributes, clearValue, contains, contains, copyAttributes, createID, findFirstNodeWithText, findNode, findNodesWithText, fire, fireSaxEvents, getAttrAsBoolean, getAttrAsInteger, getAttrAsString, getAttrAsString, getAttribute, getAttribute, getAttributeMap, getContentText, getContentText, getDefinedAttributes, getElements, getElements, getElements, getFirstElement, getIndex, getLocalName, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getParent, getParent, getParent, getParentOrThis, getQName, getRoot, hasEqualAttrs, indexOf, liftInheritedAttribute, removeAttributeChangeListener, setAttribute, setAttributes, setAttrIfNotNull, setEnableAttributeChangeEvent, setNamespace, setParent, setQName, setUndefinedAttributes, writeTo, writeTo, writeTo, writeTo
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAttributeChangeListener, addElement, addElement, clearInheratedAttribute, clearInheratedAttributes, clearValue, contains, fireSaxEvents, firstElement, getAttrAsString, getAttrAsString, getAttribute, getAttribute, getAttributeMap, getContentText, getDefinedAttributes, getElements, getElements, getLocalName, getNamespacePrefix, getNamespacePrefixes, getNamespaceURI, getQName, getRoot, indexOf, isEmpty, lastElement, removeAttributeChangeListener, removeElement, removeElement, replaceElement, setAttribute, setAttributes, setElement, setNamespace
clone, getParent, setParent, writeTo
public BasicLink()
public BasicLink(java.lang.String text)
public BasicLink(java.lang.String text, java.lang.String externalDestination)
public BasicLink(InlineElement inline, java.lang.String externalDestination)
public BasicLink(java.lang.String text, FormattingObject internalDestination)
public BasicLink(InlineElement inline, FormattingObject internalDestination)
public BasicLink add(InlineElement element)
element
- FormattingObject.public BasicLink add(BlockElement element)
element
- FormattingObject.public BasicLink add(java.lang.String pcdata)
pcdata
- Text/PCdata.public BasicLink add(int idx, InlineElement element)
idx
- Index.element
- FormattingObject.public BasicLink add(int idx, BlockElement element)
idx
- Index.element
- FormattingObject.public BasicLink add(int idx, java.lang.String pcdata)
idx
- Index.pcdata
- Text/PCdata.public Padding getPadding()
getPadding
in class FormattingObject
public void setPadding(Padding padding)
setPadding
in class FormattingObject
padding
- Padding.public boolean hasBorder()
hasBorder
in class FormattingObject
public Border getBorder()
getBorder
in class FormattingObject
public void setBorder(Border border)
setBorder
in class FormattingObject
border
- Border.public Background getBackground()
getBackground
in class FormattingObject
public void setBackground(Background bg)
setBackground
in class FormattingObject
bg
- Background.public Accessibility getAccessibility()
getAccessibility
in class FormattingObject
public void setAccessibility(Accessibility access)
setAccessibility
in class FormattingObject
access
- Accessibility.public RelativePosition getRelativePosition()
getRelativePosition
in class FormattingObject
public void setRelativePosition(RelativePosition pos)
setRelativePosition
in class FormattingObject
pos
- RelativePosition.public void setExternalDestination(java.lang.String dest)
dest
- External destination.public java.lang.String getExternalDestinaion()
public void setInternalDestination(java.lang.String dest)
dest
- Internal destination.public void setInternalDestination(FormattingObject dest)
dest
- Internal destination.public java.lang.String getInternalDestinaion()
© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.