public class Badge extends Object
| Constructor and Description |
|---|
Badge(BaseComponent owner)
Creates a badge with an initial count of 0.
|
Badge(BaseComponent owner,
int count)
Creates a badge with a specified initial count.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCount()
Returns the current count.
|
BaseComponent |
getOwner()
Returns the component associated with this badge.
|
void |
incCount(int increment)
Increments the count by the specified value.
|
void |
setCount(int count)
Sets the count to the specified value.
|
public Badge(BaseComponent owner)
owner - The component to associate with this badge.public Badge(BaseComponent owner, int count)
owner - The component to associate with this badge.count - The initial count for the badge.public BaseComponent getOwner()
public int getCount()
public void setCount(int count)
count - The new count.public void incCount(int increment)
increment - The increment to apply to the current count.Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.