/* AWE - Amanzi Wireless Explorer * http://awe.amanzi.org * (C) 2008-2009, AmanziTel AB * * This library is provided under the terms of the Eclipse Public License * as described at http://www.eclipse.org/legal/epl-v10.html. Any use, * reproduction or distribution of the library constitutes recipient's * acceptance of this agreement. * * This library is distributed WITHOUT ANY WARRANTY; without even the * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ package org.amanzi.awe.ui.events.impl; import org.amanzi.awe.ui.events.EventStatus; import org.amanzi.awe.ui.events.impl.internal.AbstractEvent; import org.amanzi.neo.models.IModel; /** * TODO Purpose of * <p> * </p> * * @author Vladislav_Kondratenko * @since 1.0.0 */ public class ShowInViewEvent extends AbstractEvent { private final Object element; private final IModel parent; /** * @param status * @param isAsync */ public ShowInViewEvent(final IModel model, Object source) { this(model, null, source); } public ShowInViewEvent(final IModel parent, final Object element, Object source) { super(EventStatus.SHOW_IN_VIEW, true, source); this.parent = parent; this.element = element; } /** * @return Returns the element. */ public Object getElement() { return element; } public IModel getParent() { return parent; } }