Class HostedPaymentForm

java.lang.Object
org.apache.click.control.AbstractControl
org.apache.click.control.AbstractContainer
org.apache.click.control.Form
com.avoka.fc.core.control.HostedPaymentForm
All Implemented Interfaces:
Serializable, org.apache.click.Control, org.apache.click.control.Container, org.apache.click.Stateful

public class HostedPaymentForm extends org.apache.click.control.Form
Provides a credit card payment form.
See Also:
  • Field Summary

    Fields inherited from class org.apache.click.control.Form

    actionURL, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, buttonAlign, buttonList, buttonStyle, columns, defaultButtonStyleClass, defaultFieldSize, defaultFieldStyleClass, defaultLabelStyleClass, disabled, enctype, error, errorsAlign, errorsPosition, errorsStyle, fieldList, fieldStyle, fieldWidths, FOCUS_JAVASCRIPT, FORM_NAME, formSubmission, javaScriptValidation, labelAlign, labelsPosition, labelStyle, method, MULTIPART_FORM_DATA, POSITION_BOTTOM, POSITION_LEFT, POSITION_MIDDLE, POSITION_TOP, readonly, SUBMIT_CHECK, validate

    Fields inherited from class org.apache.click.control.AbstractContainer

    controlMap, controls

    Fields inherited from class org.apache.click.control.AbstractControl

    actionListener, attributes, behaviors, headElements, listener, listenerMethod, messages, name, parent, styles

    Fields inherited from interface org.apache.click.Control

    CONTROL_MESSAGES
  • Constructor Summary

    Constructors
    Constructor
    Description
    Create a new credit card payment form.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addLogo(org.apache.click.Control logo)
    Add the logo to the form.
    void
    addPaySubmit(org.apache.click.control.Submit paySubmit)
    Add the payment submit button to the form, and attache the check_submit click handler.
    org.apache.click.control.Field
    Return the amount charged field.
    List<org.apache.click.element.Element>
    Return the list of head elements to be included in the page
    void
    Initialize the form.

    Methods inherited from class org.apache.click.control.Form

    add, add, add, add, clearErrors, clearValues, copyFrom, copyFrom, copyTo, copyTo, endTag, getActionURL, getButtonAlign, getButtonList, getButtonStyle, getColumns, getControlSizeEst, getDefaultButtonStyleClass, getDefaultFieldSize, getDefaultFieldStyleClass, getDefaultLabelStyleClass, getEnctype, getError, getErrorFields, getErrorsAlign, getErrorsPosition, getErrorsStyle, getField, getFieldList, getFields, getFieldStyle, getFieldValue, getFieldWidths, getFormSizeEst, getJavaScriptValidation, getLabelAlign, getLabelsPosition, getLabelStyle, getMethod, getState, getTag, getValidate, hasPostError, insert, isDisabled, isFormSubmission, isJavaScriptValidation, isReadonly, isValid, onDestroy, onProcess, onSubmitCheck, onSubmitCheck, onSubmitCheck, performSubmitCheck, remove, removeField, removeFields, removeState, render, renderButtons, renderControls, renderErrors, renderFields, renderFocusJavaScript, renderHeader, renderTagEnd, renderValidationJavaScript, replace, restoreState, saveState, setActionURL, setButtonAlign, setButtonStyle, setColumns, setDefaultButtonStyleClass, setDefaultFieldSize, setDefaultFieldStyleClass, setDefaultLabelStyleClass, setDisabled, setEnctype, setError, setErrorsAlign, setErrorsPosition, setErrorsStyle, setFieldStyle, setJavaScriptValidation, setLabelAlign, setLabelsPosition, setLabelStyle, setListener, setMethod, setName, setReadonly, setState, setValidate, startTag, validate, validateFileUpload

    Methods inherited from class org.apache.click.control.AbstractContainer

    contains, getControl, getControlMap, getControls, hasControls, onRender, renderChildren, renderContent, renderTagEnd, toString

    Methods inherited from class org.apache.click.control.AbstractControl

    addBehavior, addStyleClass, appendAttributes, classExists, dispatchActionEvent, getActionListener, getAttribute, getAttributes, getBehaviors, getContext, getHtmlImports, getId, getMessage, getMessage, getMessages, getName, getPage, getParent, getStyle, getStyles, hasAttribute, hasAttributes, hasBehaviors, hasStyles, isAjaxTarget, onDeploy, removeBehavior, removeStyleClass, renderTagBegin, setActionListener, setAttribute, setId, setParent, setStyle

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.click.Control

    getBehaviors, getContext, getId, getMessages, getName, getParent, hasBehaviors, isAjaxTarget, onDeploy, setParent
  • Constructor Details

    • HostedPaymentForm

      public HostedPaymentForm()
      Create a new credit card payment form.
  • Method Details

    • onInit

      public void onInit()
      Initialize the form.
      Specified by:
      onInit in interface org.apache.click.Control
      Overrides:
      onInit in class org.apache.click.control.AbstractContainer
    • addPaySubmit

      public void addPaySubmit(org.apache.click.control.Submit paySubmit)
      Add the payment submit button to the form, and attache the check_submit click handler.
      Parameters:
      paySubmit - add the payment submit button to the form
    • getAmountChargedField

      public org.apache.click.control.Field getAmountChargedField()
      Return the amount charged field.
      Returns:
      the amount charged field
    • getHeadElements

      public List<org.apache.click.element.Element> getHeadElements()
      Return the list of head elements to be included in the page
      Specified by:
      getHeadElements in interface org.apache.click.Control
      Overrides:
      getHeadElements in class org.apache.click.control.Form
      Returns:
      the list of head elements.
    • addLogo

      public void addLogo(org.apache.click.Control logo)
      Add the logo to the form.
      Parameters:
      logo - the control containing the logo