public abstract class AbstractInlineMenuButton extends Object implements InlineMenuButton
| Modifier and Type | Field and Description |
|---|---|
protected ButtonCallback |
buttonCallback |
protected InlineMenu |
owner |
protected int |
row |
protected String |
text |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractInlineMenuButton(InlineMenu owner,
int row) |
protected |
AbstractInlineMenuButton(InlineMenu owner,
int row,
int num)
Deprecated.
|
protected |
AbstractInlineMenuButton(InlineMenu owner,
int row,
int num,
String text)
Deprecated.
|
protected |
AbstractInlineMenuButton(InlineMenu owner,
int row,
String text) |
| Modifier and Type | Method and Description |
|---|---|
void |
assignMenu(InlineMenu owner)
Assign this button to it's menu owner.
|
ButtonCallback |
getCallback() |
InlineMenu |
getMenu() |
int |
getNum()
Deprecated.
|
String |
getText() |
protected InlineKeyboardButton.InlineKeyboardButtonBuilder |
keyboardBuilder()
Sets the text of the button and the callback data to the following.
|
InlineMenuButton |
setCallback(ButtonCallback callback)
Set the callback of this button
|
void |
setText(String text)
Set the text of the button
|
void |
updateRow(int row) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteCallback, toKeyboardButtonhandlePressprotected ButtonCallback buttonCallback
protected String text
protected int row
protected InlineMenu owner
protected AbstractInlineMenuButton(InlineMenu owner, int row)
@Deprecated protected AbstractInlineMenuButton(InlineMenu owner, int row, int num)
protected AbstractInlineMenuButton(InlineMenu owner, int row, String text)
@Deprecated protected AbstractInlineMenuButton(InlineMenu owner, int row, int num, String text)
public InlineMenu getMenu()
getMenu in interface InlineMenuButtonpublic void setText(String text)
InlineMenuButtonsetText in interface InlineMenuButtontext - Text to set it topublic String getText()
getText in interface InlineMenuButtonpublic ButtonCallback getCallback()
getCallback in interface InlineMenuButtonpublic InlineMenuButton setCallback(ButtonCallback callback)
InlineMenuButtonsetCallback in interface InlineMenuButtoncallback - Callback to setpublic void assignMenu(InlineMenu owner)
InlineMenuButtonassignMenu in interface InlineMenuButtonowner - New menu owner@Deprecated public int getNum()
public void updateRow(int row)
updateRow in interface InlineMenuButtonprotected InlineKeyboardButton.InlineKeyboardButtonBuilder keyboardBuilder()
Copyright © 2017. All rights reserved.