com.eknowlogie.aliorsum.primitive
Class DoubleUI

Object
  |
  +--UI
        |
        +--ElementaryUI
              |
              +--DoubleUI
Direct Known Subclasses:
CurrencyDoubleUI

public class DoubleUI
extends ElementaryUI

This UI supports both elements of type double and Double. That is convenient because for a class field of type double, the reflective field type (i.e. "field. getType ()") will be float, but the reflective extraction of its value (i.e. "field. get (parentObject)") returns an object of type Double.

Author:
Romel Rivera, eKnowlogie. Inc.

Field Summary
 
Fields inherited from class ElementaryUI
inputRequested
 
Fields inherited from class UI
enclosingUI, INVALID_FORMAT, INVALID_NUMERIC_FORMAT, invalidInputValue, MISSING_REQUIRED, out, qualifiedName, recipient, recipientClass, recipientField, submissionCount, uiActivity, valid, validationMessages
 
Constructor Summary
DoubleUI()
           
 
Method Summary
 Object parse(String inputValue)
          This method parses the input value and either converts the input into an object of the recipient's type, or it posts one or more validation messages with this UI.
 
Methods inherited from class ElementaryUI
clearValidation, format, getInvalidInput, getValue, init, init, isMissingRequired, render, renderCols, renderVal, setValue, validate, validate, wasInputSubmitted
 
Methods inherited from class UI
addValidation, beginOutputCollection, concatenateValidation, endOutputCollection, formatToolTip, getFactory, getQualifiedName, getRecipient, getTitle, include, isReadOnly, isValid, renderTitle, renderTitle, renderTitle, renderTitleAndValidation, renderValidation
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleUI

public DoubleUI()
Method Detail

parse

public Object parse(String inputValue)
Description copied from class: ElementaryUI

This method parses the input value and either converts the input into an object of the recipient's type, or it posts one or more validation messages with this UI. It does not set the recipient to the resulting converted value as that is done by ElementaryUI.validate(String). This method is meant only for internal use by the validation methods, specially when subclassing this class.

Overrides:
parse in class ElementaryUI


Copyright © 2004 eKnowlogie, Inc., All rights reserved. Use is subject to license terms.
Aliorsum and eKnowlogie are trademarks or registered trademarks of eKnowlogie, Inc.