/** Set the backing Array that makes up the choices available in the SelectBox */ public void setItems (T... newItems) { if (newItems == null) throw new IllegalArgumentException("newItems cannot be null."); float oldPrefWidth = getPrefWidth(); items.clear(); items.addAll(newItems); selection.validate(); selectBoxList.list.setItems(items); invalidate(); if (oldPrefWidth != getPrefWidth()) invalidateHierarchy(); }
/** Sets the items visible in the select box. */ public void setItems (Array<T> newItems) { if (newItems == null) throw new IllegalArgumentException("newItems cannot be null."); float oldPrefWidth = getPrefWidth(); if (newItems != items) { items.clear(); items.addAll(newItems); } selection.validate(); selectBoxList.list.setItems(items); invalidate(); if (oldPrefWidth != getPrefWidth()) invalidateHierarchy(); }
/** Set the backing Array that makes up the choices available in the SelectBox */ public void setItems (T... newItems) { if (newItems == null) throw new IllegalArgumentException("newItems cannot be null."); float oldPrefWidth = getPrefWidth(); items.clear(); items.addAll(newItems); selection.validate(); selectBoxList.list.setItems(items); invalidate(); if (oldPrefWidth != getPrefWidth()) invalidateHierarchy(); }
/** Sets the items visible in the select box. */ public void setItems (Array<T> newItems) { if (newItems == null) throw new IllegalArgumentException("newItems cannot be null."); float oldPrefWidth = getPrefWidth(); if (newItems != items) { items.clear(); items.addAll(newItems); } selection.validate(); selectBoxList.list.setItems(items); invalidate(); if (oldPrefWidth != getPrefWidth()) invalidateHierarchy(); }
public void setItems (T... newItems) { if (newItems == null) throw new IllegalArgumentException("newItems cannot be null."); float oldPrefWidth = getPrefWidth(), oldPrefHeight = getPrefHeight(); items.clear(); items.addAll(newItems); selection.validate(); invalidate(); if (oldPrefWidth != getPrefWidth() || oldPrefHeight != getPrefHeight()) invalidateHierarchy(); }
public void setItems (T... newItems) { if (newItems == null) throw new IllegalArgumentException("newItems cannot be null."); float oldPrefWidth = getPrefWidth(), oldPrefHeight = getPrefHeight(); items.clear(); items.addAll(newItems); selection.validate(); invalidate(); if (oldPrefWidth != getPrefWidth() || oldPrefHeight != getPrefHeight()) invalidateHierarchy(); }
/** Sets the items visible in the list, clearing the selection if it is no longer valid. If a selection is * {@link ArraySelection#getRequired()}, the first item is selected. This can safely be called with a (modified) array returned * from {@link #getItems()}. */ public void setItems (Array newItems) { if (newItems == null) throw new IllegalArgumentException("newItems cannot be null."); float oldPrefWidth = getPrefWidth(), oldPrefHeight = getPrefHeight(); if (newItems != items) { items.clear(); items.addAll(newItems); } selection.validate(); invalidate(); if (oldPrefWidth != getPrefWidth() || oldPrefHeight != getPrefHeight()) invalidateHierarchy(); }
/** Sets the items visible in the list, clearing the selection if it is no longer valid. If a selection is * {@link ArraySelection#getRequired()}, the first item is selected. This can safely be called with a (modified) array returned * from {@link #getItems()}. */ public void setItems (Array newItems) { if (newItems == null) throw new IllegalArgumentException("newItems cannot be null."); float oldPrefWidth = getPrefWidth(), oldPrefHeight = getPrefHeight(); if (newItems != items) { items.clear(); items.addAll(newItems); } selection.validate(); invalidate(); if (oldPrefWidth != getPrefWidth() || oldPrefHeight != getPrefHeight()) invalidateHierarchy(); }
/** Set the backing Array that makes up the choices available in the SelectBox */ public void setItems (T... newItems) { if (newItems == null) throw new IllegalArgumentException("newItems cannot be null."); float oldPrefWidth = getPrefWidth(); items.clear(); items.addAll(newItems); selection.validate(); selectBoxList.list.setItems(items); invalidate(); if (oldPrefWidth != getPrefWidth()) invalidateHierarchy(); }
/** Sets the items visible in the select box. */ public void setItems (Array<T> newItems) { if (newItems == null) throw new IllegalArgumentException("newItems cannot be null."); float oldPrefWidth = getPrefWidth(); items.clear(); items.addAll(newItems); selection.validate(); selectBoxList.list.setItems(items); invalidate(); if (oldPrefWidth != getPrefWidth()) invalidateHierarchy(); }
/** Set the backing Array that makes up the choices available in the SelectBox */ @SuppressWarnings("unchecked") public void setItems (T... newItems) { if (newItems == null) throw new IllegalArgumentException("newItems cannot be null."); float oldPrefWidth = getPrefWidth(); items.clear(); items.addAll(newItems); selection.validate(); selectBoxList.list.setItems(items); invalidate(); if (oldPrefWidth != getPrefWidth()) invalidateHierarchy(); }
public void setItems (T... newItems) { if (newItems == null) throw new IllegalArgumentException("newItems cannot be null."); float oldPrefWidth = getPrefWidth(), oldPrefHeight = getPrefHeight(); items.clear(); items.addAll(newItems); selection.validate(); invalidate(); if (oldPrefWidth != getPrefWidth() || oldPrefHeight != getPrefHeight()) invalidateHierarchy(); }
/** Sets the items visible in the select box. */ public void setItems (Array<T> newItems) { if (newItems == null) throw new IllegalArgumentException("newItems cannot be null."); float oldPrefWidth = getPrefWidth(); if (newItems != items) { items.clear(); items.addAll(newItems); } selection.validate(); selectBoxList.list.setItems(items); invalidate(); if (oldPrefWidth != getPrefWidth()) invalidateHierarchy(); }
/** Sets the items visible in the list, clearing the selection if it is no longer valid. If a selection is * {@link ArraySelection#getRequired()}, the first item is selected. This can safely be called with a (modified) array returned * from {@link #getItems()}. */ public void setItems (Array newItems) { if (newItems == null) throw new IllegalArgumentException("newItems cannot be null."); float oldPrefWidth = getPrefWidth(), oldPrefHeight = getPrefHeight(); if (newItems != items) { items.clear(); items.addAll(newItems); } selection.validate(); invalidate(); if (oldPrefWidth != getPrefWidth() || oldPrefHeight != getPrefHeight()) invalidateHierarchy(); }