public class HubLinkDelegate extends Object
Constructor and Description |
---|
HubLinkDelegate() |
Modifier and Type | Method and Description |
---|---|
static Hub |
getHubWithLink(Hub thisHub,
boolean bIncludeCopiedHubs) |
static boolean |
getLinkedOnPos(Hub thisHub) |
static boolean |
getLinkedOnPos(Hub thisHub,
boolean bIncludeCopiedHubs) |
static String |
getLinkFromProperty(Hub thisHub) |
static String |
getLinkFromProperty(Hub thisHub,
boolean bIncludeCopiedHubs) |
static Method |
getLinkGetMethod(Hub thisHub)
Used to get value from active object in masterHub, that is then used to set active object in this hub.
|
static Method |
getLinkGetMethod(Hub thisHub,
boolean bIncludeCopiedHubs) |
static boolean |
getLinkHubOnPos(Hub thisHub)
Returns true if this Hub is linked to another Hub using the
position of the active object.
|
static boolean |
getLinkHubOnPos(Hub thisHub,
boolean bIncludeCopiedHubs) |
static String |
getLinkHubPath(Hub thisHub)
Returns the property path of the property that this Hub is
linked to.
|
static String |
getLinkHubPath(Hub thisHub,
boolean bIncludeCopiedHubs) |
static Method |
getLinkSetMethod(Hub thisHub)
Used for linking/connecting Hubs,
to get method used to set the property value of the active object in the masterHub
to the active object in this Hub.
|
static Method |
getLinkSetMethod(Hub thisHub,
boolean bIncludeCopiedHubs) |
static Hub |
getLinkToHub(Hub thisHub,
boolean bIncludeCopiedHubs) |
static String |
getLinkToProperty(Hub thisHub)
Returns the property that this Hub is linked to.
|
static String |
getLinkToProperty(Hub thisHub,
boolean bIncludeCopiedHubs) |
static Object |
getPropertyValueInLinkedToHub(Hub thisHub,
Object linkObject)
Used to get the property value in the Linked To Hub, that is used to set the Linked From Hub Active Object.
|
static boolean |
isLinkAutoCreated(Hub thisHub) |
static boolean |
isLinkAutoCreated(Hub thisHub,
boolean bIncludeCopiedHubs) |
protected static void |
setLinkHub(Hub thisHub,
String propertyFrom,
Hub linkToHub,
String propertyTo,
boolean linkPosFlag,
boolean bAutoCreate,
boolean bAutoCreateAllowDups)
Main LinkHub method used to link from one hub to another.
|
protected static void |
updateLinkedToHub(Hub fromHub,
Hub linkToHub,
Object obj)
This is called by HubLinkEventListener, (which is created in this class) whenever the linked to (linkToHub) Hub
is changed (active object or linked to property).
|
protected static void |
updateLinkedToHub(Hub fromHub,
Hub linkToHub,
Object obj,
String changedPropName) |
protected static void |
updateLinkedToHub(Hub fromHub,
Hub linkToHub,
Object obj,
String changedPropName,
boolean bAdjustMaster) |
static void |
updateLinkProperty(Hub thisHub,
Object fromObject,
int pos) |
protected static void setLinkHub(Hub thisHub, String propertyFrom, Hub linkToHub, String propertyTo, boolean linkPosFlag, boolean bAutoCreate, boolean bAutoCreateAllowDups)
public static boolean isLinkAutoCreated(Hub thisHub)
public static boolean isLinkAutoCreated(Hub thisHub, boolean bIncludeCopiedHubs)
public static boolean getLinkedOnPos(Hub thisHub)
public static boolean getLinkedOnPos(Hub thisHub, boolean bIncludeCopiedHubs)
public static Object getPropertyValueInLinkedToHub(Hub thisHub, Object linkObject)
Example:
If Department Hub is linked to a Employee Hub on property "department", then for
any Employee object, this will return the value of employee.getDepartment().
Full Description of Linking Hubs
public static String getLinkToProperty(Hub thisHub)
Example:
DepartmentHub linked to Employee.department will return "department"
Full Description of Linking Hubs
public static String getLinkFromProperty(Hub thisHub, boolean bIncludeCopiedHubs)
public static boolean getLinkHubOnPos(Hub thisHub)
public static boolean getLinkHubOnPos(Hub thisHub, boolean bIncludeCopiedHubs)
public static Method getLinkSetMethod(Hub thisHub)
public static Method getLinkGetMethod(Hub thisHub)
public static String getLinkHubPath(Hub thisHub)
protected static void updateLinkedToHub(Hub fromHub, Hub linkToHub, Object obj)
protected static void updateLinkedToHub(Hub fromHub, Hub linkToHub, Object obj, String changedPropName)
Copyright © 1999–2019 ViaOA. All rights reserved.