blob: 058186f3036c81bb6a067ec4ec957ed9e2b34d26 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2014 Laurent CARON
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Laurent CARON (laurent.caron at gmail dot com) - initial API and implementation
*******************************************************************************/
package org.mihalis.opal.itemSelector;
import java.util.List;
import org.eclipse.swt.events.TypedEvent;
import org.eclipse.swt.widgets.Event;
/**
* Instances of this class are sent as a result of
* DualList being selected.
*
* @see SelectionChangeListener
*/
public class SelectionChangeEvent extends TypedEvent {
/** The Constant serialVersionUID. */
private static final long serialVersionUID = -7164363995093867940L;
/**
* The items that were selected.
*/
private List<DLItem> items; // NOSONAR - SONAR demands transient or serializable!
/**
* A flag indicating whether the operation should be allowed.
* Setting this field to <code>false</code> will cancel the
* operation, depending on the widget.
*/
public boolean doit;
/**
* Constructs a new instance of this class based on the
* information in the given untyped event.
*
* @param e the untyped event containing the information
*/
public SelectionChangeEvent(final Event e) {
super(e);
}
/**
* Gets the items that were selected.
*
* @return the list of items
*/
public List<DLItem> getItems() {
return this.items;
}
/**
* Sets the items that were selected.
*
* @param items the list of items to set
*/
public void setItems(final List<DLItem> items) {
this.items = items;
}
}