public class ButtonActions extends Object implements IRControlAction
IRControlAction.Button| Constructor and Description |
|---|
ButtonActions()
Constructor - no default action defined.
|
ButtonActions(String title)
Constructor - no default action defined.
|
ButtonActions(String title,
String defaultline,
Action defaultaction)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
actionOnButton(IRControlAction.Button button)
Act on button.
|
ButtonActions |
addLine(IRControlAction.Button button,
Action action)
Add a button with an action and no associated menu text.
|
ButtonActions |
addLine(IRControlAction.Button button,
String text)
Add a button (without an action) and its associated menu text.
|
ButtonActions |
addLine(IRControlAction.Button button,
String text,
Action action)
Add a button with an action and its associated menu text.
|
String |
text()
Get the formated menu for this set of button actions.
|
public ButtonActions(String title, String defaultline, Action defaultaction)
title - the title to be displayed in any menu associated with these
button actions.defaultline - the text to be displayed for the default actiondefaultaction - the default actionpublic ButtonActions(String title)
title - the title to be displayed in any menu associated with these
button actions.public ButtonActions()
public ButtonActions addLine(IRControlAction.Button button, String text) throws IOException
button - the buttontext - the menu textIOException - if problemspublic ButtonActions addLine(IRControlAction.Button button, Action action) throws IOException
button - the buttonaction - the action for the buttonIOException - if problemspublic ButtonActions addLine(IRControlAction.Button button, String text, Action action) throws IOException
button - the buttontext - the menu textaction - the action for the buttonIOException - if problemspublic String text()
public boolean actionOnButton(IRControlAction.Button button) throws IOException
actionOnButton in interface IRControlActionbutton - the buttonIOException - if problemsCopyright © 2017. All rights reserved.