public class MboValueAdapter extends java.lang.Object implements MboValueListener, MboConstants
| Modifier and Type | Field and Description |
|---|---|
MboValue |
mboValue
Field we are listening to
|
TYPE_DOMAIN, TYPE_FIELDCLASS, TYPE_KEY, TYPE_UNKNOWNALLROWS, CHANGEDBY_USER, COUNT_ADDITIONS, COUNT_AFTERSAVE, COUNT_DATABASE, COUNT_DELETED, COUNT_EXISTING, DBCONFIG, DELAYVALIDATION, DELAYVALIDATIONONLY, DISCARDABLE, GOTCOMPLETEWHERE, HIDDEN, NO_RELATEDMBOS_OF_OWNERSCHILDREN_FETCH, NOACCESSCHECK, NOACTION, NOADD, NOCOMMIT, NODELETE, NONE, NOOVERWRITE, NOSAVE, NOSETVALUE, NOUPDATE, NOVALIDATION, NOVALIDATION_AND_NOACTION, NOVALIDATION_AND_NOACTION_ALLOWCROSSOVER, READONLY, REBUILD, REQUIRED, SAMEVALUEVALIDATION, SETBYPARENT, USER| Constructor and Description |
|---|
MboValueAdapter()
Constructor
|
MboValueAdapter(MboValue mbv)
Constructor
Overridden classes must call super and pass the parameter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
action()
Called if the data is valid, to perform some action
Does nothing
|
java.lang.String[] |
getAppLink()
Default implementation to return null.
|
ServiceRemote |
getIntegrationService()
Convenience Method for getting the IntegrationServiceRemote.
|
MboSetRemote |
getList()
Get value list (if it has one).
|
java.lang.String |
getLookupName()
Default implementation to return null.
|
java.lang.String |
getMatchingAttr()
Defautl implementation to return null.
|
java.lang.String |
getMatchingAttr(java.lang.String sourceObjectName)
Defautl implementation to return null.
|
MboValue |
getMboValue()
Get the MboValue that this domain is attached to
|
MboValue |
getMboValue(java.lang.String attribute)
Get the mbo value for the specified attribute
|
protected Translate |
getTranslator()
Return the translator object which can be used to convert
locale sensitive strings
|
int |
getType()
Get the type of listener.
|
boolean |
hasList()
Has the MboValue got a value list ?
Returns false.
|
void |
init()
Initizalize
Does nothing in this implementation.
|
void |
initValue()
Called to initialize the MboValue's value.
|
void |
setType(int type)
Set the type of listener.
|
void |
setValueFromLookup(MboRemote sourceMbo)
The default implementation does nothing since the default getList() is false.
|
MboSetRemote |
smartFill(java.lang.String value,
boolean exact) |
MboSetRemote |
smartFind(java.lang.String value,
boolean exact) |
MboSetRemote |
smartFind(java.lang.String object,
java.lang.String value,
boolean exact) |
void |
validate()
Called to validate the data
Does nothing.
|
public MboValue mboValue
public MboValueAdapter()
public MboValueAdapter(MboValue mbv)
public MboValue getMboValue()
public MboValue getMboValue(java.lang.String attribute) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void init()
throws MXException,
java.rmi.RemoteException
init in interface MboValueListenerMXExceptionjava.rmi.RemoteExceptionpublic void initValue()
throws MXException,
java.rmi.RemoteException
initValue in interface MboValueListenerMXExceptionjava.rmi.RemoteExceptionpublic void validate()
throws MXException,
java.rmi.RemoteException
validate in interface MboValueListenerMXExceptionjava.rmi.RemoteExceptionpublic void action()
throws MXException,
java.rmi.RemoteException
action in interface MboValueListenerMXExceptionjava.rmi.RemoteExceptionpublic boolean hasList()
hasList in interface MboValueListenerpublic MboSetRemote getList() throws MXException, java.rmi.RemoteException
getList in interface MboValueListenerMXExceptionjava.rmi.RemoteExceptionpublic MboSetRemote smartFill(java.lang.String value, boolean exact) throws MXException, java.rmi.RemoteException
smartFill in interface MboValueListenerMXExceptionjava.rmi.RemoteExceptionpublic MboSetRemote smartFind(java.lang.String value, boolean exact) throws MXException, java.rmi.RemoteException
smartFind in interface MboValueListenerMXExceptionjava.rmi.RemoteExceptionpublic MboSetRemote smartFind(java.lang.String object, java.lang.String value, boolean exact) throws MXException, java.rmi.RemoteException
smartFind in interface MboValueListenerMXExceptionjava.rmi.RemoteExceptionprotected Translate getTranslator()
public ServiceRemote getIntegrationService() throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXExceptionpublic void setValueFromLookup(MboRemote sourceMbo) throws MXException, java.rmi.RemoteException
setValueFromLookup in interface MboValueListenerMXExceptionjava.rmi.RemoteExceptionpsdi.mbo.MboValueListner#setvalueFromLookuppublic java.lang.String[] getAppLink()
throws MXException,
java.rmi.RemoteException
getAppLink in interface MboValueListenerMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getLookupName()
throws MXException,
java.rmi.RemoteException
getLookupName in interface MboValueListenerMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getMatchingAttr()
throws MXException,
java.rmi.RemoteException
getMatchingAttr in interface MboValueListenerMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getMatchingAttr(java.lang.String sourceObjectName)
throws MXException,
java.rmi.RemoteException
getMatchingAttr in interface MboValueListenerMXExceptionjava.rmi.RemoteExceptionpublic void setType(int type)
setType in interface MboValueListenertype - public int getType()
getType in interface MboValueListenerMboValueListener.TYPE_UNKNOWN,
MboValueListener.TYPE_FIELDCLASS,
MboValueListener.TYPE_DOMAIN,
MboValueListener.TYPE_KEY