fi.paatti.mobile.views.eventview
Class TaskChoiceChangeEvent
java.lang.Object
java.util.EventObject
com.vaadin.ui.Component.Event
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
-
-

|
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 |
TaskChoiceChangeEvent
public TaskChoiceChangeEvent(com.vaadin.ui.Component source,
int taskID,
int choiceID)
- Constructor
- Parameters:
source - The source componenttaskID - Id of the taskchoiceID - Id of the choice
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.