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

ScreenOrientationQualifier

public final class ScreenOrientationQualifier extends ResourceQualifier
Resource Qualifier for Screen Orientation.

Fields Summary
public static final String
NAME
private ScreenOrientation
mValue
Constructors Summary
public ScreenOrientationQualifier()

    
public ScreenOrientationQualifier(ScreenOrientation value)

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

        ScreenOrientation orientation = ScreenOrientation.getEnum(value);
        if (orientation != null) {
            ScreenOrientationQualifier qualifier = new ScreenOrientationQualifier(orientation);
            config.setScreenOrientationQualifier(qualifier);
            return true;
        }
        
        return false;
    
public booleanequals(java.lang.Object qualifier)

        if (qualifier instanceof ScreenOrientationQualifier) {
            return mValue == ((ScreenOrientationQualifier)qualifier).mValue;
        }

        return false;
    
public org.eclipse.swt.graphics.ImagegetIcon()

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

        return NAME;
    
public java.lang.StringgetShortName()

        return "Orientation";
    
public java.lang.StringgetStringValue()

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

        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$