fi.paatti.mobile.views.eventview
Class TaskChoiceChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.vaadin.ui.Component.Event
          extended by fi.paatti.mobile.views.eventview.TaskChoiceChangeEvent
All Implemented Interfaces:
Serializable

public class TaskChoiceChangeEvent
extends com.vaadin.ui.Component.Event
implements Serializable

An event that is fired when a tasks choice changes in an Event (Tapahtuma).

If a task has only one choice: this event is fired right after the task has been set as the content of the view. If a task has multiple choices: each time user selects an item of the option group this event is fired.

Since:
0.0.5
Author:
Lauri Satokangas, lauri.n.satokangas@student.jyu.fi @date 1.5.2012
See Also:
Serialized Form
 

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TaskChoiceChangeEvent(com.vaadin.ui.Component source, int taskID, int choiceID)
          Constructor

 
Method Summary
 int getChoiceID()
          Get the ID of the selected choice.
 int getTaskID()
          Get the ID of the task that the choice belongs.
 
Methods inherited from class com.vaadin.ui.Component.Event
getComponent
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaskChoiceChangeEvent

public TaskChoiceChangeEvent(com.vaadin.ui.Component source,
                             int taskID,
                             int choiceID)
Constructor

Parameters:
source - The source component
taskID - Id of the task
choiceID - Id of the choice
Method Detail

getTaskID

public int getTaskID()
Get the ID of the task that the choice belongs.

Returns:
The id of the task.

getChoiceID

public int getChoiceID()
Get the ID of the selected choice.

Returns:
The id of the choice.


Copyright © 2012. All Rights Reserved.