FileDocCategorySizeDatePackage
TouchScreenQualifier.javaAPI DocAndroid 1.5 API4627Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.editors.resources.configurations

TouchScreenQualifier

public final class TouchScreenQualifier extends ResourceQualifier
Resource Qualifier for Touch Screen type.

Fields Summary
public static final String
NAME
private TouchScreenType
mValue
Constructors Summary
public TouchScreenQualifier()

        // pass
    
public TouchScreenQualifier(TouchScreenType touchValue)

        mValue = touchValue;
    
Methods Summary
public booleancheckAndSet(java.lang.String value, FolderConfiguration config)

        TouchScreenType type = TouchScreenType.getEnum(value);
        if (type != null) {
            TouchScreenQualifier qualifier = new TouchScreenQualifier();
            qualifier.mValue = type;
            config.setTouchTypeQualifier(qualifier);
            return true;
        }
        
        return false;
    
public booleanequals(java.lang.Object qualifier)

        if (qualifier instanceof TouchScreenQualifier) {
            return mValue == ((TouchScreenQualifier)qualifier).mValue;
        }
        return false;
    
public org.eclipse.swt.graphics.ImagegetIcon()

        return IconFactory.getInstance().getIcon("touch"); //$NON-NLS-1$
    
public java.lang.StringgetName()

        return NAME;
    
public java.lang.StringgetShortName()

        return NAME;
    
public java.lang.StringgetStringValue()

        if (mValue != null) {
            return mValue.getDisplayValue();
        }
        
        return ""; //$NON-NLS-1$
    
public com.android.ide.eclipse.editors.resources.configurations.TouchScreenQualifier$TouchScreenTypegetValue()

        return mValue;
    
public inthashCode()

        if (mValue != null) {
            return mValue.hashCode();
        }
        
        return 0;
    
public booleanisValid()

        return mValue != null;
    
public java.lang.StringtoString()
Returns the string used to represent this qualifier in the folder name.

        if (mValue != null) {
            return mValue.getValue();
        }
        
        return ""; //$NON-NLS-1$