public class HubAutoSequence extends HubListenerAdapter implements Serializable
HubListener.InsertLocation| Modifier and Type | Field and Description |
|---|---|
static int |
AutoSequenceHubListenerCount |
protected boolean |
bKeepSeq |
protected boolean |
bServerSideOnly |
protected Hub |
hub |
protected String |
propertyName |
protected Method |
propertySetMethod |
protected int |
startNumber |
| Constructor and Description |
|---|
HubAutoSequence() |
HubAutoSequence(Hub hub,
String propertyName)
Create a new HubAutoSequence.
|
HubAutoSequence(Hub hub,
String propertyName,
int startNumber)
Create a new HubAutoSequence.
|
HubAutoSequence(Hub hub,
String propertyName,
int startNumber,
boolean bKeepSeq)
Create a new HubAutoSequence.
|
HubAutoSequence(Hub hub,
String propertyName,
int startNumber,
boolean bKeepSeq,
boolean bServerSideOnly) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterAdd(HubEvent e)
HubListener interface method, used to listen to changes to Hub and update sequence numbers.
|
void |
afterInsert(HubEvent e)
HubListener interface method, used to listen to changes to Hub and update sequence numbers.
|
void |
afterMove(HubEvent e)
HubListener interface method, used to listen to changes to Hub and update sequence numbers.
|
void |
afterRemove(HubEvent e)
HubListener interface method, used to listen to changes to Hub and update sequence numbers.
|
void |
afterSort(HubEvent e)
HubListener interface method, used to listen to changes to Hub and update sequence numbers.
|
void |
close() |
protected void |
finalize() |
Hub |
getHub() |
String |
getPropertyName()
Number property in object that is used to keep track of the order of the object within the hub.
|
int |
getStartNumber()
Set the starting number to be used for first object.
|
void |
onNewList(HubEvent e)
HubListener interface method, used to listen to changes to Hub and update sequence numbers.
|
void |
resequence() |
protected void |
resequence(int startPos) |
void |
setHub(Hub hub) |
void |
setPropertyName(String propertyName) |
void |
setStartNumber(int i)
Set the starting number to be used for first object.
|
protected void |
setup() |
afterChangeActiveObject, afterDelete, afterLoad, afterNewList, afterPropertyChange, afterRemoveAll, afterSave, beforeAdd, beforeDelete, beforeInsert, beforeMove, beforePropertyChange, beforeRefresh, beforeRemove, beforeRemoveAll, beforeSave, beforeSelect, getDescription, getListener, getLocation, getName, setLocationclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllowAdd, getAllowDelete, getAllowEnabled, getAllowRemove, getAllowRemoveAll, getAllowVisible, isValidAdd, isValidDelete, isValidPropertyChange, isValidRemove, isValidRemoveAllpublic static int AutoSequenceHubListenerCount
protected Hub hub
protected String propertyName
protected transient Method propertySetMethod
protected int startNumber
protected boolean bKeepSeq
protected boolean bServerSideOnly
public HubAutoSequence()
public HubAutoSequence(Hub hub, String propertyName, int startNumber)
propertyName - is int property for storing number.public HubAutoSequence(Hub hub, String propertyName, int startNumber, boolean bKeepSeq)
propertyName - is int property for storing number.bKeepSeq, - if false then seq numbers are not updated when an object is removedpublic HubAutoSequence(Hub hub, String propertyName, int startNumber, boolean bKeepSeq, boolean bServerSideOnly)
hub - propertyName - startNumber - bKeepSeq - bServerSideOnly - this is used by Hub.setAutoSequence(...) so that the server will control the seq property and
send CS messages to clients. If true, then the property changes (for seq prop) will need to be sent to clients.protected void finalize()
throws Throwable
public void close()
public int getStartNumber()
public void setStartNumber(int i)
public Hub getHub()
public void setHub(Hub hub)
public String getPropertyName()
Note: the object is not automatically saved.
public void setPropertyName(String propertyName)
getPropertyNameprotected void setup()
public void resequence()
protected void resequence(int startPos)
public void afterInsert(HubEvent e)
afterInsert in interface HubListenerafterInsert in class HubListenerAdapterpublic void afterAdd(HubEvent e)
afterAdd in interface HubListenerafterAdd in class HubListenerAdapterHub.addpublic void afterRemove(HubEvent e)
afterRemove in interface HubListenerafterRemove in class HubListenerAdapterpublic void afterMove(HubEvent e)
afterMove in interface HubListenerafterMove in class HubListenerAdapterpublic void onNewList(HubEvent e)
onNewList in interface HubListeneronNewList in class HubListenerAdapterpublic void afterSort(HubEvent e)
afterSort in interface HubListenerafterSort in class HubListenerAdapterHub.sortCopyright © 1999–2025 ViaOA. All rights reserved.