public class ScrollableSlot extends TextButton
Constructor and Description |
---|
ScrollableSlot(org.newdawn.slick.GameContainer gc)
Scrollable slot constructor
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears slot(removes content from slot)
|
void |
draw(float x,
float y,
boolean scaledPos)
Draws button
|
ScrollableContent |
getContent()
Returns content inside slot
|
void |
insertContent(ScrollableContent content)
Inserts content into slot
|
boolean |
isEmpty()
Checks if slot is empty
|
void |
mouseReleased(int button,
int x,
int y) |
void |
unselect()
Deselects slot
|
clicked, draw, draw, inputEnded, inputStarted, isAcceptingInput, isActive, isMouseOver, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseWheelMoved, setActive, setInput, setLabel
atCenter, draw, draw, draw, draw, draw, getDis, getPos, getScale, getScaledHeight, getScaledWidth, getSize, setInfo, setPosition, setSize
bind, clampTexture, copy, destroy, draw, draw, draw, draw, draw, draw, drawCentered, drawEmbedded, drawEmbedded, drawEmbedded, drawFlash, drawFlash, drawFlash, drawSheared, drawSheared, drawWarped, endUse, ensureInverted, flushPixelData, getAlpha, getCenterOfRotationX, getCenterOfRotationY, getColor, getFilter, getFlippedCopy, getGraphics, getHeight, getName, getResourceReference, getRotation, getScaledCopy, getScaledCopy, getSubImage, getTexture, getTextureHeight, getTextureOffsetX, getTextureOffsetY, getTextureWidth, getWidth, isDestroyed, rotate, setAlpha, setCenterOfRotation, setColor, setColor, setFilter, setImageColor, setImageColor, setName, setRotation, setTexture, startUse, toString
public ScrollableSlot(org.newdawn.slick.GameContainer gc) throws org.newdawn.slick.SlickException, java.awt.FontFormatException, java.io.IOException
gc
- Slick game containerorg.newdawn.slick.SlickException
java.awt.FontFormatException
java.io.IOException
public void draw(float x, float y, boolean scaledPos)
Button
public void insertContent(ScrollableContent content)
content
- Scrollable contentpublic void clear()
public ScrollableContent getContent()
public boolean isEmpty()
public void unselect()
public void mouseReleased(int button, int x, int y)
mouseReleased
in interface org.newdawn.slick.MouseListener
mouseReleased
in class Button