public class

GGCalendarImpl

extends AbstractGuiElement
implements GGCalendar
java.lang.Object
   ↳ com.microstrategy.web.app.gui.AbstractGuiElement
     ↳ com.microstrategy.web.app.gui.GGCalendarImpl

Class Overview

GGCalendarImpl abstraction

Summary

[Expand]
Inherited Fields
From class com.microstrategy.web.app.gui.AbstractGuiElement
Public Constructors
GGCalendarImpl()
Constructor.
GGCalendarImpl(String calendarImage)
Constructor.
Public Methods
void displayDescriptors(MarkupOutput out)
function for rendering localized names for months and days.
String getCalendarButtonName()
Returns calendar HTML button name.
MarkupOutput renderElement()
return render element for writing output
void setCSS(String calendarCSS)
function for initializing calendar css
void setCalendarButtonName(String calendarButtonName)
Function for setting calendar button name
void setCalendarRestrictions(String dateMax, String dateMin, String maxDateRestStr, String minDateRestStr)
function that renders Javascript code for creating an Calendar object.
void setCalendarRestrictions(String dateMax, String dateMin)
function that renders Javascript code for creating an Calendar object.
void setImage(String calendarImage)
function for initializing calendar image name
void showCalendar(MarkupOutput out, String textBoxName, int dataType)
function for showing calendar button.
void showCalendar(MarkupOutput out, String textBoxName)
function for displaying calendar button
void showCalendarButton(MarkupOutput out, String calendarButtonName)
function that makes visible the calendar button.
void showOrHideCalendarButton(MarkupOutput out, String pulldownMenu)
function for rendering SCRIPT code for showing or hiding calendar image.
void updateOperator(MarkupOutput out, String operatorPullDownMenuName)
function for updating global variable for defining name of pulldown menu for a give operator.
[Expand]
Inherited Methods
From class com.microstrategy.web.app.gui.AbstractGuiElement
From class java.lang.Object
From interface com.microstrategy.web.app.gui.GGCalendar
From interface com.microstrategy.web.app.gui.GuiElement

Public Constructors

public GGCalendarImpl ()

Constructor. No arguments.

public GGCalendarImpl (String calendarImage)

Constructor. Takes name for calendar image.

Public Methods

public void displayDescriptors (MarkupOutput out)

function for rendering localized names for months and days.

Parameters
out where to write the output of the method.

public String getCalendarButtonName ()

Returns calendar HTML button name.

Returns
  • String calendar button name

public MarkupOutput renderElement ()

return render element for writing output

Returns
  • MarkupOutput

public void setCSS (String calendarCSS)

function for initializing calendar css

public void setCalendarButtonName (String calendarButtonName)

Function for setting calendar button name

Parameters
calendarButtonName name of calendar button.

public void setCalendarRestrictions (String dateMax, String dateMin, String maxDateRestStr, String minDateRestStr)

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.

Parameters
dateMax String specifies restriction for minimum date
dateMin String specifies restriction for maximum date
maxDateRestStr String specifies the id for maximum date in output
minDateRestStr String specifies the id for minimum date in output

public void setCalendarRestrictions (String dateMax, String dateMin)

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.

Parameters
dateMax String specifies restriction for minimum date
dateMin String specifies restriction for maximum date

public void setImage (String calendarImage)

function for initializing calendar image name

Parameters
calendarImage path to image used for rendering calendar.

public void showCalendar (MarkupOutput out, String textBoxName, int dataType)

function for showing calendar button. It validates value in textfield has a time data type.

Parameters
out where to write the output of the method.
textBoxName HTML textfield where date values are entered.
dataType current attribute form data type

public void showCalendar (MarkupOutput out, String textBoxName)

function for displaying calendar button

Parameters
out where to write the output of the method.
textBoxName name of HTML textbox where date value are entered by End user

public void showCalendarButton (MarkupOutput out, String calendarButtonName)

function that makes visible the calendar button.

Parameters
out where to write the output of the method.
calendarButtonName button name

public void showOrHideCalendarButton (MarkupOutput out, String pulldownMenu)

function for rendering SCRIPT code for showing or hiding calendar image.

Parameters
out where to write the output of the method.
pulldownMenu HTML menu with corresponding attribute forms and datatype

public void updateOperator (MarkupOutput out, 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.

Parameters
out where to write the output of the method.