|
|||||||||
| Home >> All >> ru >> gammalabs >> ice >> presentation >> web >> [ taglib overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
ru.gammalabs.ice.presentation.web.taglib
Class DateSelectTag

java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
ru.gammalabs.ice.presentation.web.taglib.DateSelectTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class DateSelectTag
- extends javax.servlet.jsp.tagext.BodyTagSupport
Custom tag that represents select fields for choosing date, associated with a bean property specified by our attributes. This tag must be nested inside a form tag.
| Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
DateSelectTag()
|
|
| Method Summary | |
int |
doAfterBody()
Save any body content of this tag, which will generally be the option(s) representing the values displayed to the user. |
int |
doEndTag()
Render the end of this form. |
int |
doStartTag()
Render the beginning of this form. |
java.lang.String |
getDay()
Getter for property day. |
int |
getDayInputMaxLength()
|
int |
getDayInputSize()
|
java.lang.String |
getDayInputStyle()
|
boolean |
getDisabled()
|
java.lang.String |
getFirstYearInList()
Getter for property firstYearInList. |
java.lang.String |
getHour()
|
int |
getHourInputMaxLength()
|
int |
getHourInputSize()
|
java.lang.String |
getHourInputStyle()
|
java.lang.String |
getLastYearInList()
Getter for property lastYearInList. |
java.lang.String |
getMinute()
|
int |
getMinuteInputMaxLength()
|
int |
getMinuteInputSize()
|
java.lang.String |
getMinuteInputStyle()
|
java.lang.String |
getMonth()
Getter for property month. |
int |
getMonthInputMaxLength()
|
int |
getMonthInputSize()
|
java.lang.String |
getMonthInputStyle()
|
java.lang.String |
getName()
Getter for property name. |
java.lang.String |
getNotSelectedText()
Getter for property notSelectedText. |
java.lang.String |
getNotSelectedValue()
Getter for property notSelectedValue. |
boolean |
getOptional()
|
private java.lang.String |
getProperty(java.lang.String property)
Gets named property as String from bean in pageContext (stored nder "name" key). |
private int |
getPropertyInteger(java.lang.String property)
|
boolean |
getShowTime()
|
java.lang.String |
getSpacer()
Getter for property spacer. |
java.lang.String |
getYear()
Getter for property year. |
int |
getYearInputMaxLength()
|
int |
getYearInputSize()
|
java.lang.String |
getYearInputStyle()
|
boolean |
isDisabled()
|
boolean |
isOptional()
|
boolean |
isShowTime()
|
void |
release()
Release any acquired resources. |
private void |
renderOption(java.lang.StringBuffer results,
int value,
java.lang.String text,
boolean selected)
|
private void |
renderSelect(java.lang.StringBuffer results,
java.lang.String name,
int minValue,
int maxValue,
java.lang.String[] texts,
int valueSelected,
int size)
Prints out teh |
private void |
renderTextInput(java.lang.StringBuffer to,
java.lang.String name,
int size,
int maxLength)
|
private void |
resetProperties()
|
void |
setDay(java.lang.String day)
Setter for property day. |
void |
setDayInputMaxLength(int dayInputMaxLength)
|
void |
setDayInputSize(int dayInputSize)
|
void |
setDayInputStyle(java.lang.String dayInputStyle)
|
void |
setDisabled(boolean disabled)
|
void |
setFirstYearInList(java.lang.String firstYearInList)
Setter for property firstYearInList. |
void |
setHour(java.lang.String hour)
|
void |
setHourInputMaxLength(int hourInputMaxLength)
|
void |
setHourInputSize(int hourInputSize)
|
void |
setHourInputStyle(java.lang.String hourInputStyle)
|
void |
setLastYearInList(java.lang.String lastYearInList)
Setter for property lastYearInList. |
void |
setMinute(java.lang.String minute)
|
void |
setMinuteInputMaxLength(int minuteInputMaxLength)
|
void |
setMinuteInputSize(int minuteInputSize)
|
void |
setMinuteInputStyle(java.lang.String minuteInputStyle)
|
void |
setMonth(java.lang.String month)
Setter for property month. |
void |
setMonthInputMaxLength(int monthInputMaxLength)
|
void |
setMonthInputSize(int monthInputSize)
|
void |
setMonthInputStyle(java.lang.String monthInputStyle)
|
void |
setName(java.lang.String name)
Setter for property name. |
void |
setNotSelectedText(java.lang.String notSelectedText)
Setter for property notSelectedText. |
void |
setNotSelectedValue(java.lang.String notSelectedValue)
Setter for property notSelectedValue. |
void |
setOptional(boolean optional)
|
void |
setShowTime(boolean showTime)
|
void |
setSpacer(java.lang.String spacer)
Setter for property spacer. |
void |
setYear(java.lang.String year)
Setter for property year. |
void |
setYearInputMaxLength(int yearInputMaxLength)
|
void |
setYearInputSize(int yearInputSize)
|
void |
setYearInputStyle(java.lang.String yearInputStyle)
|
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doInitBody, getBodyContent, getPreviousOut, setBodyContent |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
| Field Detail |
messages
protected static org.apache.struts.util.MessageResources messages
- The message resources for this package.
name
protected java.lang.String name
- The name of the bean containing our underlying property.
day
protected java.lang.String day
month
protected java.lang.String month
year
protected java.lang.String year
hour
protected java.lang.String hour
minute
protected java.lang.String minute
optional
protected boolean optional
disabled
protected boolean disabled
showTime
protected boolean showTime
yearInputStyle
protected java.lang.String yearInputStyle
monthInputStyle
protected java.lang.String monthInputStyle
dayInputStyle
protected java.lang.String dayInputStyle
hourInputStyle
protected java.lang.String hourInputStyle
minuteInputStyle
protected java.lang.String minuteInputStyle
yearInputSize
protected int yearInputSize
monthInputSize
protected int monthInputSize
dayInputSize
protected int dayInputSize
hourInputSize
protected int hourInputSize
minuteInputSize
protected int minuteInputSize
yearInputMaxLength
protected int yearInputMaxLength
monthInputMaxLength
protected int monthInputMaxLength
dayInputMaxLength
protected int dayInputMaxLength
hourInputMaxLength
protected int hourInputMaxLength
minuteInputMaxLength
protected int minuteInputMaxLength
INPUT_STYLE_SELECT
public static final java.lang.String INPUT_STYLE_SELECT
- See Also:
- Constant Field Values
INPUT_STYLE_TEXT
public static final java.lang.String INPUT_STYLE_TEXT
- See Also:
- Constant Field Values
firstYearInList
protected java.lang.String firstYearInList
lastYearInList
protected java.lang.String lastYearInList
DEFAULT_YEARS_INTERVAL
public int DEFAULT_YEARS_INTERVAL
notSelectedValue
protected java.lang.String notSelectedValue
DEFAULT_NOT_SELECTED_VALUE
public static final int DEFAULT_NOT_SELECTED_VALUE
- See Also:
- Constant Field Values
notSelectedText
protected java.lang.String notSelectedText
DEFAULT_NOT_SELECTED_TEXT
public static final java.lang.String DEFAULT_NOT_SELECTED_TEXT
- See Also:
- Constant Field Values
spacer
protected java.lang.String spacer
- String to fill in between select controls.
defaultLocale
protected static final java.util.Locale defaultLocale
- The default Locale for our server.
savedBody
protected java.lang.String savedBody
- The saved body content of this tag.
| Constructor Detail |
DateSelectTag
public DateSelectTag()
| Method Detail |
getYearInputMaxLength
public int getYearInputMaxLength()
setYearInputMaxLength
public void setYearInputMaxLength(int yearInputMaxLength)
getMonthInputMaxLength
public int getMonthInputMaxLength()
setMonthInputMaxLength
public void setMonthInputMaxLength(int monthInputMaxLength)
getDayInputMaxLength
public int getDayInputMaxLength()
setDayInputMaxLength
public void setDayInputMaxLength(int dayInputMaxLength)
getHourInputMaxLength
public int getHourInputMaxLength()
setHourInputMaxLength
public void setHourInputMaxLength(int hourInputMaxLength)
getMinuteInputMaxLength
public int getMinuteInputMaxLength()
setMinuteInputMaxLength
public void setMinuteInputMaxLength(int minuteInputMaxLength)
getYearInputSize
public int getYearInputSize()
setYearInputSize
public void setYearInputSize(int yearInputSize)
getMonthInputSize
public int getMonthInputSize()
setMonthInputSize
public void setMonthInputSize(int monthInputSize)
getDayInputSize
public int getDayInputSize()
setDayInputSize
public void setDayInputSize(int dayInputSize)
getHourInputSize
public int getHourInputSize()
setHourInputSize
public void setHourInputSize(int hourInputSize)
getMinuteInputSize
public int getMinuteInputSize()
setMinuteInputSize
public void setMinuteInputSize(int minuteInputSize)
getYearInputStyle
public java.lang.String getYearInputStyle()
setYearInputStyle
public void setYearInputStyle(java.lang.String yearInputStyle)
getMonthInputStyle
public java.lang.String getMonthInputStyle()
setMonthInputStyle
public void setMonthInputStyle(java.lang.String monthInputStyle)
getDayInputStyle
public java.lang.String getDayInputStyle()
setDayInputStyle
public void setDayInputStyle(java.lang.String dayInputStyle)
getHourInputStyle
public java.lang.String getHourInputStyle()
setHourInputStyle
public void setHourInputStyle(java.lang.String hourInputStyle)
getMinuteInputStyle
public java.lang.String getMinuteInputStyle()
setMinuteInputStyle
public void setMinuteInputStyle(java.lang.String minuteInputStyle)
getDay
public java.lang.String getDay()
- Getter for property day.
setDay
public void setDay(java.lang.String day)
- Setter for property day.
getMonth
public java.lang.String getMonth()
- Getter for property month.
setMonth
public void setMonth(java.lang.String month)
- Setter for property month.
getYear
public java.lang.String getYear()
- Getter for property year.
setYear
public void setYear(java.lang.String year)
- Setter for property year.
getName
public java.lang.String getName()
- Getter for property name.
setName
public void setName(java.lang.String name)
- Setter for property name.
getNotSelectedValue
public java.lang.String getNotSelectedValue()
- Getter for property notSelectedValue.
setNotSelectedValue
public void setNotSelectedValue(java.lang.String notSelectedValue)
- Setter for property notSelectedValue.
getNotSelectedText
public java.lang.String getNotSelectedText()
- Getter for property notSelectedText.
setNotSelectedText
public void setNotSelectedText(java.lang.String notSelectedText)
- Setter for property notSelectedText.
getFirstYearInList
public java.lang.String getFirstYearInList()
- Getter for property firstYearInList.
setFirstYearInList
public void setFirstYearInList(java.lang.String firstYearInList)
- Setter for property firstYearInList.
getLastYearInList
public java.lang.String getLastYearInList()
- Getter for property lastYearInList.
setLastYearInList
public void setLastYearInList(java.lang.String lastYearInList)
- Setter for property lastYearInList.
getSpacer
public java.lang.String getSpacer()
- Getter for property spacer.
setSpacer
public void setSpacer(java.lang.String spacer)
- Setter for property spacer.
getOptional
public boolean getOptional()
isOptional
public boolean isOptional()
setOptional
public void setOptional(boolean optional)
getDisabled
public boolean getDisabled()
isDisabled
public boolean isDisabled()
setDisabled
public void setDisabled(boolean disabled)
getHour
public java.lang.String getHour()
setHour
public void setHour(java.lang.String hour)
getMinute
public java.lang.String getMinute()
setMinute
public void setMinute(java.lang.String minute)
isShowTime
public boolean isShowTime()
getShowTime
public boolean getShowTime()
setShowTime
public void setShowTime(boolean showTime)
getProperty
private java.lang.String getProperty(java.lang.String property) throws javax.servlet.jsp.JspException
- Gets named property as String from bean in
pageContext (stored nder "name" key).
getPropertyInteger
private int getPropertyInteger(java.lang.String property) throws java.lang.NumberFormatException, javax.servlet.jsp.JspException
renderTextInput
private void renderTextInput(java.lang.StringBuffer to, java.lang.String name, int size, int maxLength) throws javax.servlet.jsp.JspException
renderSelect
private void renderSelect(java.lang.StringBuffer results, java.lang.String name, int minValue, int maxValue, java.lang.String[] texts, int valueSelected, int size) throws javax.servlet.jsp.JspException
- Prints out teh
renderOption
private void renderOption(java.lang.StringBuffer results, int value, java.lang.String text, boolean selected)
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Render the beginning of this form.
doAfterBody
public int doAfterBody()
throws javax.servlet.jsp.JspException
- Save any body content of this tag, which will generally be the
option(s) representing the values displayed to the user.
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Render the end of this form.
release
public void release()
- Release any acquired resources.
resetProperties
private void resetProperties()
|
|||||||||
| Home >> All >> ru >> gammalabs >> ice >> presentation >> web >> [ taglib overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC