# EventChooser.EventObj

`com.jsmacrosce.jsmacros.client.gui.overlays.EventChooser.EventObj`

Holds an event name and its associated button as a row value; it does not register the button itself.  
 This supporting type is not a global library. The caller supplies a name and WagYourGUI button:  
 ```js
function makeEventRow(name, button) {
  const EventObj = Java.type('com.jsmacrosce.jsmacros.client.gui.overlays.EventChooser$EventObj');  
  return new EventObj(name, button);  
}
 ```

Nested type declared in [EventChooser](EventChooser.md).

## Constructors

### new EventChooser.EventObj {#com.jsmacrosce.jsmacros.client.gui.overlays.EventChooser.EventObj_constructor-String-Button-}

```js
new EventChooser.EventObj(String event, Button btn)
```

Stores the supplied row name and button references.

**Parameters:**
- `event`: event name represented by the row
- `btn`: associated WagYourGUI button
