List of usage examples for com.badlogic.gdx.scenes.scene2d.utils ArraySelection ArraySelection
public ArraySelection(Array<T> array)
From source file:com.bladecoder.engineeditor.ui.components.CustomList.java
License:Apache License
public CustomList(CustomListStyle style, CellRenderer<T> r) { selection = new ArraySelection<T>(items); selection.setActor(this); selection.setRequired(true);//from ww w. ja v a2 s. com cellRenderer = r; setStyle(style); setSize(getPrefWidth(), getPrefHeight()); addListener(new InputListener() { public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) { if (pointer == 0 && button != 0) return false; if (selection.isDisabled()) return false; CustomList.this.touchDown(y); return true; } }); }