public class HubAddRemoveDelegate extends Object
Constructor and Description |
---|
HubAddRemoveDelegate() |
Modifier and Type | Method and Description |
---|---|
static void |
add(Hub thisHub,
Object obj) |
static boolean |
canAdd(Hub thisHub,
Object obj)
Used to find out if an object can be added/inserted to this Hub.
|
static String |
canAddMsg(Hub thisHub,
Object obj) |
static boolean |
canRemove(Hub thisHub,
Object obj) |
static void |
clear(Hub thisHub) |
static void |
clear(Hub thisHub,
boolean bSetAOtoNull,
boolean bSendNewList) |
static OAObject[] |
getAddedObjects(Hub thisHub) |
static OAObject[] |
getRemovedObjects(Hub thisHub) |
static boolean |
insert(Hub thisHub,
Object obj,
int pos)
Insert an Object at a position.
|
protected static boolean |
internalAdd(Hub thisHub,
Object obj,
boolean bHasLock,
boolean bCheckContains)
internal method to add to vector and hashtable
|
static boolean |
isAllowAddRemove(Hub thisHub) |
protected static void |
move(Hub thisHub,
int posFrom,
int posTo)
Swap the position of two different objects within the hub.
|
static void |
refresh(Hub hub,
Hub hubNew) |
static boolean |
remove(Hub thisHub,
int pos) |
protected static boolean |
remove(Hub thisHub,
int pos,
boolean bForce) |
static boolean |
remove(Hub thisHub,
Object obj) |
static boolean |
remove(Hub thisHub,
Object obj,
boolean bForce,
boolean bSendEvent,
boolean bDeleting,
boolean bSetAO,
boolean bSetPropToMaster,
boolean bIsRemovingAll) |
protected static void |
sortMove(Hub thisHub,
Object obj) |
static void |
swap(Hub thisHub,
int pos1,
int pos2)
Swap the position of two different objects within the hub.
|
static void |
unsafeAddAll(Hub hub,
List list)
This will load all of the objects into the hub without checking or sending events.
|
public static boolean remove(Hub thisHub, int pos)
protected static boolean remove(Hub thisHub, int pos, boolean bForce)
public static boolean remove(Hub thisHub, Object obj, boolean bForce, boolean bSendEvent, boolean bDeleting, boolean bSetAO, boolean bSetPropToMaster, boolean bIsRemovingAll)
public static void clear(Hub thisHub)
public static void clear(Hub thisHub, boolean bSetAOtoNull, boolean bSendNewList)
public static boolean canAdd(Hub thisHub, Object obj)
protected static boolean internalAdd(Hub thisHub, Object obj, boolean bHasLock, boolean bCheckContains)
protected static void move(Hub thisHub, int posFrom, int posTo)
posFrom
- position of object to moveposTo
- position where object should be after the movepublic static boolean insert(Hub thisHub, Object obj, int pos)
If Hub is sorted, then object will be inserted at correct/sorted position.
obj
- Object to insert, must be from the same class that was used when creating the Hubpos
- position to insert the object into the Hub. If greater then size of Hub, then it will be added to the end.public static void swap(Hub thisHub, int pos1, int pos2)
pos1
- position of object to move from, if there is not an object at this position, then no move is performed.pos2
- position of object to move to, if there is not an object at this position, then no move is performed.move(com.viaoa.hub.Hub, int, int)
public static boolean isAllowAddRemove(Hub thisHub)
public static void unsafeAddAll(Hub hub, List list)
Copyright © 1999–2019 ViaOA. All rights reserved.