public interface MboValueListener
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_DOMAIN
Indicates that a listener is from a domain ID (maxattribute.domainid).
|
static int |
TYPE_FIELDCLASS
Indicates that a listener is from a field validation class (maxattribute.classname).
|
static int |
TYPE_KEY
Indicates that a listener is for a key uniqueness check (maxattribute.primarykeycolseq).
|
static int |
TYPE_UNKNOWN
Indicates that the listener type has not been set.
|
Modifier and Type | Method and Description |
---|---|
void |
action()
Called if the data is valid, to perform some action
|
java.lang.String[] |
getAppLink()
Return the application names for the application link.
|
MboSetRemote |
getList()
Get value list (if it has one).
|
java.lang.String |
getLookupName()
Return the lookup name.
|
java.lang.String |
getMatchingAttr()
Get the attribute in the lookup table which matches this
field.
|
java.lang.String |
getMatchingAttr(java.lang.String sourceObjectName)
Get the attribute in the lookup table which matches this
field for the given source name
|
int |
getType()
Get the type of listener.
|
boolean |
hasList()
Has the MboValue got a value list ?
|
void |
init()
Called to initalize the listener.
|
void |
initValue()
Called to initialize the MboValue's value.
|
void |
setType(int type)
Set the type of listener.
|
void |
setValueFromLookup(MboRemote sourceMbo)
If hasList() is true for this listener, setValueFromLookup() method should be
implemented by the listner and will be invoked when
a value is set from the lookup list.
|
MboSetRemote |
smartFill(java.lang.String value,
boolean exact) |
MboSetRemote |
smartFind(java.lang.String value,
boolean exact) |
MboSetRemote |
smartFind(java.lang.String objectName,
java.lang.String value,
boolean exact) |
void |
validate()
Called to validate the data
|
static final int TYPE_UNKNOWN
static final int TYPE_FIELDCLASS
static final int TYPE_DOMAIN
static final int TYPE_KEY
void init() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
void initValue() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
void validate() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
void action() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
boolean hasList()
MboSetRemote getList() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
MboSetRemote smartFill(java.lang.String value, boolean exact) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
MboSetRemote smartFind(java.lang.String value, boolean exact) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
MboSetRemote smartFind(java.lang.String objectName, java.lang.String value, boolean exact) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
void setValueFromLookup(MboRemote sourceMbo) throws MXException, java.rmi.RemoteException
sourceMbo
- MXException
java.rmi.RemoteException
java.lang.String[] getAppLink() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
java.lang.String getLookupName() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
java.lang.String getMatchingAttr() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
java.lang.String getMatchingAttr(java.lang.String sourceObjectName) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
void setType(int type)
type
- int getType()
TYPE_UNKNOWN
,
TYPE_FIELDCLASS
,
TYPE_DOMAIN
,
TYPE_KEY