parent.frames[1].location.href = url1; parent.frames[2].location.href = url2; } -->
Package gnue :: Package forms :: Module GFInstance :: Class GFInstance
[show private | hide private]

Type GFInstance

object --+    
         |    
EventAware --+
             |
            GFInstance


A running GNUe Forms instance.

This class handles loading of the forms definitions, building up the object tree for the forms, and starting the main form, as well as ending the application when the last form is closed.
Method Summary
  __init__(self, manager, connections, ui, disableSplash, parameters, parentContainer, moduleName)
  activate(self)
DEPRECATED.
  addFormFromBuffer(self, buffer)
DEPRECATED.
  addFormFromFile(self, fileName)
DEPRECATED.
  keepalive(self, setting)
Decide whether the main loop should automatically be ended when the last window is closed.
  maybe_exit(self)
Exit the application if the last form has been closed
  run_from_buffer(self, buffer, parameters)
Load a form definition from a string and open the form.
  run_from_file(self, filename, parameters)
Load a form definition from a file and open the form.
  show_exception(self, group, name, message, detail)
This function shows the last exception raised.
  __before_event(self, event)
This is called before any normal event processing is done.
  __execute_about(self, event)
  __execute_cancel_query(self, event)
  __execute_commit(self, event)
  __execute_copy(self, event)
  __execute_copy_query(self, event)
  __execute_cut(self, event)
  __execute_enter_query(self, event)
  __execute_exec_query(self, event)
  __execute_exit(self, event)
  __execute_first_record(self, event)
  __execute_jump_prompt(self, event)
  __execute_jump_rows_down(self, event)
  __execute_jump_rows_up(self, event)
  __execute_last_record(self, event)
  __execute_mark_for_delete(self, event)
  __execute_mode_toggle(self, event)
  __execute_new_record(self, event)
  __execute_next_block(self, event)
  __execute_next_entry(self, event)
  __execute_next_page(self, event)
  __execute_next_record(self, event)
  __execute_paste(self, event)
  __execute_prev_record(self, event)
  __execute_previous_block(self, event)
  __execute_previous_entry(self, event)
  __execute_previous_page(self, event)
  __execute_printout(self, event)
  __execute_rollback(self, event)
  __execute_select_all(self, event)
  __execute_undelete_record(self, event)
  __execute_user_command(self, event)
  __load(self, filehandle, url, check_required)
  __load_buffer(self, buffer)
  __load_file(self, filename, check_required)
  __load_file_with_translations(self, filename, check_required)
  __run(self, form, parameters)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
Return hash(x)...
  __new__(T, S, ...)
Return a new object with type S, a subtype of T...
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
Return repr(x)...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
Return str(x)...

Method Details

__init__(self, manager, connections, ui, disableSplash=False, parameters=None, parentContainer=None, moduleName=None)
(Constructor)

Overrides:
gnue.common.events.EventAware.EventAware.__init__

activate(self)

DEPRECATED. Use run_from_buffer or run_from_file instead.

addFormFromBuffer(self, buffer)

DEPRECATED. Use run_from_buffer instead.

addFormFromFile(self, fileName)

DEPRECATED. Use run_from_file instead.

keepalive(self, setting)

Decide whether the main loop should automatically be ended when the last window is closed.

GNUe-Navigator uses this to keep the application alive even if no form is open any more.
Parameters:
setting - True to keep the application running, False to end it.

maybe_exit(self)

Exit the application if the last form has been closed

This function is called by each form when it is closed.

run_from_buffer(self, buffer, parameters)

Load a form definition from a string and open the form.
Parameters:
buffer - A string containing the form definition.
parameters - Parameter dictionary to pass to the form.

run_from_file(self, filename, parameters)

Load a form definition from a file and open the form.
Parameters:
filename - Filename to load
parameters - Parameter dictionary to pass to the form.

show_exception(self, group=None, name=None, message=None, detail=None)

This function shows the last exception raised.

The exact way of showing the message depends on the exception group.

__before_event(self, event)

This is called before any normal event processing is done. This method passes the event to the current focus widget and sees if that widget wants to handle that event.
Parameters:
event - The event currently being processed.

__execute_about(self, event)

__execute_cancel_query(self, event)

__execute_commit(self, event)

__execute_copy(self, event)

__execute_copy_query(self, event)

__execute_cut(self, event)

__execute_enter_query(self, event)

__execute_exec_query(self, event)

__execute_exit(self, event)

__execute_first_record(self, event)

__execute_jump_prompt(self, event)

__execute_jump_rows_down(self, event)

__execute_jump_rows_up(self, event)

__execute_last_record(self, event)

__execute_mark_for_delete(self, event)

__execute_mode_toggle(self, event)

__execute_new_record(self, event)

__execute_next_block(self, event)

__execute_next_entry(self, event)

__execute_next_page(self, event)

__execute_next_record(self, event)

__execute_paste(self, event)

__execute_prev_record(self, event)

__execute_previous_block(self, event)

__execute_previous_entry(self, event)

__execute_previous_page(self, event)

__execute_printout(self, event)

__execute_rollback(self, event)

__execute_select_all(self, event)

__execute_undelete_record(self, event)

__execute_user_command(self, event)

__load(self, filehandle, url, check_required)

__load_buffer(self, buffer)

__load_file(self, filename, check_required)

__load_file_with_translations(self, filename, check_required)

__run(self, form, parameters)



GNUe Home

Private API

Developer's Corner