comparison browser_side/list_manager.py @ 323:0b7934e75e76

misc: reorganization of the file panels.py + clean the modules import: - some existing modules were not found during JS runtime (panels.py was too large?) - the *Panel classes of panels.py that do not reference "host" have been moved to base_panels.py - cleaned the import in various files
author souliane <souliane@mailoo.org>
date Sat, 04 Jan 2014 00:17:46 +0100
parents 2d6bd975a72d
children 2067d6241927
comparison
equal deleted inserted replaced
322:971e3812903a 323:0b7934e75e76
33 from pyjamas.ui.FocusListener import FocusHandler 33 from pyjamas.ui.FocusListener import FocusHandler
34 from pyjamas.ui.DropWidget import DropWidget 34 from pyjamas.ui.DropWidget import DropWidget
35 from pyjamas.ui.DragWidget import DragWidget 35 from pyjamas.ui.DragWidget import DragWidget
36 from pyjamas.Timer import Timer 36 from pyjamas.Timer import Timer
37 from pyjamas import DOM 37 from pyjamas import DOM
38 import panels 38
39 from base_panels import PopupMenuPanel
39 40
40 41
41 # HTML content for the removal button (image or text) 42 # HTML content for the removal button (image or text)
42 REMOVE_BUTTON = '<span class="richTextRemoveIcon">x</span>' 43 REMOVE_BUTTON = '<span class="richTextRemoveIcon">x</span>'
43 44
234 """@param: target_drop_cell: the panel where something has been dropped.""" 235 """@param: target_drop_cell: the panel where something has been dropped."""
235 self.target_drop_cell = target_drop_cell 236 self.target_drop_cell = target_drop_cell
236 237
237 def registerPopupMenuPanel(self, entries, hide, callback): 238 def registerPopupMenuPanel(self, entries, hide, callback):
238 "Register a popup menu panel that will be bound to all contact keys elements." 239 "Register a popup menu panel that will be bound to all contact keys elements."
239 self.popup_menu = panels.PopupMenuPanel(entries=entries, hide=hide, callback=callback, style={"item": self.style["popupMenuItem"]}) 240 self.popup_menu = PopupMenuPanel(entries=entries, hide=hide, callback=callback, style={"item": self.style["popupMenuItem"]})
240 241
241 242
242 class DragAutoCompleteTextBox(AutoCompleteTextBox, DragWidget, MouseHandler, FocusHandler): 243 class DragAutoCompleteTextBox(AutoCompleteTextBox, DragWidget, MouseHandler, FocusHandler):
243 """A draggable AutoCompleteTextBox which is used for representing a contact. 244 """A draggable AutoCompleteTextBox which is used for representing a contact.
244 This class is NOT generic because of the onDragEnd method which call methods 245 This class is NOT generic because of the onDragEnd method which call methods