Package com.ptc.core.components.forms
Class DynamicRefreshInfo
java.lang.Object
com.ptc.core.components.forms.DynamicRefreshInfo
- All Implemented Interfaces:
Serializable
Contains the information needed to dynamically refresh a portion of the parent window after a form has been
processed.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumeration of all the possible action values for the DynamicRefreshInfo object. -
Constructor Summary
ConstructorsConstructorDescription
Supported API: trueDynamicRefreshInfo(NmOid oid, NmOid locationOid, DynamicRefreshInfo.Action action) Used to specify which rows in the table/tree need to be created/updated/deleted.DynamicRefreshInfo(Persistable obj, Persistable locationObj, DynamicRefreshInfo.Action action) Constructor that takes persistables instead of oids. -
Method Summary
Modifier and TypeMethodDescription
Supported API: true
Supported API: truegetOid()
Supported API: truevoidsetAction(DynamicRefreshInfo.Action action) Set the action to the correct value from the enum of possible values.voidsetLocation(NmOid oid)
Supported API: truevoid
Supported API: truetoString()
Supported API: true
-
Constructor Details
-
DynamicRefreshInfo
public DynamicRefreshInfo()
Supported API: true -
DynamicRefreshInfo
Used to specify which rows in the table/tree need to be created/updated/deleted. If the oid and parent oid are not enough to uniquely identify the row to create/update/delete (this may happen for trees that have multiple rows with the same oid) then then aDynamicNmContextRefreshInfomust be used instead of this class to supply the full context.- Parameters:
oid- - the oid that was just created/updated/deleted. (the new oid in the case of update)locationOid- - the oid of the parent location where the object was just created/deleted in a tree, or the oid of the original in the case of update, or just null otherwiseaction- - one of the available constants in the Action Enumeration
Supported API: true
-
DynamicRefreshInfo
public DynamicRefreshInfo(Persistable obj, Persistable locationObj, DynamicRefreshInfo.Action action) Constructor that takes persistables instead of oids.- See Also:
-
-
Method Details
-
setOid
Supported API: true- Parameters:
oid-
-
getOid
Supported API: true- Returns:
-
setLocation
Supported API: true- Parameters:
oid-
-
getLocation
Supported API: true- Returns:
-
setAction
Set the action to the correct value from the enum of possible values.- Parameters:
action- One of the Entries in the Action enum, UPDATE, ADD, DELETE
Supported API: true
-
getActionEnum
Supported API: true- Returns:
-
toString
Supported API: true
-