Package com.iizix.event
Class PropErrorAttrEvent
- java.lang.Object
- com.iizix.event.GEvent
- com.iizix.event.BubbleEvent
- com.iizix.event.PropAttrEvent
- com.iizix.event.PropErrorAttrEvent
- All Implemented Interfaces:
IPostEventProcessing
public class PropErrorAttrEvent extends PropAttrEvent
The event that indicates that a property error attribute has been set for the first time or when it has been changed.- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class com.iizix.event.GEvent
GEvent.Operation
Field Summary
Fields Modifier and Type Field Description java.lang.String
errorID
The errorID changed, null for entire error table.IPropErrorItem
item
The error item.int
newMaxErrorLevel
New maximum error level.int
oldMaxErrorLevel
Old maximum error level.Fields inherited from class com.iizix.event.PropAttrEvent
PROP_ATTR_ERROR, PROP_ATTR_ERRORED_NAME, PROP_ATTR_EXTENDS_FINAL, PROP_ATTR_EXTENDS_NAME, PROP_ATTR_EXTENDS_OVERRIDE, PROP_ATTR_EXTENDS_PRIVATE, PROP_ATTR_NULLABLE, PROP_ATTR_PRIVATE, PROP_ATTR_PRIVATE_CHANGE_EVENT, PROP_ATTR_READ_ONLY, PROP_ATTR_VSRELATIVE_MASK
Fields inherited from class com.iizix.event.GEvent
PROP_ADDED, PROP_ATTR_CHANGED, PROP_CNR_ADDED, PROP_CNR_FOCUS, PROP_CNR_MOVED, PROP_CNR_RENAMED, PROP_DESIGNER_ASSET_CHANGED, PROP_DESIGNER_JAVA_CLASS_CHANGED, PROP_DESIGNER_JAVA_METHOD_RENAMED, PROP_DESIGNER_KSTRING, PROP_DESIGNER_VIEWER_UPDATE, PROP_DESIGNER_VS_REFERENCE, PROP_DISPOSED, PROP_FOCUS, PROP_MOVED_FROM, PROP_MOVED_TO, PROP_PROJECT_RENAMED, PROP_QUERY_DESIGNER_PROPS, PROP_REFRESH, PROP_REMOVED, PROP_RENAMED, PROP_REORDERED, PROP_RESOLVE_REFERENCES_DIRECT, PROP_VALUE_CHANGED, REMOTE
Constructor Summary
Constructors Constructor Description PropErrorAttrEvent(GProp<?> source, java.lang.Object newValue, java.lang.Object oldValue, java.lang.String errorID, IPropErrorItem item, int newMaxErrorLevel, int oldMaxErrorLevel)
Constructs a new property event.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isClearCacheEvent()
Returns the state for a property container if this event is received in theonEventSelf
method as a helper for it would need to clear the property container cache.boolean
isVerifyEvent()
Returns if this event is a verify event for a container that processes verification.protected java.lang.StringBuilder
paramString(java.lang.StringBuilder buf)
Returns the parameter string representing the state of this event.Methods inherited from class com.iizix.event.PropAttrEvent
getAttribute, getNewValue, getOldValue
Methods inherited from class com.iizix.event.BubbleEvent
getOperations
Methods inherited from class com.iizix.event.GEvent
addPostProcessor, cancel, consume, getAlternateDestination, getEventID, getEventName, getEventName, getEventTarget, getOperation, getPostProcessors, getSender, getSource, getTrigger, isCancelled, isConsumed, isEventProcessed, isPropertyChange, isPropertyChange, isPropertyChange, isPropertyChangeIn, isPropertyChangeInTree, isRefreshEvent, isRemoteInduced, send, send, sendSelf, setInitialProperty, setOperation, setProgressMonitor, toString
Field Detail
errorID
public final java.lang.String errorID
The errorID changed, null for entire error table.
item
public final IPropErrorItem item
The error item.
newMaxErrorLevel
public final int newMaxErrorLevel
New maximum error level.
oldMaxErrorLevel
public final int oldMaxErrorLevel
Old maximum error level.
Constructor Detail
PropErrorAttrEvent
public PropErrorAttrEvent(GProp<?> source, java.lang.Object newValue, java.lang.Object oldValue, java.lang.String errorID, IPropErrorItem item, int newMaxErrorLevel, int oldMaxErrorLevel)
Constructs a new property event.- Parameters:
source
- The source property instance being changed or initialized.newValue
- The new value.oldValue
- The old value or null if previously uninitialized.errorID
- The error ID changed, null for entire property error table change.item
- The error item, null for removed (errorID is non-null).newMaxErrorLevel
- New maximum error level.oldMaxErrorLevel
- Old maximum error level.
Method Detail
isClearCacheEvent
public boolean isClearCacheEvent()
Returns the state for a property container if this event is received in theonEventSelf
method as a helper for it would need to clear the property container cache.- Overrides:
isClearCacheEvent
in classPropAttrEvent
- Returns:
- true, always for this event.
isVerifyEvent
public boolean isVerifyEvent()
Returns if this event is a verify event for a container that processes verification.- Overrides:
isVerifyEvent
in classPropAttrEvent
- Returns:
- true always.
paramString
protected java.lang.StringBuilder paramString(java.lang.StringBuilder buf)
Returns the parameter string representing the state of this event. This string is useful for debugging. Super classes adds extra information to the string by preceding it with a comma followed by the extra information.- Overrides:
paramString
in classPropAttrEvent
- Parameters:
buf
- The StringBuilder to append the string to.- Returns:
- The StringBuilder, i.e. the
buf
input parameter.