public class DragAndDropBean extends Object
Constructor and Description |
---|
DragAndDropBean() |
Modifier and Type | Method and Description |
---|---|
List<Element> |
getDestinationElements()
Gets all destination elements.
|
List<Element> |
getSourceElements()
Gets all the source elements.
|
void |
init()
Initializes the list of source elements with all noble gasses.
|
void |
onElementDropSelect(org.primefaces.event.DragDropEvent dragDropEvent)
Handles a drop of an element onto the destination by moving the element from the source- to the destination list.
|
void |
onElementDropUnselect(org.primefaces.event.DragDropEvent dragDropEvent)
Handles a drop of an element onto the source by moving the element from the destination- to the source list.
|
@PostConstruct public void init()
public List<Element> getSourceElements()
public List<Element> getDestinationElements()
public void onElementDropSelect(org.primefaces.event.DragDropEvent dragDropEvent)
dragDropEvent
- The drag and drop event.public void onElementDropUnselect(org.primefaces.event.DragDropEvent dragDropEvent)
dragDropEvent
- The drag and drop event.Copyright © 2008–2018. All rights reserved.