public class BidiOrdering extends HTMLTagAttributes implements java.io.Serializable
Here is an example of a BidiOrdering tag:
<bdo lang="he" dir="rtl"> Some Hebrew Text. </bdo>
The equivalent tag using XSL Formatting Objects looks like this:
<fo:block-container writing-mode='rl'> <fo:block>Some Hebrew Text</fo:block> </fo:block-container>
BidiOrdering objects generate the following events:
| Constructor and Description |
|---|
BidiOrdering()
Constructs a default BidiOrdering object.
|
BidiOrdering(java.lang.String dir)
Constructs a BidiOrdering object with the specified dir.
|
BidiOrdering(java.lang.String lang,
java.lang.String dir)
Constructs a BidiOrdering object with the specified lang
and dir.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(HTMLTagElement data)
Adds an HTMLTagElement to the list elements.
|
void |
addItem(java.lang.String data)
Adds a String to the list of elements.
|
void |
addItemElementListener(ElementListener listener)
Adds an ElementListener.
|
java.lang.String |
getDirection()
Returns the direction of the text interpretation.
|
java.lang.String |
getFOTag()
Returns the XSL formatting object's tag for the Bi-Directional Ordering.
|
java.util.Vector |
getItems()
Returns the list of items.
|
java.lang.String |
getLanguage()
Returns the language of the element.
|
java.lang.String |
getTag()
Returns the tag for the Bi-Directional Ordering.
|
boolean |
isUseFO()
Returns if Formatting Object tags are outputted.
|
void |
removeItem(HTMLTagElement data)
Removess an HTMLTagElement from the list.
|
void |
removeItemElementListener(ElementListener listener)
Removes this ElementListener.
|
void |
setDirection(java.lang.String dir)
Sets the direction of the text interpretation.
|
void |
setLanguage(java.lang.String lang)
Sets the language of the input tag.
|
void |
setUseFO(boolean useFO)
Sets if Formatting Object tags should be outputted.
|
java.lang.String |
toString()
Returns a String representation for the BidiOrdering tag.
|
addPropertyChangeListener, getAttributes, getAttributeString, removePropertyChangeListener, setAttributespublic BidiOrdering()
public BidiOrdering(java.lang.String dir)
dir - The direction of the text being displayed.public BidiOrdering(java.lang.String lang,
java.lang.String dir)
lang - The language of the text.dir - The direction of text being displayed.public void addItem(HTMLTagElement data)
data - The data to re-order.public void addItem(java.lang.String data)
data - The data to re-order.public void addItemElementListener(ElementListener listener)
listener - The ElementListener.public java.lang.String getDirection()
public java.lang.String getLanguage()
public java.util.Vector getItems()
public java.lang.String getTag()
getTag in interface HTMLTagElementpublic java.lang.String getFOTag()
getFOTag in interface HTMLTagElementpublic boolean isUseFO()
public void removeItem(HTMLTagElement data)
data - The data to remove.public void removeItemElementListener(ElementListener listener)
listener - The ElementListener.public void setDirection(java.lang.String dir)
dir - The direction. One of the following constants
defined in HTMLConstants: LTR or RTL.HTMLConstantspublic void setLanguage(java.lang.String lang)
lang - The language. Example language tags include:
en and en-US.public void setUseFO(boolean useFO)
useFO - - true if output generated is an XSL formatting object, false if the output generated is HTML.public java.lang.String toString()
toString in class java.lang.Object