|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sakaiproject.announcement.tool.AnnouncementActionState.DisplayOptions
public static class AnnouncementActionState.DisplayOptions
Holds the display options for the Announcements tool
| Constructor Summary | |
|---|---|
AnnouncementActionState.DisplayOptions()
Default constructor |
|
| Method Summary | |
|---|---|
int |
getNumberOfAnnouncements()
Gets the number of announcements that we will show (if the limit is enabled). |
int |
getNumberOfCharsPerAnnouncement()
Gets the number of characters that we will show in an announcement (if the limit is enabled). |
int |
getNumberOfDaysInThePast()
Gets the number of days in the past for which we will show announcments (if the limit is enabled). |
static String |
getVarNameEnforceNumberOfAnnouncementsLimit()
Gets a variable name for use in Velocity scripts to name input fields, etc. |
static String |
getVarNameEnforceNumberOfCharsPerAnnouncementLimit()
Gets a variable name for use in Velocity scripts to name input fields, etc. |
static String |
getVarNameEnforceNumberOfDaysInPastLimit()
Gets a variable name for use in Velocity scripts to name input fields, etc. |
static String |
getVarNameNumberCharsPerAnnouncement()
Gets a variable name for use in Velocity scripts to name input fields, etc. |
static String |
getVarNameNumberOfAnnouncements()
Gets a variable name for use in Velocity scripts to name input fields, etc. |
static String |
getVarNameNumberOfDaysInPast()
Gets a variable name for use in Velocity scripts to name input fields, etc. |
static String |
getVarNameShowAllColumns()
Gets a variable name for use in Velocity scripts to name input fields, etc. |
static String |
getVarNameShowAnnouncementBody()
Gets a variable name for use in Velocity scripts to name input fields, etc. |
boolean |
isEnforceNumberOfAnnouncementsLimit()
Returns true if we should limit the number of announcments shown. |
boolean |
isEnforceNumberOfCharsPerAnnouncement()
Returns true if we should limit the number of characters per announcement. |
boolean |
isEnforceNumberOfDaysInThePastLimit()
Returns true if we should limit the announcements displayed based on the number of days in the past on which the occurred. |
boolean |
isShowAllColumns()
Gets whether or not we should show all the columns associated with the announcement. |
boolean |
isShowAnnouncementBody()
Gets whether or not we should show the announcement body. |
boolean |
isShowOnlyOptionsButton()
|
void |
loadProperties(Map<?,?> params)
Loads properties from a map into our object. |
void |
loadProperties(org.sakaiproject.util.ParameterParser parameters)
Loads properties from a ParameterParser object (usually gotten from a user's page submission). |
void |
saveProperties(Properties resEdit)
Saves the properties in this object to a ResourcePropertiesEdit object. |
void |
setEnforceNumberOfAnnouncementsLimit(boolean b)
Sets whether or not we should limit the number of announcements displayed. |
void |
setEnforceNumberOfCharsPerAnnouncement(boolean b)
Sets whether or not we should limit the number of chars per announcement. |
void |
setEnforceNumberOfDaysInThePastLimit(boolean b)
Sets whether or not we shoud limit the announcements displayed based on the number of days in the past on which they occurred. |
void |
setNumberOfAnnouncements(int i)
Sets the limit on the number of announcements to show (if the limit is enabled). |
void |
setNumberOfCharsPerAnnouncement(int i)
Sets the number of characters to show per announcement (if the limit is enabled). |
void |
setNumberOfDaysInThePast(int i)
Sets the number of days in the past for which we will show announcments (if the limit is enabled). |
void |
setShowAllColumns(boolean b)
Sets whether or not we should show all the columns associated with the announcement. |
void |
setShowAnnouncementBody(boolean b)
Sets whether or not we should show the announcement body. |
void |
setShowOnlyOptionsButton(boolean b)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnouncementActionState.DisplayOptions()
| Method Detail |
|---|
public int getNumberOfAnnouncements()
public int getNumberOfCharsPerAnnouncement()
public int getNumberOfDaysInThePast()
public boolean isShowAnnouncementBody()
public boolean isShowAllColumns()
public void setNumberOfAnnouncements(int i)
public void setNumberOfCharsPerAnnouncement(int i)
public void setNumberOfDaysInThePast(int i)
public void setShowAnnouncementBody(boolean b)
public void setShowAllColumns(boolean b)
public boolean isEnforceNumberOfAnnouncementsLimit()
public boolean isEnforceNumberOfCharsPerAnnouncement()
public boolean isEnforceNumberOfDaysInThePastLimit()
public void setEnforceNumberOfAnnouncementsLimit(boolean b)
public void setEnforceNumberOfCharsPerAnnouncement(boolean b)
public void setEnforceNumberOfDaysInThePastLimit(boolean b)
public void loadProperties(Map<?,?> params)
public void loadProperties(org.sakaiproject.util.ParameterParser parameters)
public void saveProperties(Properties resEdit)
public static String getVarNameEnforceNumberOfAnnouncementsLimit()
public static String getVarNameEnforceNumberOfDaysInPastLimit()
public static String getVarNameNumberCharsPerAnnouncement()
public static String getVarNameNumberOfAnnouncements()
public static String getVarNameEnforceNumberOfCharsPerAnnouncementLimit()
public static String getVarNameNumberOfDaysInPast()
public static String getVarNameShowAllColumns()
public static String getVarNameShowAnnouncementBody()
public boolean isShowOnlyOptionsButton()
public void setShowOnlyOptionsButton(boolean b)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||