| Home | Trees | Index | Help |
|---|
GTriggerCore--+ |object--+ | | |ParserObj--+ |GObj--+ |GTriggerExtension--+ |GFObj--+ | GFTabStop
GFButton| Method Summary | |
|---|---|
__init__(self,
parent,
object_type)
| |
In general an object is navigable if it is not hidden and it's navigable xml-attribute is set. | |
On phase 1 initialization find the owning GFPage-instance. | |
Notify the object that it has received the focus. | |
Notify the object that it is going to lose the focus. | |
Process a record pointer movement or a result set change for this entry. | |
Notify the widget that the number of visible rows has changed. | |
Move the UI and GF focus to this object. | |
Notify the UI widget that is is going to receive the focus. | |
Notify the UI widget that it has lost the focus. | |
Set the focus to this widget on the UI layer. | |
Update the editable state of this entry. | |
Validate the object to decide whether the focus can be moved away from it. | |
| Inherited from GFObj | |
Return the objects' block from the block mapping. | |
Returns the objects' field from the blocks' field mapping | |
Return the value of a given option of the object or None if no such option is present. | |
Return wether the object is currently navigable or not. | |
Phase 1 initialization called after all objects of the XML tree were created. | |
| Inherited from GObj | |
| |
| |
Dumps an XML representation of the object | |
This is a convenience function for applications NOT using GParser to load an object tree. | |
A convenience function for applications NOT using GParser to load an object tree. | |
| string |
Returns the xml tag to be used to represent the object. |
Return a python iterator of child objects. | |
maxInits returns the maximum size of all the _inits list from this object or it's children | |
Starts GNUe's phased initialization system from this object down. | |
A recusive function to print an indented text representation of the GObj tree from this object down. | |
Function that recursively walks down through a tree of ParserObj instances and applies a function
to them. | |
| Inherited from GTriggerCore | |
| |
Construct a namespace object tree from an XML ( definitions.GObjects.GObj) object tree. | |
Return the namespace object that mirrors this object in the action/trigger namespace. | |
| Inherited from ParserObj | |
Set the action attribute of a given object to the specified action. | |
Get the contents of this object. | |
Return a compareable and identifying id of an object within a tree. | |
Set attributes loaded by GParser. | |
Add an object to the list of children | |
Assign all attributes from a given object to this one. | |
Build an object tree representing the difference between two object trees. | |
Return a XML representation of the object. | |
Moves downward though the children of an object till it finds the child with the specified name. | |
Moves downward through the children of an object till it finds the child of the specified type. | |
Find all children of a specific type. | |
Moves upward though the parents of an object till it finds the parent of the specified type. | |
Returns the content of any GContent objects that are children of this object. | |
Return a useful description of the object. | |
| any |
Returns the immediate parent of an object instance in a GObj tree. |
Merge another object tree into this tree. | |
Set the immediate parent of an object instance in a GObj tree | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
Return hash(x)... | |
Return a new object with type S, a subtype of T... | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
Return str(x)... | |
| Inherited from GTriggerExtension | |
Associate a trigger with this object. | |
Fire the requested trigger if a trigger of that type has been associated with this object. | |
| Property Summary | |
|---|---|
| Inherited from GFObj | |
has_label | |
| Class Variable Summary | |
|---|---|
bool |
_navigableInQuery_: If True the object can recieve the keyboard focus in query mode,
otherwise not |
NoneType |
navigable = None |
| Method Details |
|---|
__init__(self,
parent,
object_type)
|
_is_navigable_(self, mode)In general an object is navigable if it is not hidden and it's navigable xml-attribute is set. If mode is 'query' it additionally depends wether an object is 'queryable' or not. If mode is 'edit' or 'new' only objects are navigable which are not 'readonly'. |
_phase_1_init_(self)On phase 1 initialization find the owning GFPage-instance. This instance is then available through self._page. |
focus_in(self)Notify the object that it has received the focus. |
focus_out(self)Notify the object that it is going to lose the focus. The focus change is already decided at this moment, there is no way to stop the focus from changing now. |
recalculate_visible(self, adjustment, cur_record, rec_count, refresh)Process a record pointer movement or a result set change for this entry. This function sets the_visibleIndex property of this
entry. It also takes care of disabling rows of this entry that are
outside the actual number of available records, and it redisplays the
contents of the entry as needed.
|
rows_changed(self, new_rows)Notify the widget that the number of visible rows has changed. This can happen if this widget is part of a grid that has been resized. This function takes care about filling the new rows with data. |
set_focus(self, index)Move the UI and GF focus to this object. |
ui_focus_in(self)Notify the UI widget that is is going to receive the focus. This function is always called, no matter whether the user requested the focus change via mouse click, keypress, or trigger function. The purpose of this function is to allow the UI widget to do things that always must be done when it gets the focus, like changing the color of the current widget, or activating the current entry in the grid. |
ui_focus_out(self)Notify the UI widget that it has lost the focus. This function is always called, no matter whether the user requested the focus change via mouse click, keypress, or trigger function. The purpose of this function is to allow the UI widget to do things that always must be done when it loses the focus, like changing the color of the formerly current widget back to normal, or deactivating the no-longer-current entry in the grid. This function works better than the KILL-FOCUS event of the UI, because KILL-FOCUS runs too often, for example also when the dropdown is opened (and the focus moves from the dropdown entry to the dropdown list). |
ui_set_focus(self)Set the focus to this widget on the UI layer. This function is only called when the focus is set from the GF layer. If the user changes the focus with a mouse click, this function is not called because the UI focus already is on the target widget. So the purpose of this function is to make the UI focus follow the GF focus. |
update_editable(self)Update the editable state of this entry. This function is called by the field if the editable state of the field is changed by a trigger. |
validate(self)Validate the object to decide whether the focus can be moved away from it. This function can raise an exception, in which case the focus change will be prevented. |
| Class Variable Details |
|---|
_navigableInQuery_If True the object can recieve the keyboard focus in query mode, otherwise not
|
navigable
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Tue Oct 14 23:03:35 2008 | http://epydoc.sf.net |