Package com.microstrategy.web.app.gui
Class GGCalendarImpl
- java.lang.Object
-
- com.microstrategy.web.app.gui.AbstractGuiElement
-
- com.microstrategy.web.app.gui.GGCalendarImpl
-
- All Implemented Interfaces:
GGCalendar
,GuiElement
public class GGCalendarImpl extends AbstractGuiElement implements GGCalendar
GGCalendarImpl abstraction- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Field Summary
-
Fields inherited from class com.microstrategy.web.app.gui.AbstractGuiElement
_appContext, _name, _webComponent
-
-
Constructor Summary
Constructors Constructor Description GGCalendarImpl()
Constructor.GGCalendarImpl(java.lang.String calendarImage)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
displayDescriptors(MarkupOutput out)
function for rendering localized names for months and days.java.lang.String
getCalendarButtonName()
Returns calendar HTML button name.MarkupOutput
renderElement()
return render element for writing outputvoid
setCalendarButtonName(java.lang.String calendarButtonName)
Function for setting calendar button namevoid
setCalendarRestrictions(java.lang.String dateMax, java.lang.String dateMin)
function that renders Javascript code for creating an Calendar object.void
setCalendarRestrictions(java.lang.String dateMax, java.lang.String dateMin, java.lang.String maxDateRestStr, java.lang.String minDateRestStr)
function that renders Javascript code for creating an Calendar object.void
setCSS(java.lang.String calendarCSS)
function for initializing calendar cssvoid
setImage(java.lang.String calendarImage)
function for initializing calendar image namevoid
showCalendar(MarkupOutput out, java.lang.String textBoxName)
function for displaying calendar buttonvoid
showCalendar(MarkupOutput out, java.lang.String textBoxName, int dataType)
function for showing calendar button.void
showCalendarButton(MarkupOutput out, java.lang.String calendarButtonName)
function that makes visible the calendar button.void
showOrHideCalendarButton(MarkupOutput out, java.lang.String pulldownMenu)
function for rendering SCRIPT code for showing or hiding calendar image.void
updateOperator(MarkupOutput out, java.lang.String operatorPullDownMenuName)
function for updating global variable for defining name of pulldown menu for a give operator.-
Methods inherited from class com.microstrategy.web.app.gui.AbstractGuiElement
getAppContext, getDescriptor, getDescriptor, getDescriptor, getEventManager, getExtraInput, getExtraUrl, getFeatures, getMessages, getName, getTagsFactory, getUseIFrame, getWebComponent, isDhtml, isIFrameEnabled, newHiddenInputBuilder, newNamespaceEncoder, newURIBuilder, renderElement, setAppContext, setExtraInput, setExtraUrl, setName, setUseIFrame, setWebComponent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.microstrategy.web.app.gui.GuiElement
getAppContext, getDescriptor, getDescriptor, getEventManager, getExtraInput, getExtraUrl, getFeatures, getMessages, getName, getUseIFrame, getWebComponent, renderElement, setAppContext, setExtraInput, setExtraUrl, setName, setUseIFrame, setWebComponent
-
-
-
-
Method Detail
-
renderElement
public MarkupOutput renderElement()
return render element for writing output- Specified by:
renderElement
in interfaceGuiElement
- Specified by:
renderElement
in classAbstractGuiElement
- Returns:
- MarkupOutput
-
showCalendar
public void showCalendar(MarkupOutput out, java.lang.String textBoxName, int dataType)
function for showing calendar button. It validates value in textfield has a time data type.- Specified by:
showCalendar
in interfaceGGCalendar
- Parameters:
out
- where to write the output of the method.textBoxName
- HTML textfield where date values are entered.dataType
- current attribute form data type
-
setCalendarRestrictions
public void setCalendarRestrictions(java.lang.String dateMax, java.lang.String dateMin)
Description copied from interface:GGCalendar
function that renders Javascript code for creating an Calendar object. It invokes javascript code for showing a calendar object. This code will display a calendar if attribute form data type corresponds to any date type.- Specified by:
setCalendarRestrictions
in interfaceGGCalendar
- Parameters:
dateMax
- String specifies restriction for minimum datedateMin
- String specifies restriction for maximum date- Since:
- MicroStrategy Web 7.5.1
-
setCalendarRestrictions
public void setCalendarRestrictions(java.lang.String dateMax, java.lang.String dateMin, java.lang.String maxDateRestStr, java.lang.String minDateRestStr)
Description copied from interface:GGCalendar
function that renders Javascript code for creating an Calendar object. It invokes javascript code for showing a calendar object. This code will display a calendar if attribute form data type corresponds to any date type.- Specified by:
setCalendarRestrictions
in interfaceGGCalendar
- Parameters:
dateMax
- String specifies restriction for minimum datedateMin
- String specifies restriction for maximum datemaxDateRestStr
- String specifies the id for maximum date in outputminDateRestStr
- String specifies the id for minimum date in output- Since:
- MicroStrategy Web 9.0.0
-
showCalendar
public void showCalendar(MarkupOutput out, java.lang.String textBoxName)
function for displaying calendar button- Specified by:
showCalendar
in interfaceGGCalendar
- Parameters:
out
- where to write the output of the method.textBoxName
-
-
displayDescriptors
public void displayDescriptors(MarkupOutput out)
function for rendering localized names for months and days.- Specified by:
displayDescriptors
in interfaceGGCalendar
- Parameters:
out
- where to write the output of the method.
-
showCalendarButton
public void showCalendarButton(MarkupOutput out, java.lang.String calendarButtonName)
function that makes visible the calendar button.- Specified by:
showCalendarButton
in interfaceGGCalendar
- Parameters:
out
- where to write the output of the method.calendarButtonName
- button name
-
showOrHideCalendarButton
public void showOrHideCalendarButton(MarkupOutput out, java.lang.String pulldownMenu)
function for rendering SCRIPT code for showing or hiding calendar image.- Specified by:
showOrHideCalendarButton
in interfaceGGCalendar
- Parameters:
out
- where to write the output of the method.pulldownMenu
-
-
updateOperator
public void updateOperator(MarkupOutput out, java.lang.String operatorPullDownMenuName)
function for updating global variable for defining name of pulldown menu for a give operator.
This is needed because this variable doesn't reflect default selection value in given operator pulldown.- Specified by:
updateOperator
in interfaceGGCalendar
- Parameters:
out
- where to write the output of the method.operatorPullDownMenuName
-
-
setImage
public void setImage(java.lang.String calendarImage)
function for initializing calendar image name- Specified by:
setImage
in interfaceGGCalendar
- Parameters:
calendarImage
-
-
setCSS
public void setCSS(java.lang.String calendarCSS)
function for initializing calendar css- Specified by:
setCSS
in interfaceGGCalendar
- Parameters:
calendarCSS
-
-
setCalendarButtonName
public void setCalendarButtonName(java.lang.String calendarButtonName)
Function for setting calendar button name- Specified by:
setCalendarButtonName
in interfaceGGCalendar
- Parameters:
calendarButtonName
-
-
getCalendarButtonName
public java.lang.String getCalendarButtonName()
Returns calendar HTML button name.- Specified by:
getCalendarButtonName
in interfaceGGCalendar
- Returns:
- String calendar button name
-
-