public class HubEventDelegate extends Object
Modifier and Type | Field and Description |
---|---|
static int |
TotalHubListeners |
Constructor and Description |
---|
HubEventDelegate() |
Modifier and Type | Method and Description |
---|---|
static void |
addHubListener(Hub thisHub,
HubListener hl)
Add a new Hub Listener, that receives all Hub and OAObject events.
|
static void |
addHubListener(Hub thisHub,
HubListener hl,
boolean bActiveObjectOnly) |
static void |
addHubListener(Hub thisHub,
HubListener hl,
String property) |
static void |
addHubListener(Hub thisHub,
HubListener hl,
String property,
boolean bActiveObjectOnly) |
static void |
addHubListener(Hub thisHub,
HubListener hl,
String property,
String[] dependentPropertyPaths)
Add a Listener to this hub specifying a specific property name.
|
static void |
addHubListener(Hub thisHub,
HubListener hl,
String property,
String[] dependentPropertyPaths,
boolean bActiveObjectOnly) |
static void |
addHubListener(Hub thisHub,
HubListener hl,
String property,
String[] dependentPropertyPaths,
boolean bActiveObjectOnly,
boolean bUseBackgroundThread) |
static void |
clearGetAllListenerCache(Hub hub) |
static void |
fireAfterAddEvent(Hub thisHub,
Object obj,
int pos) |
static void |
fireAfterChangeActiveObjectEvent(Hub thisHub,
Object obj,
int pos,
boolean bAllShared) |
static void |
fireAfterDeleteEvent(Hub thisHub,
Object obj) |
static void |
fireAfterInsertEvent(Hub thisHub,
Object obj,
int pos) |
static void |
fireAfterLoadEvent(Hub thisHub,
OAObject oaObj) |
static void |
fireAfterMoveEvent(Hub thisHub,
int fromPos,
int toPos) |
static void |
fireAfterPropertyChange(Hub thisHub,
OAObject oaObj,
String propertyName,
Object oldValue,
Object newValue,
OALinkInfo linkInfo)
Called by OAObject and Hub, used to notify all listeners of a property change.
|
static void |
fireAfterRemoveAllEvent(Hub thisHub) |
static void |
fireAfterRemoveEvent(Hub thisHub,
Object obj,
int pos) |
static void |
fireAfterSaveEvent(Hub thisHub,
OAObject obj) |
static void |
fireAfterSortEvent(Hub thisHub) |
static void |
fireBeforeAddEvent(Hub thisHub,
Object obj,
int pos) |
static void |
fireBeforeDeleteEvent(Hub thisHub,
Object obj) |
static void |
fireBeforeInsertEvent(Hub thisHub,
Object obj,
int pos) |
static void |
fireBeforeMoveEvent(Hub thisHub,
int fromPos,
int toPos) |
static void |
fireBeforePropertyChange(Hub thisHub,
OAObject oaObj,
String propertyName,
Object oldValue,
Object newValue)
Called by OAObject and Hub, used to notify all listeners of a property change.
|
static void |
fireBeforeRemoveAllEvent(Hub thisHub) |
static void |
fireBeforeRemoveEvent(Hub thisHub,
Object obj,
int pos) |
static void |
fireBeforeSaveEvent(Hub thisHub,
OAObject obj) |
static void |
fireBeforeSelectEvent(Hub thisHub) |
static void |
fireCalcPropertyChange(Hub thisHub,
Object object,
String propertyName)
Used by OAObjects to notify all listeners of a property change.
|
protected static void |
fireMasterObjectChangeEvent(Hub thisHub,
boolean bRefreshFlag) |
static void |
fireOnNewListEvent(Hub thisHub,
boolean bAll)
Used to notify listeners that a new collection has been established.
|
static HubListener[] |
getAllListeners(Hub thisHub)
Returns an array of HubListeners for all of the listeners for this Hub and all of Hubs that are shared with it.
|
protected static HubListener[] |
getAllListeners(Hub thisHub,
int type) |
protected static HubListener[] |
getAllListenersRecursive(Hub thisHub,
Hub hub,
int type) |
protected static HubListener[] |
getHubListeners(Hub thisHub)
Returns list of registered listeners for this Hub only.
|
static int |
getListenerCount(Hub thisHub)
Returns a count of all of the listeners for this Hub and all of Hubs that are shared with it.
|
protected static void |
removeHubListener(Hub thisHub,
HubListener l)
Remove HubListener from list.
|
protected static void fireMasterObjectChangeEvent(Hub thisHub, boolean bRefreshFlag)
public static void fireBeforeRemoveAllEvent(Hub thisHub)
public static void fireAfterRemoveAllEvent(Hub thisHub)
public static void fireAfterChangeActiveObjectEvent(Hub thisHub, Object obj, int pos, boolean bAllShared)
public static void fireBeforeSelectEvent(Hub thisHub)
public static void fireAfterSortEvent(Hub thisHub)
public static void fireBeforeMoveEvent(Hub thisHub, int fromPos, int toPos)
public static void fireAfterMoveEvent(Hub thisHub, int fromPos, int toPos)
public static void fireCalcPropertyChange(Hub thisHub, Object object, String propertyName)
Example:
If the Department is changed for an Employee, then the Employee will be removed
from the previous Department's Hub of Employees and moved to the new Department's
Hub of Employees.
If this Hub is linked to a property in another Hub and that property is changed, this Hub will changed it's active object to match the same value as the new property value.
propertyName
- name of property that changed. This is case insensitivepublic static void fireBeforePropertyChange(Hub thisHub, OAObject oaObj, String propertyName, Object oldValue, Object newValue)
oaObj
- OAObject that was changedpropertyName
- name of property that changed. This is case insensitiveoldValue
- previous value of propertynewValue
- new value of propertypublic static void fireAfterPropertyChange(Hub thisHub, OAObject oaObj, String propertyName, Object oldValue, Object newValue, OALinkInfo linkInfo)
oaObj
- OAObject that was changedpropertyName
- name of property that changed. This is case insensitiveoldValue
- previous value of propertynewValue
- new value of propertypublic static void fireOnNewListEvent(Hub thisHub, boolean bAll)
public static void addHubListener(Hub thisHub, HubListener hl, String property, String[] dependentPropertyPaths)
property
- name to listen forpublic static void addHubListener(Hub thisHub, HubListener hl, String property, String[] dependentPropertyPaths, boolean bActiveObjectOnly)
public static void addHubListener(Hub thisHub, HubListener hl, String property, String[] dependentPropertyPaths, boolean bActiveObjectOnly, boolean bUseBackgroundThread)
public static void addHubListener(Hub thisHub, HubListener hl, String property)
public static void addHubListener(Hub thisHub, HubListener hl, String property, boolean bActiveObjectOnly)
public static void addHubListener(Hub thisHub, HubListener hl, boolean bActiveObjectOnly)
public static void addHubListener(Hub thisHub, HubListener hl)
protected static void removeHubListener(Hub thisHub, HubListener l)
protected static HubListener[] getHubListeners(Hub thisHub)
public static int getListenerCount(Hub thisHub)
public static HubListener[] getAllListeners(Hub thisHub)
protected static HubListener[] getAllListeners(Hub thisHub, int type)
public static void clearGetAllListenerCache(Hub hub)
protected static HubListener[] getAllListenersRecursive(Hub thisHub, Hub hub, int type)
Copyright © 1999–2019 ViaOA. All rights reserved.