All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.metawidget.android.widget.Facet Maven / Gradle / Ivy

The newest version!
// Metawidget
//
// This file is dual licensed under both the LGPL
// (http://www.gnu.org/licenses/lgpl-2.1.html) and the EPL
// (http://www.eclipse.org/org/documents/epl-v10.php). As a
// recipient of Metawidget, you may choose to receive it under either
// the LGPL or the EPL.
//
// Commercial licenses are also available. See http://metawidget.org
// for details.

package org.metawidget.android.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.LinearLayout;

/**
 * Facet for Android environments.
 * 

* Facets differ from Stubs in that Stubs override widget creation, whereas Facets are 'decorations' * (such as button bars) to be recognized and arranged at the discretion of the Layout. *

* Note: this class extends LinearLayout rather than FrameLayout, because * FrameLayout would always need to have another Layout embedded * within it, whereas LinearLayout is occasionally useful directly. * * @author Richard Kennard */ public class Facet extends LinearLayout { // // Private members // private String mName; // // Constructor // public Facet( Context context ) { super( context ); } public Facet( Context context, AttributeSet attributes ) { super( context, attributes ); mName = attributes.getAttributeValue( null, "name" ); } // // Public methods // public String getName() { return mName; } public void setName( String name ) { mName = name; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy