public class OAObjectCallbackDelegate extends Object
Constructor and Description |
---|
OAObjectCallbackDelegate() |
Modifier and Type | Method and Description |
---|---|
protected static void |
_ownerHierProcess(OAObjectCallback objectCallback,
OAObject oaObj,
String propertyName,
OALinkInfo li,
int cnter) |
protected static void |
_processObjectCallback(OAObjectCallback objectCallback)
This will process an Edit Query, calling objectCallback methods on OAObject, properties, links, methods (depending on type of edit
query) used by: OAJfcController to see if an UI component should be enabled OAObjetEventDelegate.fireBeforePropertyChange Hub
add/remove/removeAll
|
protected static void |
_processObjectCallbackForHubListeners(OAObjectCallback objectCallback,
Hub hub,
OAObject oaObj,
String propertyName,
Object oldValue,
Object newValue) |
protected static void |
addDependentProps(Hub hub,
String prefix,
String[] viewDependentProperties,
String[] contextDependentProperties,
boolean bProcessed,
HubChangeListener changeListener) |
static void |
addObjectCallbackChangeListeners(Hub hub,
Class cz,
String prop,
String ppPrefix,
HubChangeListener changeListener,
boolean bEnabled)
Used by HubChangeListener.addXxx to listen to dependencies found for an ObjectCallback.
|
protected static void |
callObjectCallbackMethod(OAObjectCallback em) |
protected static void |
callObjectCallbackMethod(Object object,
String propertyName,
OAObjectCallback em) |
static void |
demoAllowAllToPass(boolean b) |
static OAObjectCallback |
getAfterCopyObjectCallback(OAObject oaObj,
OAObject oaObjCopy) |
static boolean |
getAllowAdd(Hub hub,
OAObject obj,
int checkType) |
static OAObjectCallback |
getAllowAddObjectCallback(Hub hub,
OAObject objAdd,
int checkType) |
static boolean |
getAllowCopy(OAObject oaObj) |
static OAObjectCallback |
getAllowCopyObjectCallback(OAObject oaObj) |
static boolean |
getAllowDelete(Hub hub,
OAObject obj) |
static OAObjectCallback |
getAllowDeleteObjectCallback(Hub hub,
OAObject objDelete) |
static OAObjectCallback |
getAllowDeleteObjectCallback(OAObject objDelete) |
static boolean |
getAllowEnabled(int checkType,
Hub hub,
OAObject obj,
String name) |
static OAObjectCallback |
getAllowEnabledObjectCallback(Hub hub) |
static OAObjectCallback |
getAllowEnabledObjectCallback(int checkType,
Hub hub,
OAObject oaObj,
String name) |
static OAObjectCallback |
getAllowNewObjectCallback(Class clazz) |
static OAObjectCallback |
getAllowNewObjectCallback(Hub hub) |
static boolean |
getAllowRemove(Hub hub,
OAObject obj,
int checkType) |
static boolean |
getAllowRemoveAll(Hub hub,
int checkType) |
static OAObjectCallback |
getAllowRemoveAllObjectCallback(Hub hub,
int checkType) |
static OAObjectCallback |
getAllowRemoveObjectCallback(Hub hub,
OAObject objRemove,
int checkType) |
static boolean |
getAllowSave(OAObject obj,
int checkType) |
static OAObjectCallback |
getAllowSaveObjectCallback(OAObject oaObj,
int checkType) |
static OAObjectCallback |
getAllowSubmitObjectCallback(OAObject obj)
Call oaobject class callback with type=AllowSubmit, and then calls each prop, owned links
|
static boolean |
getAllowVisible(Hub hub,
OAObject obj,
String name) |
static OAObjectCallback |
getAllowVisibleObjectCallback(Hub hub) |
static OAObjectCallback |
getAllowVisibleObjectCallback(Hub hub,
OAObject oaObj,
String name) |
static OAObjectCallback |
getConfirmAddObjectCallback(Hub hub,
OAObject oaObj,
String confirmMessage,
String confirmTitle) |
static OAObjectCallback |
getConfirmCommandObjectCallback(OAObject oaObj,
String methodName,
String confirmMessage,
String confirmTitle) |
static OAObjectCallback |
getConfirmDeleteObjectCallback(OAObject oaObj,
String confirmMessage,
String confirmTitle) |
static OAObjectCallback |
getConfirmPropertyChangeObjectCallback(OAObject oaObj,
String property,
Object newValue,
String confirmMessage,
String confirmTitle) |
static OAObjectCallback |
getConfirmRemoveAllObjectCallback(Hub hub,
String confirmMessage,
String confirmTitle) |
static OAObjectCallback |
getConfirmRemoveObjectCallback(Hub hub,
OAObject oaObj,
String confirmMessage,
String confirmTitle) |
static OAObjectCallback |
getConfirmSaveObjectCallback(OAObject oaObj,
String confirmMessage,
String confirmTitle) |
static OAObject |
getCopy(OAObject oaObj) |
static OAObjectCallback |
getCopyObjectCallback(OAObject oaObj) |
static String |
getFormat(OAObject obj,
String propertyName,
String defaultFormat) |
static OAObjectCallback |
getPreConfirmPropertyChangeObjectCallback(OAObject oaObj,
String property,
String confirmMessage,
String confirmTitle)
Used to get confirm message in advance, before the new value is known.
|
static String |
getToolTip(OAObject obj,
String propertyName,
String defaultToolTip) |
static boolean |
getVerifyAdd(Hub hub,
OAObject obj,
int checkType) |
static OAObjectCallback |
getVerifyAddObjectCallback(Hub hub,
OAObject oaObj,
int checkType) |
static OAObjectCallback |
getVerifyCommandObjectCallback(OAObject oaObj,
String methodName,
int checkType) |
static boolean |
getVerifyDelete(Hub hub,
OAObject obj,
int checkType) |
static OAObjectCallback |
getVerifyDeleteObjectCallback(Hub hub,
OAObject objDelete,
int checkType) |
static boolean |
getVerifyPropertyChange(int checkType,
OAObject obj,
String propertyName,
Object oldValue,
Object newValue) |
static OAObjectCallback |
getVerifyPropertyChangeObjectCallback(int checkType,
OAObject oaObj,
String propertyName,
Object oldValue,
Object newValue) |
static boolean |
getVerifyRemove(Hub hub,
OAObject obj,
int checkType) |
static boolean |
getVerifyRemoveAll(Hub hub,
int checkType) |
static OAObjectCallback |
getVerifyRemoveAllObjectCallback(Hub hub,
int checkType) |
static OAObjectCallback |
getVerifyRemoveObjectCallback(Hub hub,
OAObject objRemove,
int checkType) |
static boolean |
getVerifySave(OAObject obj,
int checkType) |
static OAObjectCallback |
getVerifySaveObjectCallback(OAObject oaObj,
int checkType) |
static void |
onObjectCallbackModel(Class clazz,
String property,
OAObjectModel model)
Used by OAObjectModel objects to allow model object to be updated after it is created by calling ObjectCallback method.
|
protected static void |
ownerHierProcess(OAObjectCallback objectCallback,
OAObject oaObj,
String propertyName)
Calls visible|enabled for this object and all of it's owner/parents
|
protected static void |
processObjectCallback(OAObjectCallback objectCallback) |
protected static void |
processObjectCallbackForHubListeners(OAObjectCallback objectCallback,
Hub hub,
OAObject oaObj,
String propertyName,
Object oldValue,
Object newValue) |
static void |
renderLabel(OAObject obj,
String propertyName,
JLabel label) |
static void |
updateEditProcessed(OAObjectCallback objectCallback) |
static void |
updateLabel(OAObject obj,
String propertyName,
JLabel label) |
public static boolean getAllowEnabled(int checkType, Hub hub, OAObject obj, String name)
public static boolean getAllowCopy(OAObject oaObj)
public static boolean getVerifyPropertyChange(int checkType, OAObject obj, String propertyName, Object oldValue, Object newValue)
public static boolean getAllowRemoveAll(Hub hub, int checkType)
public static boolean getVerifyRemoveAll(Hub hub, int checkType)
public static boolean getAllowSave(OAObject obj, int checkType)
public static boolean getVerifySave(OAObject obj, int checkType)
public static OAObjectCallback getAllowSubmitObjectCallback(OAObject obj)
obj
- public static String getToolTip(OAObject obj, String propertyName, String defaultToolTip)
public static OAObjectCallback getAllowVisibleObjectCallback(Hub hub)
public static OAObjectCallback getAllowVisibleObjectCallback(Hub hub, OAObject oaObj, String name)
public static OAObjectCallback getAllowEnabledObjectCallback(int checkType, Hub hub, OAObject oaObj, String name)
public static OAObjectCallback getAllowEnabledObjectCallback(Hub hub)
public static OAObjectCallback getAllowCopyObjectCallback(OAObject oaObj)
public static OAObjectCallback getCopyObjectCallback(OAObject oaObj)
public static OAObjectCallback getAfterCopyObjectCallback(OAObject oaObj, OAObject oaObjCopy)
public static OAObjectCallback getVerifyPropertyChangeObjectCallback(int checkType, OAObject oaObj, String propertyName, Object oldValue, Object newValue)
public static OAObjectCallback getVerifyCommandObjectCallback(OAObject oaObj, String methodName, int checkType)
public static void updateEditProcessed(OAObjectCallback objectCallback)
public static OAObjectCallback getAllowAddObjectCallback(Hub hub, OAObject objAdd, int checkType)
public static OAObjectCallback getVerifyAddObjectCallback(Hub hub, OAObject oaObj, int checkType)
public static OAObjectCallback getAllowNewObjectCallback(Class clazz)
public static OAObjectCallback getAllowNewObjectCallback(Hub hub)
public static OAObjectCallback getAllowRemoveObjectCallback(Hub hub, OAObject objRemove, int checkType)
public static OAObjectCallback getVerifyRemoveObjectCallback(Hub hub, OAObject objRemove, int checkType)
public static OAObjectCallback getAllowRemoveAllObjectCallback(Hub hub, int checkType)
public static OAObjectCallback getVerifyRemoveAllObjectCallback(Hub hub, int checkType)
public static OAObjectCallback getAllowSaveObjectCallback(OAObject oaObj, int checkType)
public static OAObjectCallback getVerifySaveObjectCallback(OAObject oaObj, int checkType)
public static OAObjectCallback getAllowDeleteObjectCallback(OAObject objDelete)
public static OAObjectCallback getAllowDeleteObjectCallback(Hub hub, OAObject objDelete)
public static OAObjectCallback getVerifyDeleteObjectCallback(Hub hub, OAObject objDelete, int checkType)
public static OAObjectCallback getPreConfirmPropertyChangeObjectCallback(OAObject oaObj, String property, String confirmMessage, String confirmTitle)
public static OAObjectCallback getConfirmPropertyChangeObjectCallback(OAObject oaObj, String property, Object newValue, String confirmMessage, String confirmTitle)
public static OAObjectCallback getConfirmCommandObjectCallback(OAObject oaObj, String methodName, String confirmMessage, String confirmTitle)
public static OAObjectCallback getConfirmSaveObjectCallback(OAObject oaObj, String confirmMessage, String confirmTitle)
public static OAObjectCallback getConfirmDeleteObjectCallback(OAObject oaObj, String confirmMessage, String confirmTitle)
public static OAObjectCallback getConfirmRemoveObjectCallback(Hub hub, OAObject oaObj, String confirmMessage, String confirmTitle)
public static OAObjectCallback getConfirmRemoveAllObjectCallback(Hub hub, String confirmMessage, String confirmTitle)
public static OAObjectCallback getConfirmAddObjectCallback(Hub hub, OAObject oaObj, String confirmMessage, String confirmTitle)
protected static void processObjectCallback(OAObjectCallback objectCallback)
public static void demoAllowAllToPass(boolean b)
protected static void _processObjectCallback(OAObjectCallback objectCallback)
protected static void ownerHierProcess(OAObjectCallback objectCallback, OAObject oaObj, String propertyName)
protected static void _ownerHierProcess(OAObjectCallback objectCallback, OAObject oaObj, String propertyName, OALinkInfo li, int cnter)
protected static void processObjectCallbackForHubListeners(OAObjectCallback objectCallback, Hub hub, OAObject oaObj, String propertyName, Object oldValue, Object newValue)
protected static void _processObjectCallbackForHubListeners(OAObjectCallback objectCallback, Hub hub, OAObject oaObj, String propertyName, Object oldValue, Object newValue)
protected static void callObjectCallbackMethod(OAObjectCallback em)
protected static void callObjectCallbackMethod(Object object, String propertyName, OAObjectCallback em)
public static void onObjectCallbackModel(Class clazz, String property, OAObjectModel model)
clazz,
- ex: from SalesOrderModel, SalesOrder.classproperty
- ex: "SalesOrderItems"model
- ex: SalesOrderItemModelpublic static void addObjectCallbackChangeListeners(Hub hub, Class cz, String prop, String ppPrefix, HubChangeListener changeListener, boolean bEnabled)
protected static void addDependentProps(Hub hub, String prefix, String[] viewDependentProperties, String[] contextDependentProperties, boolean bProcessed, HubChangeListener changeListener)
Copyright © 1999–2025 ViaOA. All rights reserved.