Package net.runelite.client.game.chatbox
Class ChatboxTextMenuInput
- java.lang.Object
-
- net.runelite.client.game.chatbox.ChatboxInput
-
- net.runelite.client.game.chatbox.ChatboxTextMenuInput
-
- All Implemented Interfaces:
KeyListener
,EventListener
,KeyListener
public class ChatboxTextMenuInput extends ChatboxInput implements KeyListener
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ChatboxTextMenuInput(ChatboxPanelManager chatboxPanelManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChatboxTextMenuInput
build()
protected void
close()
Runnable
getOnClose()
List<net.runelite.client.game.chatbox.ChatboxTextMenuInput.Entry>
getOptions()
String
getTitle()
void
keyPressed(KeyEvent e)
void
keyReleased(KeyEvent e)
void
keyTyped(KeyEvent e)
ChatboxTextMenuInput
onClose(Runnable onClose)
protected void
open()
ChatboxTextMenuInput
option(String text, Runnable callback)
ChatboxTextMenuInput
title(String title)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.runelite.client.input.KeyListener
focusLost, isEnabledOnLoginScreen
-
-
-
-
Constructor Detail
-
ChatboxTextMenuInput
@Inject protected ChatboxTextMenuInput(ChatboxPanelManager chatboxPanelManager)
-
-
Method Detail
-
title
public ChatboxTextMenuInput title(String title)
-
option
public ChatboxTextMenuInput option(String text, Runnable callback)
-
onClose
public ChatboxTextMenuInput onClose(Runnable onClose)
-
build
public ChatboxTextMenuInput build()
-
open
protected void open()
- Overrides:
open
in classChatboxInput
-
close
protected void close()
- Overrides:
close
in classChatboxInput
-
keyTyped
public void keyTyped(KeyEvent e)
- Specified by:
keyTyped
in interfaceKeyListener
-
keyPressed
public void keyPressed(KeyEvent e)
- Specified by:
keyPressed
in interfaceKeyListener
-
keyReleased
public void keyReleased(KeyEvent e)
- Specified by:
keyReleased
in interfaceKeyListener
-
getTitle
public String getTitle()
-
getOptions
public List<net.runelite.client.game.chatbox.ChatboxTextMenuInput.Entry> getOptions()
-
getOnClose
public Runnable getOnClose()
-
-