org.jtheque.primary.controller.impl
Class ChoiceController

java.lang.Object
  extended by org.jtheque.core.managers.view.able.controller.AbstractController
      extended by org.jtheque.primary.controller.impl.ChoiceController
All Implemented Interfaces:
org.jtheque.core.managers.view.able.controller.Controller, IChoiceController

public final class ChoiceController
extends org.jtheque.core.managers.view.able.controller.AbstractController
implements IChoiceController

A Choice Controller.

Author:
Baptiste Wicht

Constructor Summary
ChoiceController()
           
 
Method Summary
 void displayView()
           
 void doAction(Object selectedItem)
          Do the choice action on the selected item.
 org.jtheque.core.managers.view.able.IView getView()
           
 void setAction(String action)
          Set the action of the controller.
 void setContent(String content)
          Set the content of controller.
 
Methods inherited from class org.jtheque.core.managers.view.able.controller.AbstractController
closeView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jtheque.core.managers.view.able.controller.Controller
closeView
 

Constructor Detail

ChoiceController

public ChoiceController()
Method Detail

doAction

public void doAction(Object selectedItem)
Description copied from interface: IChoiceController
Do the choice action on the selected item.

Specified by:
doAction in interface IChoiceController
Parameters:
selectedItem - The item selected on the choice view.

setAction

public void setAction(String action)
Description copied from interface: IChoiceController
Set the action of the controller.

Specified by:
setAction in interface IChoiceController
Parameters:
action - The new action

setContent

public void setContent(String content)
Description copied from interface: IChoiceController
Set the content of controller.

Specified by:
setContent in interface IChoiceController
Parameters:
content - The new content

displayView

public void displayView()
Specified by:
displayView in interface org.jtheque.core.managers.view.able.controller.Controller
Overrides:
displayView in class org.jtheque.core.managers.view.able.controller.AbstractController

getView

public org.jtheque.core.managers.view.able.IView getView()
Specified by:
getView in interface org.jtheque.core.managers.view.able.controller.Controller


Copyright © 2010 JTheque. All Rights Reserved.