|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
com.sage.accpac.sm.FieldChangeEvent
@Immutable @ThreadSafe public class FieldChangeEvent
Contains the details of a field change notification.
The notification event's View can be retrieved by obtaining the event's
source using getSource()
.
Use getFieldID()
to see which field generated this event.
If this is associated with a field attribute change then call
isEditable()
, isEnabled()
and isRequired()
to see
what the new values are for these dynamic attributes.
NotificationListener
,
NotificationListener.fieldValueChanged(FieldChangeEvent)
,
NotificationListener.fieldPresentationChanged(FieldChangeEvent)
,
NotificationListener.fieldAttributesChanged(FieldChangeEvent)
,
Serialized FormField Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
FieldChangeEvent(View view,
int field,
boolean enabled,
boolean editable,
boolean required)
constructs an instance of the FieldChangeEvent class, based upon
the three given boolean attributes |
|
FieldChangeEvent(View view,
int field,
int attributes)
constructs an instance of the FieldChangeEvent class. |
Method Summary | |
---|---|
int |
getFieldID()
Get the view field index of the field that is changing. |
boolean |
isEditable()
returns true if and only if the value of the field can be changed by the caller. |
boolean |
isEnabled()
returns true if and only if the field can be meaningfully used. |
boolean |
isRequired()
returns true if and only if the value must be changed interactively before the record can be inserted. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FieldChangeEvent(View view, int field, int attributes)
FieldChangeEvent
class. All of the
attributes must be provided, not merely the changes. This version is
mainly for use by the actual view notification system.
view
- the view on which the change occurredfield
- the view field index of the field that changedattributes
- the new field attributespublic FieldChangeEvent(View view, int field, boolean enabled, boolean editable, boolean required)
FieldChangeEvent
class, based upon
the three given boolean attributes
view
- the view on which the change occurredfield
- the view field index of the field that changedenabled
- the new enabled valueeditable
- the new editable valuerequired
- the new required valueMethod Detail |
---|
public int getFieldID()
ViewFields.get(int)
public boolean isEditable()
If ViewField.mustCheckEditable()
is true then this property can
change but if it returns false then the property will remain the same.
true
if, and only if, the value of the field can be
changed by the callerViewField.mustCheckEditable()
,
ViewField.isEditable()
public boolean isEnabled()
If this returns false most field operations are not permitted and will result in an exception being thrown.
true
if, and only if, the field can be meaningfully used.ViewField.isEnabled()
public boolean isRequired()
true
if, and only if, the value must be changed
interactively before the record can be inserted.ViewField.isRequired()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |