Package gnue :: Package forms :: Package input :: Package displayHandlers :: Module Checkbox :: Class Checkbox
[show private | hide private]

Type Checkbox

object --+        
         |        
EventAware --+    
             |    
    BaseCursor --+
                 |
                Checkbox


Method Summary
  __init__(self, entry, eventHandler, subEventHandler, displayMask, inputMask)
Constructor
  beginEdit(self)
Notifies the handler that it will be doing edits.
  build_display(self, value, editing)
Build the display string from the user value.
  handleToggleChkbox(self, event)
    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, entry, eventHandler, subEventHandler, displayMask, inputMask)
(Constructor)

Constructor
Parameters:
entry - The GFEntry instance associated with this handler
eventHandler - The
subEventHandler - The event handler this display helper will user to register it's listeners.
Overrides:
gnue.forms.input.displayHandlers.Cursor.BaseCursor.__init__ (inherited documentation)

beginEdit(self)

Notifies the handler that it will be doing edits.

Called when a widget first gets focus. It places the display handler into edit mode, syncs the current value with the GFField associated with this display handler, and creates the string to display in the form.
Overrides:
gnue.forms.input.displayHandlers.Cursor.BaseCursor.beginEdit (inherited documentation)

build_display(self, value, editing)

Build the display string from the user value.
Overrides:
gnue.forms.input.displayHandlers.Cursor.BaseCursor.build_display (inherited documentation)

handleToggleChkbox(self, event)



GNUe Home

Public API

Developer's Corner