DecimalEditAdapter class

The class that any extension class for decimal edit needs to extend.

Syntax

public abstract class DecimalEditAdapter extends 

Base class

Members

All members of DecimalEditAdapter, including inherited members.

Methods
Modifier and Type Method Description
public abstract void initialize(DecimalEditModel, Context) Called to initialize the extension with its model and Android context.
public void valueChanged(double) This method is called by the host to inform the adapter that the field's underlying value has changed and the UI needs to be updated to display the correct value.
Inherited members from FieldAdapter
Modifier and Type Member Description
public AutosizeBehavior getAutosizeBehavior() Called by Agentry to ask if the extension view needs to auto-size to accommodate the displayed data.
public int getContentHeightForAutosizing(int) Agentry will call this method if getAutosizeBehavior() is overridden to return AutosizeBehavior.Autosize_WrapContent.
public String getExtensionString(String) Called by the Agentry to get the value for the specified string.
public abstract View getView() Called to get the Android View that will be added as a subview to the Agentry layout.
public boolean isAgentryDisplayingLabel() Called to ask if Agentry should handle displaying the label.
public boolean isAgentryDisplayingValidationFailure() Called to ask if Agentry should handle displaying validation failure text or leave it to the extension.
public void onActivityResult(int, int, Intent) Called from activity launched through FieldModel.launchActivity(Intent intent, int requestCode) Allows extension the opportunity to handle any result from the now closed activity.
public void setEnabled(boolean) Called to inform the extension that the Agentry field's enable state has changed.
public void setHyperlinkEnabled(boolean) Called to inform the extension that the enabled state of the label hyperlink action has changed.
public void setValid(boolean, String) Called to inform the extension that the Agentry field's valid state has changed.
public void setVisible(boolean) Called to inform the extension that the Agentry field's visibility has changed.
public void updateLabel(String) Called to inform the extension that the label text has changed.