Modifier and Type | Field and Description |
---|---|
static int |
CREATE_NEW_FORM
A value sent to the createForm method.
|
boolean |
doTransfer |
Handle |
handle |
static int |
NEW_FORM_EXITED
A value sent to the createForm method.
|
boolean |
newFormChecksFileSaverOnExit
False by default - set this to true if you want the new Form to check the FileSaver for before
saving before closing.
|
boolean |
oldFileSaverListensToNewForm
True by default - set this to false if you do not want the new Form to affect the changed
state of any FileSaver.
|
static int |
RECREATE_ORIGINAL_FORM
A value sent to the createNewForm method.
|
IFileSaver |
saver |
PropertyList |
sourceProperties |
Constructor and Description |
---|
ExecTransfer(Form sourceForm)
This creates an ExecTransfer that will do the transfer only if the VM reports that
the executing device is considered a low memory device.
|
ExecTransfer(Form sourceForm,
boolean doTransfer)
This creates an ExecTransfer that will do the transfer only if the doTransfer parameter
is true.
|
ExecTransfer(Form sourceForm,
boolean doTransfer,
Object formCreator,
String formCreatorMethodName)
This creates an ExecTransfer.
|
ExecTransfer(Form sourceForm,
Object formCreator,
String formCreatorMethodName)
This creates an ExecTransfer that will do the transfer only if the VM reports that
the executing device is considered a low memory device.
|
Modifier and Type | Method and Description |
---|---|
Form |
createForm(ExecTransfer et,
int creationAction,
int newFormRetCode) |
Form |
getOrignalForm()
This is used to get the original displayed Form ONLY if an exec transfer is not being done.
|
void |
run() |
Form |
stopSourceForm(int exitCode)
This stops the Handle of the sourceForm but only if the closeForTransfer() method of the source Form
returned a non-null Handle value.
|
public Handle handle
public IFileSaver saver
public PropertyList sourceProperties
public boolean doTransfer
public static final int CREATE_NEW_FORM
public static final int RECREATE_ORIGINAL_FORM
public static final int NEW_FORM_EXITED
public boolean oldFileSaverListensToNewForm
public boolean newFormChecksFileSaverOnExit
public ExecTransfer(Form sourceForm)
public ExecTransfer(Form sourceForm, boolean doTransfer)
sourceForm
- The original currently displaying FormdoTransfer
- If this is true then an exec transfer will be done, otherwise the new Formpublic ExecTransfer(Form sourceForm, Object formCreator, String formCreatorMethodName) throws IllegalArgumentException
sourceForm
- The original currently displaying FormformCreator
- An object that will create the new Form and re-create the original Form on request.formCreatorMethodName
- The name of the method of the formCreator that will be called.IllegalArgumentException
- if the method could not be found in the supplied formCreator object.public ExecTransfer(Form sourceForm, boolean doTransfer, Object formCreator, String formCreatorMethodName) throws IllegalArgumentException
sourceForm
- The original currently displaying FormdoTransfer
- If this is true then an exec transfer will be done, otherwise the new Form
will be displayed without the old one being removed.formCreator
- An object that will create the new Form and re-create the original Form on request.formCreatorMethodName
- The name of the method of the formCreator that will be called.IllegalArgumentException
- if the method could not be found in the supplied formCreator object.public Form getOrignalForm()
public Form stopSourceForm(int exitCode)
exitCode
- The exit code to return.public Form createForm(ExecTransfer et, int creationAction, int newFormRetCode)