public SelectBox (SelectBoxStyle style) { setStyle(style); setSize(getPrefWidth(), getPrefHeight()); selection.setActor(this); selection.setRequired(true); selectBoxList = new SelectBoxList(this); addListener(clickListener = new ClickListener() { public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { if (pointer == 0 && button != 0) return false; if (disabled) return false; if (selectBoxList.hasParent()) hideList(); else showList(); return true; } }); }
public SelectBox (SelectBoxStyle style) { setStyle(style); setSize(getPrefWidth(), getPrefHeight()); selection.setActor(this); selection.setRequired(true); selectBoxList = new SelectBoxList(this); addListener(clickListener = new ClickListener() { public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { if (pointer == 0 && button != 0) return false; if (disabled) return false; if (selectBoxList.hasParent()) hideList(); else showList(); return true; } }); }
public List (ListStyle style) { selection.setActor(this); selection.setRequired(true);
public List (ListStyle style) { selection.setActor(this); selection.setRequired(true);
list.setItems(listEntries); list.getSelection().setMultiple(true); list.getSelection().setRequired(false);
public SelectBox (SelectBoxStyle style) { setStyle(style); setSize(getPrefWidth(), getPrefHeight()); selection.setActor(this); selection.setRequired(true); selectBoxList = new SelectBoxList(this); addListener(clickListener = new ClickListener() { public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { if (pointer == 0 && button != 0) return false; if (disabled) return false; if (selectBoxList.hasParent()) hideList(); else showList(); return true; } }); }
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; } }); }
public FilteredSelectBox (FilteredSelectBoxStyle style) { setStyle(style); setSize(getPrefWidth(), getPrefHeight()); selection.setActor(this); selection.setRequired(true); selectBoxList = new SelectBoxList<T>(this); addListener(clickListener = new ClickListener() { public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) { if (pointer == 0 && button != 0) return false; if (disabled) return false; if (selectBoxList.hasParent()) hideList(); else showList(); return true; } }); }
public List (ListStyle style) { selection.setActor(this); selection.setRequired(true);