|
GLG Toolkit, Java Class Library
Version 4.6
|
This group contains methods for creating objects at run time, as well as creating copies of an object.
Functions | |
| GlgObject | CloneObject (GlgCloneType clone_type) |
| Creates a specialized copy (clone) of an object. More... | |
| GlgObject | CopyObject () |
| Creates a copy of the object. More... | |
| GlgObject CloneObject | ( | GlgCloneType | clone_type | ) |
Creates a specialized copy (clone) of an object.
| clone_type | The type of cloning to perform, as described below. |
This method creates a copy of the object according to the specified clone type. There are four different kinds of clones available. The difference between them depends on their treatment of the original object's attributes according to the setting of the Global flag of each attribute. There is also a special shallow clone type which can be applied only to the container objects such as groups and lists.
The following clone types are available:
| GlgObject CopyObject | ( | ) |
Creates a copy of the object.
This method creates and returns a copy of an object. CopyObject is equivalent to using CloneObject with the FULL_CLONE cloning type. Refer to CloneObject for more information on cloning types.
CopyObject may be used to create multiple instances of an object after the object has been created and its attributes have been set to the desired values, which saves repeated calls to the resource-setting methods.