ButtonDisplayModel interface

Interface given to a button display extension object so it can call back into the host.

Syntax

public interface ButtonDisplayModel extends FieldModel

Members

All members of ButtonDisplayModel, including inherited members.

Methods
Modifier and Type Method Description
public AgentryImage getButtonImage() Returns the image associated with the button.
public String getButtonText() Returns the text that the button should display.
public ButtonType getButtonType() Returns the button type.
public boolean hasAction() Returns whether or not there is an action tied to the button.
public boolean isButtonSelected() Returns whether or not the button is selected.
public ProcessInputReturn processInput() Called to process the button push.
Inherited members from FieldModel
Modifier and Type Member Description
public ActionResult executeAgentryAction(String) Asks Agentry to execute the action specified by name.
public ActionResult executeHyperlinkAction() Asks Agentry to run the field's hyperlink action.
public ActionEnableType getAgentryActionEnableState(String) Asks Agentry what the current enable state is for the action specified by name.
public String getAgentryString(String) Asks Agentry for a specific string value.
public String getLabel() Returns the label text for the field.
public boolean isAutosizeSupported() Checks whether the the field is allowed to automatically decide its own height.
public boolean isEnabled() Returns whether the field is currently enabled based on current rule evaluation.
public boolean isHidden() Returns whether or not the field is currently hidden based on current rule evaluations.
public boolean isHyperlinkEnabled() Returns whether or not the label hyperlink action is enabled.
public void launchActivity(Intent, int) If the extension needs to launch an new activity, it has to call through this method to do it.
public void requestLayoutHeight(int) This is called by a field's UI extension to tell the model's layout manager that the field needs to have a specific pixel height.