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 2927 2010-03-10 18:08:53Z echatellier $
Author:
kmorin, rannou

Field Summary
static int LIST_MAX_SHOW_PERSONS
          TODO : move this value to pollen.properties, waiting for 1.3 version
 
Constructor Summary
PollCreation()
           
 
Method Summary
 String getChoiceDateDisplay()
           
 String getChoiceNbDisplay()
           
 String getCurrentListClass()
          Retourne la classe CSS correspondant au groupe courant
 String getListMaxSizeLoadedMessage()
          Get the message to show when the too large list size is loaded.
 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 isListSizeAlert()
          Test if the list size made an alert (too large to be shown).
 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
 

Field Detail

LIST_MAX_SHOW_PERSONS

public static final int LIST_MAX_SHOW_PERSONS
TODO : move this value to pollen.properties, waiting for 1.3 version

See Also:
Constant Field Values
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.

isListSizeAlert

public boolean isListSizeAlert()
Test if the list size made an alert (too large to be shown).

Returns:
true if the current list size is > to LIST_MAX_SHOW_PERSONS

getListMaxSizeLoadedMessage

public String getListMaxSizeLoadedMessage()
Get the message to show when the too large list size is loaded.

Returns:
the localized message to show when big list is loaded.

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.