|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.html.XHtmlWidget
net.xoetrope.html.XList
public class XList
A wrapper for the AWT List class
Copyright (c) Xoetrope Ltd., 1998-2004
License: see license.txt
| Field Summary | |
|---|---|
protected netscape.javascript.JSObject |
obj
|
| Fields inherited from class net.xoetrope.html.XHtmlWidget |
|---|
currentProject, divElement, htmlDoc, imageElement, inputElement, labelElement, metaElement, olElement, selectElement, tableElement, textareaElement, ulElement |
| Constructor Summary | |
|---|---|
XList(boolean ordered)
Create a new list component |
|
XList(boolean ordered,
java.lang.String id,
java.lang.String[] elements)
Create a new XList with an id and filled with elements |
|
XList(org.w3c.dom.html.HTMLOListElement olElement)
Create a new ordered XList based on an existing HTML ordered list. |
|
XList(org.w3c.dom.html.HTMLUListElement ulElement)
Create a new unordered XList based on an existing HTML unordered list. |
|
| Method Summary | |
|---|---|
void |
oAddElement(java.lang.String text)
Add a new element at the end of an ordered list |
java.lang.String |
oGetElementAt(int index)
Get an element from the list |
java.lang.String |
oGetFontColor()
Get the font color of the XList's elements. |
int |
oGetFontSize()
Get the size of the XList's elements. |
org.w3c.dom.html.HTMLOListElement |
oGetHTMLElement()
Get the HTML element at which refers the XList. |
java.lang.String |
oGetNumberType()
Get the numbering type of the list |
int |
oGetSize()
Get the number of elements in the list |
int |
oGetStartPoint()
Get the start point of the list |
void |
oInsertElement(java.lang.String text,
int index)
Insert an item into an ordered list. |
void |
oRemoveElement()
Remove the last element of the current ordered list |
void |
oRemoveElement(int index)
Remove the element at the index given in argument in the current ordered list |
void |
oSetFontColor(java.lang.String hexColor)
Set the font color of the XList's elements. |
void |
oSetFontSize(int fontsize)
Set the size of the XList's elements. |
void |
oSetNumberType(java.lang.String type)
Set the numbering type of the list |
void |
oSetStartPoint(int start)
Set the start point of the list |
void |
oSetText(java.lang.String text,
int index)
Replace the value of the list item at the specified index. |
void |
oSetVisible(boolean visible)
Set the XList visible or invisible. |
void |
uAddElement(java.lang.String text)
Add a new element at the end of an unordered list |
java.lang.String |
uGetBulletType()
Get the bullet type |
java.lang.String |
uGetElementAt(int index)
Get an element from the list |
java.lang.String |
uGetFontColor()
Get the font color of the XList's elements. |
int |
uGetFontSize()
Get the size of the XList's elements. |
org.w3c.dom.html.HTMLUListElement |
uGetHTMLElement()
Get the HTML element at which refers the XList. |
int |
uGetSize()
Get the number of elements in the list |
void |
uInsertElement(java.lang.String text,
int index)
Insert an item into an unordered list. |
void |
uRemoveElement()
Remove the last element of the current unordered list |
void |
uRemoveElement(int index)
Remove the element at the index given in argument in the current unordered list |
void |
uSetBulletType(java.lang.String type)
Set the bullet type |
void |
uSetFontColor(java.lang.String hexColor)
Set the font color of the XList's elements. |
void |
uSetFontSize(int fontsize)
Set the size of the XList's elements. |
void |
uSetText(java.lang.String text,
int index)
Replace the value of the list item at the specified index. |
void |
uSetVisible(boolean visible)
Set the XList visible or invisible. |
| Methods inherited from class net.xoetrope.html.XHtmlWidget |
|---|
addEvent, setObject, setObject, setObject, setObject, setObject, setObject, setObject, setObject, setObject, setObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected netscape.javascript.JSObject obj
| Constructor Detail |
|---|
public XList(boolean ordered)
ordered - true if the list ordered, false otherwise
public XList(boolean ordered,
java.lang.String id,
java.lang.String[] elements)
ordered - true if the list ordered, false otherwiseid - the id of the listelements - the elements of the listpublic XList(org.w3c.dom.html.HTMLOListElement olElement)
olElement - the HTML ol tag the XList refers topublic XList(org.w3c.dom.html.HTMLUListElement ulElement)
ulElement - the HTML ul tag the XList refers to| Method Detail |
|---|
public void oAddElement(java.lang.String text)
text - the element to addpublic void oRemoveElement()
public void oRemoveElement(int index)
index - the index of the element to remove (starting at 1)
public void oSetText(java.lang.String text,
int index)
text - the value of the list itemindex - the place you want the item to be inserted
public void oInsertElement(java.lang.String text,
int index)
text - the value of the list itemindex - the place the item is to be insertedpublic java.lang.String oGetElementAt(int index)
index - the index of the element to get (starting at 1)public int oGetSize()
public int oGetStartPoint()
public void oSetStartPoint(int start)
start - the start numberpublic java.lang.String oGetNumberType()
public void oSetNumberType(java.lang.String type)
type - the numbering type (1, i, I)public int oGetFontSize()
public void oSetFontSize(int fontsize)
fontsize - the int value of the font sizepublic java.lang.String oGetFontColor()
public void oSetFontColor(java.lang.String hexColor)
public void oSetVisible(boolean visible)
visible - true if visible, false otherwisepublic org.w3c.dom.html.HTMLOListElement oGetHTMLElement()
public void uAddElement(java.lang.String text)
text - the element to addpublic void uRemoveElement()
public void uRemoveElement(int index)
index - the index of the element to remove (starting at 1)
public void uSetText(java.lang.String text,
int index)
text - the value of the list itemindex - the place you want the item to be inserted
public void uInsertElement(java.lang.String text,
int index)
text - the value of the list itemindex - the place you want the item to be insertedpublic java.lang.String uGetElementAt(int index)
index - the index of the element to get (starting at 1)public java.lang.String uGetBulletType()
public void uSetBulletType(java.lang.String type)
type - the bullet type (circle, diamond, disc, square)public int uGetSize()
public int uGetFontSize()
public void uSetFontSize(int fontsize)
fontsize - the int value of the font sizepublic java.lang.String uGetFontColor()
public void uSetFontColor(java.lang.String hexColor)
hexColor - the hexadecimal value of the font colorpublic void uSetVisible(boolean visible)
visible - true if visible, false otherwisepublic org.w3c.dom.html.HTMLUListElement uGetHTMLElement()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||