Class WFSearchField

Description

A Search field widget for our framework.

Javascript events:

  • phocoa:WFSearchField:clear Fires when either ESC or the X are used, to clear the search query field.
  • phocoa:WFSearchField:search Fires when either RET or the GO link are used, to perform the search.
NOTE: these events fire on $('searchFieldId'). So, $('mySearchField').observe('phocoa:WFSearchField:search', function(e) {});

Javascript Public Functions: PHOCOA.widgets.<id>.getValue() Gets the "real" value of the search field (ie, will still return NULL if the "placeholder" is showing).

CSS classes: phocoaWFSearchField_Container The div that contains the widget. phocoaWFSearchField_Clear The span that contains the X button. phocoaWFSearchField_Search The span that contains the GO button. phocoaWFSearchField_PlaceholderText The class added to the input when the value is the "nullPlaceholder" value.

Required:

  • (none)
Optional:

Located in /framework/widgets/WFSearchField.php (line 34)

WFObject
   |
   --WFView
      |
      --WFWidget
         |
         --WFTextField
            |
            --WFSearchField
Variable Summary
Method Summary
static void exposedProperties ()
WFSearchField __construct ( $id,  $page)
void render ([ $blockContent = NULL])
Variables
Methods
static method exposedProperties (line 129)
  • access: public
static void exposedProperties ()

Redefinition of:
WFTextField::exposedProperties()
Constructor __construct (line 44)

Constructor.

WFSearchField __construct ( $id,  $page)
  • $id
  • $page

Redefinition of:
WFTextField::__construct()
Constructor.
render (line 50)
void render ([ $blockContent = NULL])
  • $blockContent

Redefinition of:
WFTextField::render()

Inherited Methods

Inherited From WFTextField

WFTextField::__construct()
WFTextField::canPushValueBinding()
WFTextField::exposedProperties()
WFTextField::render()
WFTextField::restoreState()
WFTextField::setupExposedBindings()

Inherited From WFWidget

WFWidget::__construct()
WFWidget::addError()
WFWidget::addErrors()
WFWidget::bind()
WFWidget::bindingByName()
WFWidget::bindings()
WFWidget::canPushValueBinding()
WFWidget::errors()
WFWidget::exposedBindings()
WFWidget::exposedProperties()
WFWidget::formattedValue()
WFWidget::formatter()
WFWidget::hasRestoredState()
WFWidget::hidden()
WFWidget::name()
WFWidget::processBindingOptions()
WFWidget::propagateValueToBinding()
WFWidget::pullBindings()
WFWidget::pushBindings()
WFWidget::restoreState()
WFWidget::setFormatter()
WFWidget::setHidden()
WFWidget::setName()
WFWidget::setupExposedBindings()
WFWidget::setValue()
WFWidget::setWidgetLabel()
WFWidget::unbind()
WFWidget::value()
WFWidget::valueForBinding()
WFWidget::widgetLabel()

Inherited From WFView

WFView::__construct()
WFView::addChild()
WFView::allConfigFinishedLoading()
WFView::children()
WFView::cloneWithID()
WFView::enabled()
WFView::exposedProperties()
WFView::getForm()
WFView::getJSActions()
WFView::getListenerJS()
WFView::getListenerJSInScriptTag()
WFView::getOnEvent()
WFView::getWidgetDir()
WFView::getWidgetWWWDir()
WFView::id()
WFView::importCSS()
WFView::importJS()
WFView::jsEndHTML()
WFView::jsStartHTML()
WFView::page()
WFView::parent()
WFView::removeChild()
WFView::render()
WFView::setEnabled()
WFView::setId()
WFView::setJSonBlur()
WFView::setJSonClick()
WFView::setListener()
WFView::setOnEvent()
WFView::setParent()
WFView::yuiPath()

Inherited From WFObject

WFObject::__construct()
WFObject::exposedProperties()
WFObject::getClass()
WFObject::keyPathToTargetAndKey()
WFObject::setValueForKey()
WFObject::setValueForKeyPath()
WFObject::setValuesForKeys()
WFObject::validatedSetValueForKey()
WFObject::validatedSetValueForKeyPath()
WFObject::validateObject()
WFObject::validateValueForKey()
WFObject::validateValueForKeyPath()
WFObject::valueForKey()
WFObject::valueForKeyPath()
WFObject::valueForStaticKey()
WFObject::valueForStaticKeyPath()
WFObject::valueForTargetAndKeyPath()
WFObject::valueForUndefinedKey()
WFObject::valueForUndefinedStaticKey()
WFObject::valuesForKeyPaths()
WFObject::valuesForKeys()
WFObject::_valueForStaticKey()
WFObject::__toString()

Documentation generated on Thu, 14 May 2009 16:20:27 -0400 by phpDocumentor 1.4.2