Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Static Private Attributes
plone.app.form.widgets.multicheckboxwidget.MultiCheckBoxWidget Class Reference
Collaboration diagram for plone.app.form.widgets.multicheckboxwidget.MultiCheckBoxWidget:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def renderItem
def renderSelectedItem

Static Public Attributes

string orientation = "vertical"

Static Private Attributes

string _joinButtonToMessageTemplate = u"%s %s"

Detailed Description

Provide a list of checkboxes that provide the choice for the list,
   with a <label> for accessibility

Definition at line 5 of file multicheckboxwidget.py.


Member Function Documentation

def plone.app.form.widgets.multicheckboxwidget.MultiCheckBoxWidget.renderItem (   self,
  index,
  text,
  value,
  name,
  cssClass 
)

Definition at line 13 of file multicheckboxwidget.py.

00013 
00014     def renderItem(self, index, text, value, name, cssClass):
00015         id = '%s.%s' % (name, index)
00016         elem = renderElement('input',
00017                              type="checkbox",
00018                              cssClass=cssClass,
00019                              name=name,
00020                              id=id,
00021                              value=value)
00022 
00023         label = renderElement('label',
00024                               extra= u"for=%s" % id,
00025                               contents=text)
00026 
00027         return self._joinButtonToMessageTemplate %(elem, label)

Here is the caller graph for this function:

def plone.app.form.widgets.multicheckboxwidget.MultiCheckBoxWidget.renderSelectedItem (   self,
  index,
  text,
  value,
  name,
  cssClass 
)

Definition at line 28 of file multicheckboxwidget.py.

00028 
00029     def renderSelectedItem(self, index, text, value, name, cssClass):
00030         id = '%s.%s' % (name, index)
00031         elem = renderElement('input',
00032                              type="checkbox",
00033                              cssClass=cssClass,
00034                              name=name,
00035                              id=id,
00036                              value=value,
00037                              checked="checked")
00038 
00039         label = renderElement('label',
00040                               extra= u"for=%s" % id,
00041                               contents=text)
00042 
00043         return self._joinButtonToMessageTemplate %(elem, label)

Here is the caller graph for this function:


Member Data Documentation

Definition at line 11 of file multicheckboxwidget.py.

Definition at line 9 of file multicheckboxwidget.py.


The documentation for this class was generated from the following file: