Constructor and Description |
---|
FacetItem(String key,
String title,
int count,
boolean active)
Creates a new FacesItem.
|
Modifier and Type | Method and Description |
---|---|
int |
getCount()
Returns the number of matches of the represented key.
|
String |
getKey()
Returns the content value represented by this item.
|
String |
getTitle()
Returns the title shown to the user when displaying this item.
|
boolean |
isActive()
Determines if this item is an currently active filter.
|
void |
setActive(boolean active)
Sets the active flag indicating if this is currently an active filter.
|
void |
setCount(int count)
Sets the number of matches.
|
void |
setKey(String key)
Sets the key or content represented by this item.
|
void |
setTitle(String title)
Sets the title shown to the user when displaying this item.
|
String |
toString() |
public FacetItem(String key, String title, int count, boolean active)
key
- the content value represented by this itemtitle
- the visual item used to display this item to the usercount
- the number of matches foundactive
- determines if this item is an active filter settingpublic String getKey()
public void setKey(String key)
key
- the content to setpublic String getTitle()
public void setTitle(String title)
title
- the new titlepublic int getCount()
public void setCount(int count)
count
- the new number of matchespublic boolean isActive()
public void setActive(boolean active)
active
- true to mark this as an active filter, false otherwiseCopyright © 2018. All rights reserved.