Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sample.addressbook.controller.components.search
Class SearchController  view SearchController download SearchController.java

java.lang.Object
  extended bycom.sample.addressbook.controller.components.search.SearchController
All Implemented Interfaces:
com.aendvari.cerberus.component.assembly.AssembledComponent

public class SearchController
extends java.lang.Object
implements com.aendvari.cerberus.component.assembly.AssembledComponent

Manages search request.

When an item is "selected", this component sets the id of the selected value into the sending message under the name "itemId". To extract that id while in the listening component of the send message, use the following code:

String itemId = message.getProperties().getString("itemId");

The message sent to respond to the "selected" action, is determined in the configuration of this search component. See the message "select" in SearchController.xml


Nested Class Summary
(package private)  class SearchController.ItemListener
           
(package private)  class SearchController.PageListener
           
(package private)  class SearchController.SubmitListener
           
 
Field Summary
protected  com.aendvari.cerberus.component.descriptor.ComponentDescriptor descriptor
           
protected  int entriesPerPage
           
protected  java.lang.String model
           
protected  java.lang.String pageNumber
           
 
Constructor Summary
SearchController()
          Constructs a SearchController instance.
 
Method Summary
 void createComponent(com.aendvari.cerberus.component.assembly.AssemblyContext context, com.aendvari.cerberus.component.descriptor.ComponentDescriptor descriptor)
          Creates the component based on the provided descriptor.
private  void setPageData(com.aendvari.hermes.broker.Message message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

descriptor

protected com.aendvari.cerberus.component.descriptor.ComponentDescriptor descriptor

model

protected java.lang.String model

pageNumber

protected java.lang.String pageNumber

entriesPerPage

protected int entriesPerPage
Constructor Detail

SearchController

public SearchController()
Constructs a SearchController instance.

Method Detail

createComponent

public void createComponent(com.aendvari.cerberus.component.assembly.AssemblyContext context,
                            com.aendvari.cerberus.component.descriptor.ComponentDescriptor descriptor)
Creates the component based on the provided descriptor. The com.aendvari.cerberus.component.assembly.AssemblyContext object is transient and should not be retained by the component. The com.aendvari.cerberus.component.descriptor.ComponentDescriptor may be retained by the component.

Specified by:
createComponent in interface com.aendvari.cerberus.component.assembly.AssembledComponent

setPageData

private void setPageData(com.aendvari.hermes.broker.Message message)