站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.2 API 英文版文档

PollOptionImpl - JBOSS Portal 2.2 API 英文版文档


org.jboss.portlet.forums.impl
Class PollOptionImpl

java.lang.Object
  extended byorg.jboss.portlet.forums.impl.PollOptionImpl
All Implemented Interfaces:
PollOption, java.io.Serializable

public class PollOptionImpl
extends java.lang.Object
implements PollOption, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
PollOptionImpl()
           
PollOptionImpl(java.lang.String question)
           
 
Method Summary
 java.lang.String getQuestion()
           
 int getVotes()
           
 void incVotes()
           
 void setQuestion(java.lang.String question)
           
 void setVotes(int votes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PollOptionImpl

public PollOptionImpl()

PollOptionImpl

public PollOptionImpl(java.lang.String question)
Method Detail

getVotes

public int getVotes()
Specified by:
getVotes in interface PollOption
Returns:

setVotes

public void setVotes(int votes)
Specified by:
setVotes in interface PollOption
Parameters:
votes -

getQuestion

public java.lang.String getQuestion()
Specified by:
getQuestion in interface PollOption
Returns:

setQuestion

public void setQuestion(java.lang.String question)
Specified by:
setQuestion in interface PollOption
Parameters:
question -

incVotes

public void incVotes()
Specified by:
incVotes in interface PollOption