net.sourceforge.atunes.kernel.controllers.customsearch
Class CustomSearchController

java.lang.Object
  extended by net.sourceforge.atunes.kernel.controllers.model.Controller
      extended by net.sourceforge.atunes.kernel.controllers.model.DialogController<CustomSearchDialog>
          extended by net.sourceforge.atunes.kernel.controllers.customsearch.CustomSearchController

public class CustomSearchController
extends DialogController<CustomSearchDialog>

CustomSearchDialog controller.


Constructor Summary
CustomSearchController(CustomSearchDialog dialog)
          Constructor.
 
Method Summary
 void addAndOperator()
          Adds AND operator to rule.
protected  void addBindings()
          Adds the bindings.
 void addNotOperator()
          Adds NOT operator to rule.
 void addOrOperator()
          Adds OR operator to rule.
protected  void addStateBindings()
          Adds the state bindings.
 void createSimpleRule()
          Creates a simple rule.
 void enableAdvancedSearch(boolean enable)
          Enables or disables advanced search.
protected  void notifyReload()
          Notify reload.
 void removeRuleNode()
          Removes a node from rule tree.
 void search()
          Invokes a search with rule defined in dialog.
 void setListOfOperators(java.util.List<java.lang.String> operators)
          Fills combo box with list of operators.
 void setListOfSearchableObjects(java.util.List<SearchableObject> sObjects)
          Fills combo box with list of objects where it's possible to search.
 void showSearchDialog()
          Shows dialog (previous values are cleared).
 void updateAttributesList()
          Displays attributes of selected searchable object.
 
Methods inherited from class net.sourceforge.atunes.kernel.controllers.model.DialogController
getDialogControlled
 
Methods inherited from class net.sourceforge.atunes.kernel.controllers.model.Controller
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomSearchController

public CustomSearchController(CustomSearchDialog dialog)
Constructor.

Parameters:
dialog - the dialog
Method Detail

showSearchDialog

public void showSearchDialog()
Shows dialog (previous values are cleared).


setListOfSearchableObjects

public void setListOfSearchableObjects(java.util.List<SearchableObject> sObjects)
Fills combo box with list of objects where it's possible to search.

Parameters:
sObjects - the s objects

setListOfOperators

public void setListOfOperators(java.util.List<java.lang.String> operators)
Fills combo box with list of operators.

Parameters:
operators - the operators

updateAttributesList

public void updateAttributesList()
Displays attributes of selected searchable object.


createSimpleRule

public void createSimpleRule()
Creates a simple rule.


addAndOperator

public void addAndOperator()
Adds AND operator to rule.


addOrOperator

public void addOrOperator()
Adds OR operator to rule.


addNotOperator

public void addNotOperator()
Adds NOT operator to rule.


removeRuleNode

public void removeRuleNode()
Removes a node from rule tree.


search

public void search()
Invokes a search with rule defined in dialog.


enableAdvancedSearch

public void enableAdvancedSearch(boolean enable)
Enables or disables advanced search.

Parameters:
enable - the enable

addBindings

protected void addBindings()
Description copied from class: Controller
Adds the bindings.

Specified by:
addBindings in class Controller

addStateBindings

protected void addStateBindings()
Description copied from class: Controller
Adds the state bindings.

Specified by:
addStateBindings in class Controller

notifyReload

protected void notifyReload()
Description copied from class: Controller
Notify reload.

Specified by:
notifyReload in class Controller


Copyright © 2006-2008 The aTunes Team. All Rights Reserved.