org.apache.pivot.wtk.content
Class TableViewHeaderData
java.lang.Object
org.apache.pivot.wtk.content.TableViewHeaderData
public class TableViewHeaderData
- extends Object
Default table header data implementation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TableViewHeaderData
public TableViewHeaderData()
TableViewHeaderData
public TableViewHeaderData(Image icon)
TableViewHeaderData
public TableViewHeaderData(String text)
TableViewHeaderData
public TableViewHeaderData(Image icon,
String text)
getIcon
public Image getIcon()
setIcon
public void setIcon(Image icon)
setIcon
public void setIcon(URL iconURL)
- Sets the header data's icon by URL.
If the icon already exists in the application context resource cache,
the cached value will be used. Otherwise, the icon will be loaded
synchronously and added to the cache.
- Parameters:
iconURL
- The location of the icon to set.
setIcon
public void setIcon(String iconName)
- Sets the header data's icon by resource name.
- Parameters:
iconName
- The resource name of the icon to set.- See Also:
setIcon(URL)
getText
public String getText()
setText
public void setText(String text)