Java 类com.badlogic.gdx.scenes.scene2d.utils.ArraySelection 实例源码

项目:bladecoder-adventure-engine    文件:CustomList.java   
public CustomList(CustomListStyle style, CellRenderer<T> r) {
    selection = new ArraySelection<T>(items);
    selection.setActor(this);
    selection.setRequired(true);

    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;
        }
    });
}
项目:gdx-lml    文件:ListOnChangeProcessor.java   
@Override
public boolean canProcess(final Field field, final Object actor) {
    return actor instanceof List<?> && field.getType().equals(ArraySelection.class);
}
项目:gdx-lml    文件:SelectBoxOnChangeProcessor.java   
@Override
public boolean canProcess(final Field field, final Object actor) {
    return actor instanceof SelectBox<?> && field.getType().equals(ArraySelection.class);
}
项目:libgdxcn    文件:SelectBox.java   
/** Get the set of selected items, useful when multiple items are selected
 * @return a Selection object containing the selected elements */
public ArraySelection<T> getSelection () {
    return selection;
}
项目:libgdxcn    文件:List.java   
public ArraySelection<T> getSelection () {
    return selection;
}
项目:bladecoder-adventure-engine    文件:CustomList.java   
public ArraySelection<T> getSelection() {
    return selection;
}