public class HierarchyChangeEvent extends EventObject
Modifier and Type | Field and Description |
---|---|
static int |
LABEL_CHANGE
Indicates a label change event type
|
static int |
MOVE
Indicates a move account event type
|
source
Constructor and Description |
---|
HierarchyChangeEvent(Object source,
int type,
PModelHandle affectedAcct)
Constructs a HierarchyChangeEvent object for a label change
|
HierarchyChangeEvent(Object source,
int type,
PModelHandle affectedAcct,
PModelHandle oldParent,
PModelHandle newParent,
Date deferralDate)
Constructs a HierarchyChangeEvent object for a move
|
Modifier and Type | Method and Description |
---|---|
PModelHandle |
getAffectedAcct() |
Date |
getDeferralDate() |
PModelHandle |
getNewParent() |
PModelHandle |
getOldParent() |
int |
getType() |
getSource, toString
public static final int LABEL_CHANGE
public static final int MOVE
public HierarchyChangeEvent(Object source, int type, PModelHandle affectedAcct)
source
- the Object that is the source of the event
(typically this
)type
- the type of event, LABEL_CHANGE or MOVEaffectedAcct
- the account being acted uponpublic HierarchyChangeEvent(Object source, int type, PModelHandle affectedAcct, PModelHandle oldParent, PModelHandle newParent, Date deferralDate)
source
- the Object that is the source of the event
(typically this
)type
- the type of event, LABEL_CHANGE or MOVEaffectedAcct
- the account being acted uponoldParent
- the parent account before the move, can be nullnewParent
- the parent account after the move, can be nulldeferralDate
- the date the move is deferred to, can be nullpublic int getType()
public PModelHandle getAffectedAcct()
public PModelHandle getOldParent()
public PModelHandle getNewParent()
public Date getDeferralDate()
Copyright © 2003, 2023, Oracle and/or its affiliates.