Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.virtualbox_4_2.jaxws;
 

Java class for MouseButtonState.

The following schema fragment specifies the expected content contained within this class.

 <simpleType name="MouseButtonState">
   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
     <enumeration value="LeftButton"/>
     <enumeration value="RightButton"/>
     <enumeration value="MiddleButton"/>
     <enumeration value="WheelUp"/>
     <enumeration value="WheelDown"/>
     <enumeration value="XButton1"/>
     <enumeration value="XButton2"/>
     <enumeration value="MouseStateMask"/>
   </restriction>
 </simpleType>
 
@XmlType(name = "MouseButtonState")
public enum MouseButtonState {
    @XmlEnumValue("LeftButton")
    LEFT_BUTTON("LeftButton"),
    @XmlEnumValue("RightButton")
    RIGHT_BUTTON("RightButton"),
    @XmlEnumValue("MiddleButton")
    MIDDLE_BUTTON("MiddleButton"),
    @XmlEnumValue("WheelUp")
    WHEEL_UP("WheelUp"),
    @XmlEnumValue("WheelDown")
    WHEEL_DOWN("WheelDown"),
    @XmlEnumValue("XButton1")
    X_BUTTON_1("XButton1"),
    @XmlEnumValue("XButton2")
    X_BUTTON_2("XButton2"),
    @XmlEnumValue("MouseStateMask")
    MOUSE_STATE_MASK("MouseStateMask");
    private final String value;
    MouseButtonState(String v) {
         = v;
    }
    public String value() {
        return ;
    }
    public static MouseButtonState fromValue(String v) {
        for (MouseButtonState c: MouseButtonState.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }
New to GrepCode? Check out our FAQ X