public class Button extends AbstractButton
Modifier and Type | Class and Description |
---|---|
static interface |
Button.IPressable |
Modifier and Type | Field and Description |
---|---|
protected Button.IPressable |
onPress |
active, alpha, height, isHovered, nextNarration, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, width, x, y
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Constructor and Description |
---|
Button(int widthIn,
int heightIn,
int width,
int height,
java.lang.String text,
Button.IPressable onPress) |
Modifier and Type | Method and Description |
---|---|
void |
onPress() |
keyPressed, onClick
changeFocus, clearFGColor, clicked, getFGColor, getHeight, getMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, renderButton, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidth
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
charTyped, keyReleased, mouseMoved, mouseScrolled
protected final Button.IPressable onPress
public Button(int widthIn, int heightIn, int width, int height, java.lang.String text, Button.IPressable onPress)
public void onPress()
onPress
in class AbstractButton