www.element4solution.com

e4s.application.appmodule
Class E4ModuleEditCompany.E4FormatterBelongsTo

java.lang.Object
  extended by e4s.application.appmodule.E4ModuleEditCompany.E4FormatterBelongsTo
All Implemented Interfaces:
E4EditingFormatter_Intf
Enclosing class:
E4ModuleEditCompany

public static class E4ModuleEditCompany.E4FormatterBelongsTo
extends java.lang.Object
implements E4EditingFormatter_Intf

Editing Formatter for the BELONGS-TO field.


Constructor Summary
E4ModuleEditCompany.E4FormatterBelongsTo(E4ApplObj_Intf applobj)
           
 
Method Summary
 java.lang.String formatDisplay(E4ApplObj_Intf applobj, java.lang.String id, E4DBSelect_Intf select)
          Format a String (or any value represented as String) for display.
 java.lang.String formatSearch(java.lang.String id)
          Reverse function for E4EditingFormatter_Intf.formatDisplay(e4s.application.E4ApplObj_Intf, java.lang.String, e4s.db.E4DBSelect_Intf), format an input to a database value for queries.
 java.lang.String getFormatterName()
          Get a name for display (selection) in the property section for the editing table.
 E4MethodPickup getMethodPickup()
          Get a method reflection to be used as pickup.
 E4SelectValues getSearchOptions()
          Return a Vector of E4SelectValues.OPTION elements for building a selection list on searching.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

E4ModuleEditCompany.E4FormatterBelongsTo

public E4ModuleEditCompany.E4FormatterBelongsTo(E4ApplObj_Intf applobj)
Method Detail

getFormatterName

public java.lang.String getFormatterName()
Description copied from interface: E4EditingFormatter_Intf
Get a name for display (selection) in the property section for the editing table.

Specified by:
getFormatterName in interface E4EditingFormatter_Intf
Returns:
a name for the user to identify this functionality, e.g. "Customer Formatting"

formatDisplay

public java.lang.String formatDisplay(E4ApplObj_Intf applobj,
                                      java.lang.String id,
                                      E4DBSelect_Intf select)
Description copied from interface: E4EditingFormatter_Intf
Format a String (or any value represented as String) for display. e.g. if value contains a customer number, return the customer name.

Specified by:
formatDisplay in interface E4EditingFormatter_Intf
Parameters:
applobj - a valid application object to be used for database access
id - String to be formatted. Return null, if no format is required.
select - the current database query (if necessary to retrieve other data)

getSearchOptions

public E4SelectValues getSearchOptions()
Description copied from interface: E4EditingFormatter_Intf
Return a Vector of E4SelectValues.OPTION elements for building a selection list on searching. e.g. create a list of containing "yes" and "no" for a boolean field.

Specified by:
getSearchOptions in interface E4EditingFormatter_Intf

formatSearch

public java.lang.String formatSearch(java.lang.String id)
Description copied from interface: E4EditingFormatter_Intf
Reverse function for E4EditingFormatter_Intf.formatDisplay(e4s.application.E4ApplObj_Intf, java.lang.String, e4s.db.E4DBSelect_Intf), format an input to a database value for queries. e.g. when s is a customer name, return a customer number.

Specified by:
formatSearch in interface E4EditingFormatter_Intf

getMethodPickup

public E4MethodPickup getMethodPickup()
Description copied from interface: E4EditingFormatter_Intf
Get a method reflection to be used as pickup.

Specified by:
getMethodPickup in interface E4EditingFormatter_Intf

www.element4solution.com