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

NavigationMethodQualifier

public final class NavigationMethodQualifier extends ResourceQualifier
Resource Qualifier for Navigation Method.

Fields Summary
public static final String
NAME
private NavigationMethod
mValue
Constructors Summary
public NavigationMethodQualifier()

        // pass
    
public NavigationMethodQualifier(NavigationMethod value)

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

        NavigationMethod method = NavigationMethod.getEnum(value);
        if (method != null) {
            NavigationMethodQualifier qualifier = new NavigationMethodQualifier();
            qualifier.mValue = method;
            config.setNavigationMethodQualifier(qualifier);
            return true;
        }
        
        return false;
    
public booleanequals(java.lang.Object qualifier)

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

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

        return NAME;
    
public java.lang.StringgetShortName()

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

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

        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$