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

Type DateRelated

object --+        
         |        
EventAware --+    
             |    
    BaseCursor --+
                 |
                DateRelated

Known Subclasses:
Date, DateTime, Time

Base class for all date- and time-related displayhandler
Method Summary
  __init__(self, entry, eventHandler, subEventHandler, display_mask, input_mask)
  _get_ordering_(self)
  _split_apart(self, text)
Split the given string into the components according to the order as given by self._order.
string build_display(self, value, editing)
Create a display string for the given date-, time- or datetime-value.
  get_tip(self)
Derive the apropriate tip from the sample date.
    Inherited from BaseCursor
  _addText(self, event)
  _autocomplete_(self, new_value, new_cursor)
Descandants can override this method to introduce autocompletion.
  _backspace(self, event)
  _delete(self, event)
  _deleteRange(self, event)
  _insertTextAt(self, event)
  _moveCursor(self, event, selecting)
Moves the cursor to the specified position optionally selecting the text.
  _moveCursorLeft(self, event, selecting)
Moves the cursor to the left optionally selecting the text.
  _moveCursorRight(self, event, selecting)
Moves the cursor to the right optionally selecting the text.
  _moveCursorToBegin(self, event, selecting)
Moves the cursor to the beginning optionally selecting the text.
  _moveCursorToEnd(self, event, selecting)
Moves the cursor to the end optionally selecting the text.
  _replace_text(self, event)
  _selectAll(self, event)
Select the entire text of the entry and move the cursor to the end
  _selectLeft(self, event)
Move the selection cursor to the left one unit
  _selectRight(self, event)
Move the selection cursor to the right one unit
  _selectToBegin(self, event)
Select from the current curson position to the beginning of the entry
  _selectToEnd(self, event)
Select from the current curson position to the end of the entry
  _selectWithMouse(self, event)
Select an area of text based upon the mouse
  beginEdit(self)
Notifies the handler that it will be doing edits.
  endEdit(self)
Called when a widget loses focus or when ENTER is hit.
  generateRefreshEvent(self)
Function to emit an event that will cause forms to update the UI.
  getSelectionArea(self)
Return the selected area
  parse_display(self, display)
  setSelectionArea(self, cursor1, cursor2)
Set the selection area
  updateFieldValue(self)
Update the associated field with the current value of the display handler.
    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)...

Class Variable Summary
str _config_display_mask_: name of the configuration setting for the display mask in gnue.conf
str _config_input_mask_: name of the configuration setting for the input mask in gnue.conf

Method Details

__init__(self, entry, eventHandler, subEventHandler, display_mask, input_mask)
(Constructor)

Overrides:
gnue.forms.input.displayHandlers.Cursor.BaseCursor.__init__

_get_ordering_(self)

_split_apart(self, text)

Split the given string into the components according to the order as given by self._order.
Parameters:
text - the string to be split into it's components
Returns:
dictionary with the components using the item of self._order as keys and the splitted part as value

build_display(self, value, editing)

Create a display string for the given date-, time- or datetime-value.
Parameters:
value - the value to create a display string for
editing - True if the display-string is for edit mode, False otherwise
Returns:
the display string for the given value
           (type=string)
Overrides:
gnue.forms.input.displayHandlers.Cursor.BaseCursor.build_display

get_tip(self)

Derive the apropriate tip from the sample date.
Overrides:
gnue.forms.input.displayHandlers.Cursor.BaseCursor.get_tip

Class Variable Details

_config_display_mask_

name of the configuration setting for the display mask in gnue.conf
Type:
str
Value:
''                                                                     

_config_input_mask_

name of the configuration setting for the input mask in gnue.conf
Type:
str
Value:
''                                                                     


GNUe Home

Private API

Developer's Corner