public class OACalcInfo extends Object implements Serializable
Note: listeners for dependent properties are only created when there is a HubListener for the calculated property itself.
Example: Class Emp String firstName String lastName Dept dept; public String fullName() { return firstName + " " + lastName + " Dept " + dept.getName(); } OACalcInfo = new OACalcInfo("fullName",String { "firstName", "lastName", "dept.name" } );OACalcInfo is created and then stored within an OAObjectInfo object and is used by an OAObject. OAObject will automatically listen for property changes on any of the depended properties and will notify listeners whenever any change occurs that might affect the calculated property.
For more information about this package, see documentation.
OAObjectInfo
,
Serialized FormConstructor and Description |
---|
OACalcInfo(String name,
String[] props)
Create new Calculated Property.
|
OACalcInfo(String name,
String[] props,
boolean bIsForHub) |
public OACalcInfo(String name, String[] props)
Example: new CalcInfo("totalCostOfOrder",String { "orderItem.qty", "orderItem.product.cost", "customer.freight", "customer.state.taxRate" } );
name
- name of calculated propertyprops
- array of depend property pathspublic Class getClassType()
public void setClassType(Class classType)
public String getName()
public boolean isHtml()
public void setHtml(boolean b)
public String[] getDependentProperties()
public void setDependentProperties(String[] props)
public boolean getIsForHub()
public OACalculatedProperty getOACalculatedProperty()
public void setOACalculatedProperty(OACalculatedProperty c)
public void setViewDependentProperties(String[] ss)
public String[] getViewDependentProperties()
public void setContextDependentProperties(String[] ss)
public String[] getContextDependentProperties()
public String getEnabledProperty()
public void setEnabledProperty(String s)
public boolean getEnabledValue()
public void setEnabledValue(boolean b)
public String getVisibleProperty()
public void setVisibleProperty(String s)
public boolean getVisibleValue()
public void setVisibleValue(boolean b)
public String getContextEnabledProperty()
public void setContextEnabledProperty(String s)
public boolean getContextEnabledValue()
public void setContextEnabledValue(boolean b)
public String getContextVisibleProperty()
public void setContextVisibleProperty(String s)
public boolean getContextVisibleValue()
public void setContextVisibleValue(boolean b)
public void setEditQueryMethod(Method m)
public Method getEditQueryMethod()
Copyright © 1999–2019 ViaOA. All rights reserved.