public class AemContentFinder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AemContentFinder.ResultsView
This enum lists all available ways to display results in ContentFinder.
|
| Constructor and Description |
|---|
AemContentFinder() |
| Modifier and Type | Method and Description |
|---|---|
void |
changeToListViewIfNeeded(AemContentFinderTab currentTab) |
AemContentFinder |
clickListView()
Changes how results are displayed.
|
AemContentFinder |
clickMosaicView()
Changes how results are displayed.
|
AemContentFinder |
clickTab(String tabName)
Click the tab on icon bar.
|
AemContentFinder |
collapse()
Collapses contentFinder if it is not already collapsed.
|
AemContentFinder |
expand()
Expand contentFinder if it is not already expanded.
|
AemContentFinderTab |
getCurrentTab() |
String |
getCurrentTabName() |
AemContentFinder.ResultsView |
getCurrentView() |
int |
getCurrentWidth() |
Draggable |
getElementByIndex(int index)
Get dragabbleElement by index.
|
Draggable |
getElementByName(String name)
Get dragabbleElement by name.
|
List<String> |
getResults() |
boolean |
hasResults() |
boolean |
isCollapsed() |
boolean |
isExpanded() |
AemContentFinder |
refreshResults()
Clicks the refresh results button.
|
AemContentFinder |
resize(int widthInPixels)
Resizes contentFinder.
|
AemContentFinder |
search(String query)
Searches for draggable items.
|
public AemContentFinder search(String query)
query - the text that will be typed into search input fieldpublic AemContentFinder resize(int widthInPixels)
widthInPixels - new widthpublic int getCurrentWidth()
public boolean isCollapsed()
public boolean isExpanded()
public AemContentFinder collapse()
public AemContentFinder expand()
public AemContentFinder clickTab(String tabName)
tabName - case sensitive tab namepublic boolean hasResults()
public Draggable getElementByIndex(int index)
index - of an element (starts from 0)public Draggable getElementByName(String name)
name - case sensitive name of elementpublic void changeToListViewIfNeeded(AemContentFinderTab currentTab)
public AemContentFinder clickMosaicView()
public AemContentFinder clickListView()
public AemContentFinderTab getCurrentTab()
public AemContentFinder refreshResults()
public String getCurrentTabName()
public AemContentFinder.ResultsView getCurrentView()
public List<String> getResults()
getElementByName(java.lang.String).Copyright © 2016–2018 Cognifide Ltd.. All rights reserved.