public abstract class SelectionElement<R> extends PaneLayout
| Modifier and Type | Field and Description |
|---|---|
protected ButtonElement |
leftButton |
protected R[] |
recipes |
protected ButtonElement |
rightButton |
protected ElementGroup |
selectedElement |
protected ElementGroup |
text |
elementscropElement, cropHeight, cropWidth, cropX, cropY, height, parent, visible, width, xOffset, xPos, yOffset, yPos| Modifier | Constructor and Description |
|---|---|
protected |
SelectionElement(int xPos,
int yPos,
int width,
int height,
R[] recipes) |
protected |
SelectionElement(int xPos,
int yPos,
int width,
int height,
R[] recipes,
int yOffset) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
onIndexUpdate(int index,
R recipe) |
protected void |
setIndex(int index) |
getHeight, getWidthadd, clear, drawable, drawable, drawElement, getElements, getLastElement, horizontal, horizontal, item, label, label, label, label, label, label, layoutHelper, pane, pane, remove, splitText, splitText, splitText, splitText, updateClient, vertical, verticaladdEventHandler, addTooltip, addTooltip, addTooltip, clearTooltip, draw, getAbsoluteX, getAbsoluteY, getAlign, getCropElement, getCropHeight, getCropWidth, getCropX, getCropY, 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, waitaddEventHandler, addEventHandler, addEventHandler, addSelfEventHandler, addTooltip, addTooltip, addTooltip, canFocus, canMouseOver, clearTooltip, draw, getAbsoluteX, getAbsoluteY, getAlign, 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, showgetCropElement, getCropHeight, getCropWidth, getCropX, getCropY, isCropped, setCroppedZone@Nullable protected final ButtonElement leftButton
@Nullable protected final ButtonElement rightButton
@Nullable protected final ElementGroup text
protected final ElementGroup selectedElement
protected final R[] recipes
protected SelectionElement(int xPos,
int yPos,
int width,
int height,
R[] recipes)
protected SelectionElement(int xPos,
int yPos,
int width,
int height,
R[] recipes,
int yOffset)
protected final void setIndex(int index)
protected abstract void onIndexUpdate(int index,
R recipe)