public final class ViewHelper extends Object
Modifier | Constructor and Description |
---|---|
private |
ViewHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
addViewContainerItems(ViewItemContainer currentContainer,
ViewItemContainer containerToInclude,
View referenceView)
Add the items of the view item container to include if they are not already present in the current view item container or in the reference view
|
static boolean |
hasViewItem(ViewItemContainer container,
String itemName)
Checks if there is a view item with the given name in the view item container
|
private ViewHelper()
public static boolean hasViewItem(ViewItemContainer container, String itemName)
container
- the view item containeritemName
- the name of the itemtrue
if the container contains an item with the given name, false
otherwisepublic static void addViewContainerItems(ViewItemContainer currentContainer, ViewItemContainer containerToInclude, View referenceView)
currentContainer
- the current containercontainerToInclude
- the container to includereferenceView
- the reference view