SwatObject
└─SwatUIObject
└─SwatWidget
└─SwatControl
└─SwatInputControl
└─SwatEntry
└─SwatSearchEntry
public class SwatSearchEntry
extends SwatEntry
| Field Summary | |
|---|---|
| string | An XHTML name for this search entry widget. |
| Fields inherited from Swat.SwatEntry | |
|---|---|
| access_key, autocomplete, maxlength, minlength, nonce, read_only, size, tab_index, value | |
| Fields inherited from Swat.SwatInputControl | |
|---|---|
| required | |
| Constructor Summary | |
|---|---|
SwatSearchEntry(mixed id) |
|
| Method Summary | |
|---|---|
| void | display() Displays this search entry. |
| protected array | Gets the array of CSS classes that are applied to this entry. |
| protected srting | Gets the inline JavaScript for this entry to function. |
| protected SwatHtmlTag | Get the input tag to display. |
| Methods inherited from Swat.SwatEntry | |
|---|---|
| display, getCSSClassNames, getDisplayValue, getFocusableHtmlId, getInputTag, getNonce, getRawValue, getState, getValidationMessage, hasRawValue, process, setState | |
| Methods inherited from Swat.SwatInputControl | |
|---|---|
| getForm, init | |
| Methods inherited from Swat.SwatControl | |
|---|---|
| addMessage, getNote, printWidgetTree | |
| Methods inherited from Swat.SwatWidget | |
|---|---|
| addCompositeWidget, addMessage, confirmCompositeWidgets, copy, createCompositeWidgets, display, displayHtmlHeadEntries, getCSSClassNames, getCompositeWidget, getCompositeWidgets, getFocusableHtmlId, getHtmlHeadEntrySet, getMessages, hasMessage, init, isDisplayed, isInitialized, isProcessed, isSensitive, printWidgetTree, process, replaceWithContainer | |
| Methods inherited from Swat.SwatUIObject | |
|---|---|
| addComment, addJavaScript, addStyleSheet, addTangoAttribution, copy, getCSSClassNames, getCSSClassString, getFirstAncestor, getHtmlHeadEntrySet, getInlineJavaScript, getUniqueId, isVisible | |
public string $name
An XHTML name for this search entry widget
The name is used as the XHTML form element name. This is useful for HTTP GET forms where the input name is displayed in the request URI. If the name is not specified, the widget id is used as the name.
public SwatSearchEntry(mixed id)
public void display()
Displays this search entry
Outputs an appropriate XHTML tag and JavaScript.
protected array getCSSClassNames()
Gets the array of CSS classes that are applied to this entry
protected srting getInlineJavaScript()
Gets the inline JavaScript for this entry to function
The inline JavaScript creates an instance of the SwatSearchEntry widget with the name $this->id_'obj'.
protected SwatHtmlTag getInputTag()
Get the input tag to display
Can be used by sub-classes to change the setup of the input tag.
A single line search entry widget