# ICategoryTreeParent

`com.jsmacrosce.jsmacros.client.gui.settings.ICategoryTreeParent`

Receives category-selection requests from a settings category tree, in addition to the inherited container operations.  
A script can forward an ordered path using the array parameter:  
```js
function selectSettingsCategory(parent, segments) {
  parent.selectCategory(Java.to(segments, 'java.lang.String[]'));  
}
```

Here, `parent` is an `ICategoryTreeParent` supplied by the editor or container.

## Methods

### selectCategory {#com.jsmacrosce.jsmacros.client.gui.settings.ICategoryTreeParent_selectCategory-String[]-}

```js
selectCategory(String[] category): void
```

Requests selection of a category path. Implementations determine how the path is handled; tree nodes prepend their own segment when forwarding the request.

**Parameters:**
- `category`: ordered path segments from outer to inner in the current selection context
