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

KeyboardStateQualifier

public final class KeyboardStateQualifier extends ResourceQualifier
Resource Qualifier for keyboard state.

Fields Summary
public static final String
NAME
private KeyboardState
mValue
Constructors Summary
public KeyboardStateQualifier()

        // pass
    
public KeyboardStateQualifier(KeyboardState value)

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

        KeyboardState orientation = KeyboardState.getEnum(value);
        if (orientation != null) {
            KeyboardStateQualifier qualifier = new KeyboardStateQualifier();
            qualifier.mValue = orientation;
            config.setKeyboardStateQualifier(qualifier);
            return true;
        }
        
        return false;
    
public booleanequals(java.lang.Object qualifier)

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

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

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

        return NAME;
    
public java.lang.StringgetShortName()

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

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

        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$