public class ElementList<V> extends VerticalLayout
distanceelementscropElement, cropHeight, cropWidth, cropX, cropY, height, parent, visible, width, xOffset, xPos, yOffset, yPos| Constructor and Description |
|---|
ElementList(int xPos,
int yPos,
int width,
java.util.function.BiFunction<V,ElementList,IGuiElement> optionFactory,
V defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCurrentIndex() |
V |
getCurrentValue() |
int |
getIndexOf(V value) |
java.util.Collection<V> |
getOptions() |
boolean |
isVisible(V value) |
void |
setCurrentValue(V value) |
void |
setIndex(int currentIndex) |
void |
setOptions(java.util.Collection<V> options) |
void |
setValidator(java.util.function.Predicate<V> validator) |
void |
updateVisibleOptions() |
add, getWidth, layout, removegetDistance, getSize, setDistanceclear, drawable, drawable, drawElement, getElements, getLastElement, horizontal, horizontal, item, label, label, label, label, label, label, layoutHelper, pane, pane, splitText, splitText, splitText, splitText, updateClient, vertical, verticaladdEventHandler, addTooltip, addTooltip, addTooltip, clearTooltip, draw, getAbsoluteX, getAbsoluteY, getAlign, getCropElement, getCropHeight, getCropWidth, getCropX, getCropY, getHeight, getParent, getTooltip, getTooltip, getWindow, getX, getY, hasTooltip, hide, isCropped, isEnabled, isMouseOver, isMouseOver, isVisible, onCreation, onDeletion, onUpdateClient, receiveEvent, setAlign, setBounds, setCroppedZone, setHeight, setLocation, setOffset, setParent, setSize, setWidth, setXPosition, setYPosition, show, toStringdrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, add, clear, getElements, getLastElement, horizontal, horizontal, item, item, label, label, label, label, label, label, layoutHelper, pane, pane, remove, remove, splitText, splitText, splitText, splitText, vertical, verticaladdEventHandler, addEventHandler, addEventHandler, addSelfEventHandler, addTooltip, addTooltip, addTooltip, canFocus, canMouseOver, clearTooltip, draw, drawElement, getAbsoluteX, getAbsoluteY, getAlign, getHeight, getParent, getTooltip, getTooltip, getWindow, getX, getY, hasTooltip, hide, isEnabled, isMouseOver, isMouseOver, isVisible, onCreation, onDeletion, postEvent, postEvent, receiveEvent, setAlign, setBounds, setHeight, setLocation, setOffset, setParent, setSize, setWidth, setXPosition, setYPosition, show, updateClientgetCropElement, getCropHeight, getCropWidth, getCropX, getCropY, isCropped, setCroppedZonepublic ElementList(int xPos,
int yPos,
int width,
java.util.function.BiFunction<V,ElementList,IGuiElement> optionFactory,
@Nullable
V defaultValue)
@Nullable public V getCurrentValue()
public void setCurrentValue(@Nullable
V value)
public void updateVisibleOptions()
public boolean isVisible(V value)
public void setValidator(java.util.function.Predicate<V> validator)
public int getIndexOf(@Nullable
V value)
public int getCurrentIndex()
public void setIndex(int currentIndex)
public java.util.Collection<V> getOptions()
public void setOptions(java.util.Collection<V> options)