org.chorem.pollen.ui.pages.poll
Class PollCreation

java.lang.Object
  extended by org.chorem.pollen.ui.pages.poll.PollCreation

@IncludeStylesheet(value="context:css/pollCreation.css")
public class PollCreation
extends Object

Classe de la page de création d'un sondage.

Version:
$Id: PollCreation.java 2836 2010-01-11 12:46:59Z schorlet $
Author:
kmorin, rannou

Constructor Summary
PollCreation()
           
 
Method Summary
 String getChoiceDateDisplay()
           
 String getChoiceNbDisplay()
           
 String getCurrentListClass()
          Retourne la classe CSS correspondant au groupe courant
 String getNotificationDisplay()
           
 String getReminderDisplay()
           
 String getStepLegend()
          Retourne la chaîne correspondant à l'étape courante
 int getVotingListIndex()
          Retourne l'index de la liste courante
 int getVotingListNumber()
          Retourne le numéro de la liste courante (index+1)
 boolean isCondorcetVoteCounting()
           
 boolean isDateChoices()
           
 boolean isFreePoll()
           
 boolean isGroupPoll()
           
 boolean isImgChoices()
           
 boolean isInChoices()
           
 boolean isInLists()
           
 boolean isInOptions()
           
 boolean isInPoll()
           
 boolean isNormalVoteCounting()
           
 boolean isNumberVoteCounting()
           
 boolean isPercentageVoteCounting()
           
 boolean isPersonListsExists()
          Retourne vrai si des listes de favoris existent
 boolean isRestrictedPoll()
           
 boolean isSeveralGroups()
          Retourne s'il existe plusieurs groupes.
 boolean isTextChoices()
           
 org.apache.tapestry5.json.JSONObject onChangeFromChoiceType(String value)
          Méthode appelée à la sélection d'un type de choix.
 org.apache.tapestry5.json.JSONObject onChangeFromListSelect(String value)
          Méthode appelée à la sélection d'une liste de votants.
 Object onUpdatePollCreationZone()
          Méthode appelée par le callback JavaScript pour mettre à jour la zone.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PollCreation

public PollCreation()
Method Detail

getChoiceDateDisplay

public String getChoiceDateDisplay()

getChoiceNbDisplay

public String getChoiceNbDisplay()

getNotificationDisplay

public String getNotificationDisplay()

getReminderDisplay

public String getReminderDisplay()

getVotingListIndex

public int getVotingListIndex()
Retourne l'index de la liste courante


getVotingListNumber

public int getVotingListNumber()
Retourne le numéro de la liste courante (index+1)


getStepLegend

public String getStepLegend()
Retourne la chaîne correspondant à l'étape courante


getCurrentListClass

public String getCurrentListClass()
Retourne la classe CSS correspondant au groupe courant


isSeveralGroups

public boolean isSeveralGroups()
Retourne s'il existe plusieurs groupes.


isInPoll

public boolean isInPoll()

isInLists

public boolean isInLists()

isInChoices

public boolean isInChoices()

isInOptions

public boolean isInOptions()

isNormalVoteCounting

public boolean isNormalVoteCounting()

isPercentageVoteCounting

public boolean isPercentageVoteCounting()

isCondorcetVoteCounting

public boolean isCondorcetVoteCounting()

isNumberVoteCounting

public boolean isNumberVoteCounting()

isFreePoll

public boolean isFreePoll()

isRestrictedPoll

public boolean isRestrictedPoll()

isGroupPoll

public boolean isGroupPoll()

isTextChoices

public boolean isTextChoices()

isDateChoices

public boolean isDateChoices()

isImgChoices

public boolean isImgChoices()

onChangeFromListSelect

public org.apache.tapestry5.json.JSONObject onChangeFromListSelect(String value)
Méthode appelée à la sélection d'une liste de votants. Le mixin ck/OnEvent ne permet pas de retourner le contenu d'une zone. Il faut donc passer par une fonction JavaScript pour activer un event link. Un lien est créé. Il sera retourné à la fonction JavaScript onCompleteCallback pour mettre à jour la zone.

Returns:
un JSONObject contenant l'url de l'évènement mettant à jour la zone.

onChangeFromChoiceType

public org.apache.tapestry5.json.JSONObject onChangeFromChoiceType(String value)
Méthode appelée à la sélection d'un type de choix. Le mixin ck/OnEvent ne permet pas de retourner le contenu d'une zone. Il faut donc passer par une fonction JavaScript pour activer un event link. Un lien est créé. Il sera retourné à la fonction JavaScript onCompleteCallback pour mettre à jour la zone.

Returns:
un JSONObject contenant l'url de l'évènement mettant à jour la zone.

onUpdatePollCreationZone

public Object onUpdatePollCreationZone()
Méthode appelée par le callback JavaScript pour mettre à jour la zone.

Returns:
le contenu mis à jour de la zone.

isPersonListsExists

public boolean isPersonListsExists()
Retourne vrai si des listes de favoris existent



Copyright © 2009-2010 CodeLutin. All Rights Reserved.