|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.wtk.content.ListItem
public class ListItem
Default list item implementation.
Constructor Summary | |
---|---|
ListItem()
|
|
ListItem(Image icon)
|
|
ListItem(Image icon,
String text)
|
|
ListItem(String text)
|
Method Summary | |
---|---|
Image |
getIcon()
|
String |
getText()
|
void |
setIcon(Image icon)
|
void |
setIcon(String iconName)
Sets the list item's icon by resource name. |
void |
setIcon(URL iconURL)
Sets the list item's icon by URL. |
void |
setText(String text)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListItem()
public ListItem(Image icon)
public ListItem(String text)
public ListItem(Image icon, String text)
Method Detail |
---|
public Image getIcon()
public void setIcon(Image icon)
public void setIcon(URL iconURL)
Note: Using this signature will cause an entry to be added in the application context's resource cache if one does not already exist.
iconURL
- The location of the icon to set.public void setIcon(String iconName)
Note: Using this signature will cause an entry to be added in the application context's resource cache if one does not already exist.
iconName
- The resource name of the icon to set.public String getText()
public void setText(String text)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |