// -*- mode: java; c-basic-offset: 2; -*- // Copyright 2009-2011 Google, All Rights reserved // Copyright 2011-2012 MIT, All rights reserved // Released under the Apache License, Version 2.0 // http://www.apache.org/licenses/LICENSE-2.0 package com.google.appinventor.components.runtime; import com.google.appinventor.components.annotations.SimpleObject; /** * Base class for all non-visible components. * * @author lizlooney@google.com (Liz Looney) */ @SimpleObject public abstract class AndroidNonvisibleComponent implements Component { protected final Form form; /** * Creates a new AndroidNonvisibleComponent. * * @param form the container that this component will be placed in */ protected AndroidNonvisibleComponent(Form form) { this.form = form; } // Component implementation @Override public HandlesEventDispatching getDispatchDelegate() { return form; } }