public class OAObjectEditQueryDelegate extends Object
for list of types that can be used.
,
annotation that lists proppaths and values used for enabled/visible.
,
to see how class and annotation information is stored in Info objects (class/prop/calc/link/method)
Constructor and Description |
---|
OAObjectEditQueryDelegate() |
Modifier and Type | Method and Description |
---|---|
protected static void |
_processEditQuery(boolean bFollowLink,
OAObjectEditQuery editQuery,
Hub hubThis,
Class<? extends OAObject> clazz,
OAObject oaObj,
String propertyName,
Object oldValue,
Object newValue,
boolean bProcessedCheck)
This will process an Edit Query, calling editQuery 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 |
_processEditQueryForHubListeners(OAObjectEditQuery editQuery,
Hub hub,
OAObject oaObj,
String propertyName,
Object oldValue,
Object newValue) |
protected static void |
_recursiveProcess(OAObjectEditQuery editQuery,
OAObject oaObj,
String propertyName,
OALinkInfo li) |
protected static void |
addDependentProps(Hub hub,
String prefix,
String[] viewDependentProperties,
String[] contextDependentProperties,
boolean bProcessed,
HubChangeListener changeListener) |
static void |
addEditQueryChangeListeners(Hub hub,
Class cz,
String prop,
String ppPrefix,
HubChangeListener changeListener,
boolean bEnabled)
Used by HubChangedListener.addXxx to listen to dependencies found for an EditQuery.
|
protected static void |
callEditQuery(OAObject oaObj,
String propertyName,
OAObjectEditQuery em) |
static void |
demoAllowAllToPass(boolean b) |
static OAObjectEditQuery |
getAfterCopyEditQuery(OAObject oaObj,
OAObject oaObjCopy) |
static boolean |
getAllowAdd(Hub hub) |
static boolean |
getAllowAdd(Hub hub,
boolean bProcessedCheck) |
static OAObjectEditQuery |
getAllowAddEditQuery(Hub hub,
boolean bProcessedCheck) |
static boolean |
getAllowCopy(OAObject oaObj) |
static OAObjectEditQuery |
getAllowCopyEditQuery(OAObject oaObj) |
static boolean |
getAllowDelete(Hub hub,
OAObject obj,
boolean bProcessedCheck) |
static OAObjectEditQuery |
getAllowDeleteEditQuery(Hub hub,
OAObject oaObj,
boolean bProcessedCheck) |
static boolean |
getAllowEnabled(Hub hub) |
static boolean |
getAllowEnabled(Hub hub,
OAObject obj,
String name) |
static boolean |
getAllowEnabled(Hub hub,
OAObject obj,
String name,
boolean bProcessedCheck) |
static boolean |
getAllowEnabled(OAObject obj,
String name) |
static boolean |
getAllowEnabled(OAObject obj,
String name,
boolean bProcessedCheck) |
static OAObjectEditQuery |
getAllowEnabledEditQuery(Hub hub) |
static OAObjectEditQuery |
getAllowEnabledEditQuery(Hub hubThis,
OAObject oaObj,
String name,
boolean bProcessedCheck) |
static boolean |
getAllowRemove(Hub hub,
boolean bProcessedCheck) |
static boolean |
getAllowRemoveAll(Hub hub) |
static OAObjectEditQuery |
getAllowRemoveAllEditQuery(Hub hub) |
static OAObjectEditQuery |
getAllowRemoveEditQuery(Hub hub,
boolean bProcessedCheck) |
static boolean |
getAllowSave(OAObject obj) |
static OAObjectEditQuery |
getAllowSaveEditQuery(OAObject oaObj) |
static boolean |
getAllowVisible(Class<? extends OAObject> clazz,
String name) |
static boolean |
getAllowVisible(Hub hub) |
static boolean |
getAllowVisible(OAObject obj,
String name) |
static OAObjectEditQuery |
getAllowVisibleEditQuery(Class clazz,
String name) |
static OAObjectEditQuery |
getAllowVisibleEditQuery(Hub hub) |
static OAObjectEditQuery |
getAllowVisibleEditQuery(Hub hubThis,
OAObject oaObj,
String name) |
static OAObjectEditQuery |
getAllowVisibleEditQuery(OAObject oaObj,
String name) |
static OAObjectEditQuery |
getConfirmAddEditQuery(Hub hub,
OAObject oaObj,
String confirmMessage,
String confirmTitle) |
static OAObjectEditQuery |
getConfirmCommandEditQuery(OAObject oaObj,
String methodName,
String confirmMessage,
String confirmTitle) |
static OAObjectEditQuery |
getConfirmDeleteEditQuery(OAObject oaObj,
String confirmMessage,
String confirmTitle) |
static OAObjectEditQuery |
getConfirmPropertyChangeEditQuery(OAObject oaObj,
String property,
Object newValue,
String confirmMessage,
String confirmTitle) |
static OAObjectEditQuery |
getConfirmRemoveEditQuery(Hub hub,
OAObject oaObj,
String confirmMessage,
String confirmTitle) |
static OAObjectEditQuery |
getConfirmSaveEditQuery(OAObject oaObj,
String confirmMessage,
String confirmTitle) |
static OAObject |
getCopy(OAObject oaObj) |
static OAObjectEditQuery |
getCopyEditQuery(OAObject oaObj) |
static String |
getFormat(OAObject obj,
String propertyName,
String defaultFormat) |
static String |
getToolTip(OAObject obj,
String propertyName,
String defaultToolTip) |
static boolean |
getVerifyAdd(Hub hub,
OAObject obj) |
static OAObjectEditQuery |
getVerifyAddEditQuery(Hub hub,
OAObject oaObj) |
static OAObjectEditQuery |
getVerifyCommandEditQuery(OAObject oaObj,
String methodName) |
static boolean |
getVerifyDelete(OAObject obj) |
static OAObjectEditQuery |
getVerifyDeleteEditQuery(OAObject oaObj) |
static boolean |
getVerifyPropertyChange(OAObject obj,
String propertyName,
Object oldValue,
Object newValue) |
static OAObjectEditQuery |
getVerifyPropertyChangeEditQuery(OAObject oaObj,
String propertyName,
Object oldValue,
Object newValue) |
static boolean |
getVerifyRemove(Hub hub,
OAObject obj) |
static boolean |
getVerifyRemoveAll(Hub hub) |
static OAObjectEditQuery |
getVerifyRemoveAllEditQuery(Hub hub) |
static OAObjectEditQuery |
getVerifyRemoveEditQuery(Hub hub,
OAObject oaObj) |
static boolean |
getVerifySave(OAObject obj) |
static OAObjectEditQuery |
getVerifySaveEditQuery(OAObject oaObj) |
static void |
onEditQueryModel(Class clazz,
String property,
OAObjectModel model)
Used by OAObjectModel objects to allow model object to be updated after it is created by calling EditQuery method.
|
protected static void |
processEditQuery(OAObjectEditQuery editQuery,
Class<? extends OAObject> clazz,
String propertyName,
Object oldValue,
Object newValue) |
protected static void |
processEditQuery(OAObjectEditQuery editQuery,
Hub hubThis,
Class<? extends OAObject> clazz,
OAObject oaObj,
String propertyName,
Object oldValue,
Object newValue,
boolean bProcessedCheck) |
protected static void |
processEditQuery(OAObjectEditQuery editQuery,
OAObject oaObj,
String propertyName,
Object oldValue,
Object newValue) |
protected static void |
processEditQueryForHubListeners(OAObjectEditQuery editQuery,
Hub hub,
OAObject oaObj,
String propertyName,
Object oldValue,
Object newValue) |
protected static void |
recursiveProcess(OAObjectEditQuery editQuery,
OAObject oaObj,
String propertyName) |
static void |
renderLabel(OAObject obj,
String propertyName,
JLabel label) |
protected static void |
updateEditProcessed(OAObjectEditQuery editQuery) |
static void |
updateLabel(OAObject obj,
String propertyName,
JLabel label) |
public static boolean getAllowVisible(Hub hub)
public static boolean getAllowEnabled(Hub hub, OAObject obj, String name, boolean bProcessedCheck)
public static boolean getAllowEnabled(OAObject obj, String name, boolean bProcessedCheck)
public static boolean getAllowEnabled(Hub hub)
public static boolean getAllowCopy(OAObject oaObj)
public static boolean getVerifyPropertyChange(OAObject obj, String propertyName, Object oldValue, Object newValue)
public static boolean getAllowAdd(Hub hub)
public static boolean getAllowAdd(Hub hub, boolean bProcessedCheck)
public static boolean getAllowRemove(Hub hub, boolean bProcessedCheck)
public static boolean getAllowRemoveAll(Hub hub)
public static boolean getVerifyRemoveAll(Hub hub)
public static boolean getVerifyDelete(OAObject obj)
public static boolean getAllowSave(OAObject obj)
public static boolean getVerifySave(OAObject obj)
public static String getToolTip(OAObject obj, String propertyName, String defaultToolTip)
public static OAObjectEditQuery getAllowVisibleEditQuery(Hub hubThis, OAObject oaObj, String name)
public static OAObjectEditQuery getAllowVisibleEditQuery(OAObject oaObj, String name)
public static OAObjectEditQuery getAllowVisibleEditQuery(Class clazz, String name)
public static OAObjectEditQuery getAllowVisibleEditQuery(Hub hub)
public static OAObjectEditQuery getAllowEnabledEditQuery(Hub hubThis, OAObject oaObj, String name, boolean bProcessedCheck)
public static OAObjectEditQuery getAllowEnabledEditQuery(Hub hub)
public static OAObjectEditQuery getAllowCopyEditQuery(OAObject oaObj)
public static OAObjectEditQuery getCopyEditQuery(OAObject oaObj)
public static OAObjectEditQuery getAfterCopyEditQuery(OAObject oaObj, OAObject oaObjCopy)
public static OAObjectEditQuery getVerifyPropertyChangeEditQuery(OAObject oaObj, String propertyName, Object oldValue, Object newValue)
public static OAObjectEditQuery getVerifyCommandEditQuery(OAObject oaObj, String methodName)
protected static void updateEditProcessed(OAObjectEditQuery editQuery)
public static OAObjectEditQuery getAllowAddEditQuery(Hub hub, boolean bProcessedCheck)
public static OAObjectEditQuery getVerifyAddEditQuery(Hub hub, OAObject oaObj)
public static OAObjectEditQuery getAllowRemoveEditQuery(Hub hub, boolean bProcessedCheck)
public static OAObjectEditQuery getVerifyRemoveEditQuery(Hub hub, OAObject oaObj)
public static OAObjectEditQuery getAllowRemoveAllEditQuery(Hub hub)
public static OAObjectEditQuery getVerifyRemoveAllEditQuery(Hub hub)
public static OAObjectEditQuery getAllowSaveEditQuery(OAObject oaObj)
public static OAObjectEditQuery getVerifySaveEditQuery(OAObject oaObj)
public static OAObjectEditQuery getAllowDeleteEditQuery(Hub hub, OAObject oaObj, boolean bProcessedCheck)
public static OAObjectEditQuery getVerifyDeleteEditQuery(OAObject oaObj)
public static OAObjectEditQuery getConfirmPropertyChangeEditQuery(OAObject oaObj, String property, Object newValue, String confirmMessage, String confirmTitle)
public static OAObjectEditQuery getConfirmCommandEditQuery(OAObject oaObj, String methodName, String confirmMessage, String confirmTitle)
public static OAObjectEditQuery getConfirmSaveEditQuery(OAObject oaObj, String confirmMessage, String confirmTitle)
public static OAObjectEditQuery getConfirmDeleteEditQuery(OAObject oaObj, String confirmMessage, String confirmTitle)
public static OAObjectEditQuery getConfirmRemoveEditQuery(Hub hub, OAObject oaObj, String confirmMessage, String confirmTitle)
public static OAObjectEditQuery getConfirmAddEditQuery(Hub hub, OAObject oaObj, String confirmMessage, String confirmTitle)
protected static void processEditQuery(OAObjectEditQuery editQuery, OAObject oaObj, String propertyName, Object oldValue, Object newValue)
protected static void processEditQuery(OAObjectEditQuery editQuery, Class<? extends OAObject> clazz, String propertyName, Object oldValue, Object newValue)
protected static void processEditQuery(OAObjectEditQuery editQuery, Hub hubThis, Class<? extends OAObject> clazz, OAObject oaObj, String propertyName, Object oldValue, Object newValue, boolean bProcessedCheck)
public static void demoAllowAllToPass(boolean b)
protected static void _processEditQuery(boolean bFollowLink, OAObjectEditQuery editQuery, Hub hubThis, Class<? extends OAObject> clazz, OAObject oaObj, String propertyName, Object oldValue, Object newValue, boolean bProcessedCheck)
protected static void recursiveProcess(OAObjectEditQuery editQuery, OAObject oaObj, String propertyName)
protected static void _recursiveProcess(OAObjectEditQuery editQuery, OAObject oaObj, String propertyName, OALinkInfo li)
protected static void processEditQueryForHubListeners(OAObjectEditQuery editQuery, Hub hub, OAObject oaObj, String propertyName, Object oldValue, Object newValue)
protected static void _processEditQueryForHubListeners(OAObjectEditQuery editQuery, Hub hub, OAObject oaObj, String propertyName, Object oldValue, Object newValue)
protected static void callEditQuery(OAObject oaObj, String propertyName, OAObjectEditQuery em)
public static void onEditQueryModel(Class clazz, String property, OAObjectModel model)
clazz,
- ex: from SalesOrderModel, SalesOrder.classproperty
- ex: "SalesOrderItems"model
- ex: SalesOrderItemModelpublic static void addEditQueryChangeListeners(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–2019 ViaOA. All rights reserved.