Package overit.geocall.ui
Class SortableMenu
java.lang.Object
overit.geocall.ui.Menu
overit.geocall.ui.SortableMenu
- All Implemented Interfaces:
SingleUseComponent
This class extends
It allows to define an item identifier (see
It also needed to set a server event to which the plugin send the reorder informations related.
Menu and implements a menu in which the Items are sortable each other using the Sortable.js plugin.It allows to define an item identifier (see
setItemIdentifierAttribute(java.lang.String)) that will be used by the plugin to identify a specific item and send to the server
the reorder related infos.It also needed to set a server event to which the plugin send the reorder informations related.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class overit.geocall.ui.Menu
_cellStyle, _checkOffIcon, _checkOnIcon, _emptyIcon, _id, _items, _nospinAttrib, _sequence -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEvery component can add a script to the StringBuilder, script executed when the component is created The method add the script that manage the creation and showing of the menuprotected org.apache.ecs.ElementvoidsetDragAndDropEvent(String event) voidsetItemIdentifierAttribute(String itemIdentifierAttribute) Methods inherited from class overit.geocall.ui.Menu
add, addItem, addItem, addItem, addTitle, getCheckDiv, getCheckOrIconDiv, getEmptyDiv, getHtml, getIconDiv, getItems, getLabelDiv, getTeacher, getTitleDiv, setTitle
-
Field Details
-
dragAndDropEvent
-
itemIdentifierAttribute
-
-
Constructor Details
-
SortableMenu
-
-
Method Details
-
setDragAndDropEvent
- Parameters:
event- defined for drag and drop action
-
setItemIdentifierAttribute
- Parameters:
itemIdentifierAttribute- attribute to identify the item
-
getDragAndDropEvent
- Returns:
- the event for drag and drop
-
getItemIdentifierAttribute
- Returns:
- the identifier for the item
-
drawItem
-
buildSetupScript
Description copied from class:MenuEvery component can add a script to the StringBuilder, script executed when the component is created The method add the script that manage the creation and showing of the menu- Specified by:
buildSetupScriptin interfaceSingleUseComponent- Overrides:
buildSetupScriptin classMenu- Parameters:
sb- The StringBuilder on which we want to add the script
-