public interface CollectionBrowserMoldContext
CollectionBrowserMoldStrategy to communicate with
CollectionBrowserController| Modifier and Type | Method and Description |
|---|---|
boolean |
areHyperlinksSupported()
Informs if collection browser supports hyperlinks.
|
SinglePage |
getCurrentPage() |
DataType |
getCurrentType()
Gets data type that is currently being displayed
|
String |
getCurrentTypeCode()
Gets data type code that is currently being displayed
|
DragAndDropStrategy |
getDragAndDropStrategy() |
<E> E |
getFocusedItem()
Gets currently focused item or
null if no item is focused |
<E> Collection<E> |
getSelectedItems()
Gets all currently selected items
|
WidgetInstanceManager |
getWidgetInstanceManager()
Returns the widget instance manager of current controller.
|
boolean |
isMultiSelectEnabled()
Allows to determine if the collection browser allows for multi-selection
|
boolean |
isSortable(String attributeQualifier)
Checks whether provided attribute is sortable
|
void |
notifyHyperlinkClicked(Object value)
Notifies that an user has clicked on element hyperlink.
|
void |
notifyItemClicked(Object item)
Notifies that an user has clicked on element, but did not select it.
|
void |
notifyItemsSelected(Collection<?> items)
Notifies that multiple items have been selected.
|
void |
sort(SortData sortData)
Reads data sorted with provided parameters
|
<E> Collection<E> getSelectedItems()
E - type of expected items<E> E getFocusedItem()
null if no item is focusedE - type of expected itemvoid notifyItemsSelected(Collection<?> items)
Notifies that multiple items have been selected.
Method should be called when selection is changed passing a full collection of selected items (even if a single element is added to selection, whole selection should be passed).
items - all items that are selectedboolean areHyperlinksSupported()
Informs if collection browser supports hyperlinks.
Values in collection browser may be rendered in the way, that some
void notifyHyperlinkClicked(Object value)
Notifies that an user has clicked on element hyperlink.
Call will be ignored, if hyperlinks are not supported
value - hyperlink's valueareHyperlinksSupported()void notifyItemClicked(Object item)
Notifies that an user has clicked on element, but did not select it.
item - item that is represented by clicked elementnotifyItemsSelected(Collection)WidgetInstanceManager getWidgetInstanceManager()
boolean isSortable(String attributeQualifier)
attributeQualifier - attributes qualifiertrue if attribute is sortableSinglePage getCurrentPage()
void sort(SortData sortData)
sortData - sorting parametersDataType getCurrentType()
null if selected type code does not match any of typesgetCurrentTypeCode()String getCurrentTypeCode()
getCurrentType()boolean isMultiSelectEnabled()
DragAndDropStrategy getDragAndDropStrategy()
Copyright © 2018. All rights reserved.