|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.explodingpixels.macwidgets.SourceListItem
public class SourceListItem
An item in a SourceList which is contained within a SourceListCategory.
| Constructor Summary | |
|---|---|
SourceListItem(java.lang.String text)
Creates a SourceListItem with the given text. |
|
SourceListItem(java.lang.String text,
javax.swing.Icon icon)
Creates a SourceListItem with the given text and icon. |
|
| Method Summary | |
|---|---|
boolean |
containsItem(SourceListItem item)
Returns true if the given SourceListItem is contained by this item, to
include being a sub-element of another child SourceListItem. |
java.util.List<SourceListItem> |
getChildItems()
Gets a list of this SourceListItem's child SourceListItems. |
int |
getCounterValue()
Gets the counter value to use for this item. |
javax.swing.Icon |
getIcon()
Gets the icon to use for this item. |
java.lang.String |
getText()
Gets the text to use for this item. |
void |
setCounterValue(int counterValue)
Sets the counter value to use for this item. |
void |
setIcon(javax.swing.Icon icon)
Sets the icon to use for this item. |
void |
setText(java.lang.String text)
Sets the text to use for this item. |
java.lang.String |
toString()
Returns a String representation of this SourceListItem. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SourceListItem(java.lang.String text)
SourceListItem with the given text.
text - the item text. Cannot be null.
java.lang.IllegalArgumentException - if the text is null.
public SourceListItem(java.lang.String text,
javax.swing.Icon icon)
SourceListItem with the given text and icon.
text - the item text. Cannot be null.icon - the item icon. Can be null.
java.lang.IllegalArgumentException - if the text is null.| Method Detail |
|---|
public java.lang.String getText()
getText in interface com.explodingpixels.widgets.TextProviderpublic void setText(java.lang.String text)
text - the text to use for this item. Cannot be null.
java.lang.IllegalArgumentException - if the text is null.public javax.swing.Icon getIcon()
getIcon in interface com.explodingpixels.widgets.IconProviderpublic void setIcon(javax.swing.Icon icon)
icon - the icon to use for this item. Can be null.public int getCounterValue()
getCounterValue in interface SourceListBadgeContentProviderpublic void setCounterValue(int counterValue)
counterValue - the counter value to use for this item. Must be >= 0.
java.lang.IllegalArgumentException - if the counter value is not >= 0.public boolean containsItem(SourceListItem item)
true if the given SourceListItem is contained by this item, to
include being a sub-element of another child SourceListItem.
item - the SourceListItem to determine whether or not is contained by this
item.
true if the given SourceListItem is contained within this item
or within on of this items child SourceListItems.public java.lang.String toString()
String representation of this SourceListItem.
toString in class java.lang.ObjectString representation of this SourceListItem.public java.util.List<SourceListItem> getChildItems()
SourceListItem's child SourceListItems.
SourceListItem's child SourceListItems.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||