Compiere 3.1

org.compiere.model
Class CalloutEngine

java.lang.Object
  extended by org.compiere.model.CalloutEngine
All Implemented Interfaces:
Callout
Direct Known Subclasses:
CalloutAssignment, CalloutBankStatement, CalloutCashJournal, CalloutGLJournal, CalloutInOut, CalloutInventory, CalloutInvoice, CalloutInvoiceBatch, CalloutMovement, CalloutOrder, CalloutPayment, CalloutPaymentAllocate, CalloutPaySelection, CalloutProduct, CalloutProduction, CalloutProject, CalloutRequest, CalloutRequisition, CalloutTemplate, CalloutTimeExpense, CalloutUser

Deprecated.

@Deprecated
public class CalloutEngine
extends Object
implements Callout

Callout Engine.

Version:
$Id: CalloutEngine.java,v 1.3 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke

Constructor Summary
CalloutEngine()
          Deprecated. Constructor
 
Method Summary
 String convert(String methodName, String value)
          Deprecated. Conversion Rules.
 String dateAcct(Ctx ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
          Deprecated. Set Account Date to the date of the calling column.
protected static boolean isCalloutActive()
          Deprecated. Is Callout Active
 String rate(Ctx ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
          Deprecated. Rate - set Multiply Rate from Divide Rate and vice versa org.compiere.model.CalloutEngine.rate
protected static void setCalloutActive(boolean active)
          Deprecated. Set Callout (in)active
 String start(Ctx ctx, String methodName, int WindowNo, GridTab mTab, GridField mField, Object value, Object oldValue)
          Deprecated. Start Callout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalloutEngine

public CalloutEngine()
Deprecated. 
Constructor

Method Detail

start

public String start(Ctx ctx,
                    String methodName,
                    int WindowNo,
                    GridTab mTab,
                    GridField mField,
                    Object value,
                    Object oldValue)
Deprecated. 
Start Callout.

Callout's are used for cross field validation and setting values in other fields when returning a non empty (error message) string, an exception is raised

When invoked, the Tab model has the new value!

Specified by:
start in interface Callout
Parameters:
ctx - Context
methodName - Method name
WindowNo - current Window No
mTab - Model Tab
mField - Model Field
value - The new value
oldValue - The old value
Returns:
Error message or ""

convert

public String convert(String methodName,
                      String value)
Deprecated. 
Conversion Rules. Convert a String

Specified by:
convert in interface Callout
Parameters:
methodName - method name
value - the value
Returns:
converted String or Null if no method found

isCalloutActive

protected static boolean isCalloutActive()
Deprecated. 
Is Callout Active

Returns:
true if active

setCalloutActive

protected static void setCalloutActive(boolean active)
Deprecated. 
Set Callout (in)active

Parameters:
active - active

dateAcct

public String dateAcct(Ctx ctx,
                       int WindowNo,
                       GridTab mTab,
                       GridField mField,
                       Object value)
Deprecated. 
Set Account Date to the date of the calling column. org.compiere.model.CalloutEngine.dateAcct

Parameters:
ctx - context
WindowNo - window no
mTab - tab
mField - field
value - value
Returns:
null or error message

rate

public String rate(Ctx ctx,
                   int WindowNo,
                   GridTab mTab,
                   GridField mField,
                   Object value)
Deprecated. 
Rate - set Multiply Rate from Divide Rate and vice versa org.compiere.model.CalloutEngine.rate

Parameters:
ctx - context
WindowNo - window no
mTab - tab
mField - field
value - value
Returns:
null or error message

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.