|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.explodingpixels.macwidgets.SourceListCategory
public class SourceListCategory
A category in a SourceList
. SourceListCategory
s are top level containers for
SourceListItem
s. SourceListCategory
s are text only, and rendered in full caps
(regardless of supplied text capitalization).
Constructor Summary | |
---|---|
SourceListCategory(java.lang.String text)
Creates a SourceListCategory with the given text. |
Method Summary | |
---|---|
boolean |
containsItem(SourceListItem item)
Returns true if the given SourceListItem is contained by this category, to
include being a sub-element of another SourceListItem contained by this category. |
int |
getItemCount()
Gets the number of child SourceListItem s that are part of this category. |
java.util.List<SourceListItem> |
getItems()
Gets a list of this SourceListCategory 's SourceListItem s. |
java.lang.String |
getText()
Gets the category text. |
void |
setText(java.lang.String text)
Sets the text to use for this SourceListCategory . |
java.lang.String |
toString()
Returns a String representation of this SourceListCategory . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SourceListCategory(java.lang.String text)
SourceListCategory
with the given text. The capitalization of the text will
be ignored, as categories are rendered in full caps.
text
- the category text. Cannot be null.Method Detail |
---|
public java.lang.String getText()
getText
in interface com.explodingpixels.widgets.TextProvider
public void setText(java.lang.String text)
SourceListCategory
. The capitalization of the text will
be ignored, as categories are rendered in full caps.
text
- the category text.public int getItemCount()
SourceListItem
s that are part of this category.
SourceListItem
s that are part of this category.public boolean containsItem(SourceListItem item)
true
if the given SourceListItem
is contained by this category, to
include being a sub-element of another SourceListItem
contained by this category.
item
- the SourceListItem
to determine whether or not is contained by this
category.
true
if the given SourceListItem
is contained within this category
or within on of this categories SourceListItem
s.public java.lang.String toString()
String
representation of this SourceListCategory
.
toString
in class java.lang.Object
String
representation of this SourceListCategory
.public java.util.List<SourceListItem> getItems()
SourceListCategory
's SourceListItem
s.
SourceListCategory
's SourceListItem
s.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |