public interface IDateTimeComponent
Modifier and Type | Method and Description |
---|---|
com.sapportals.htmlb.Component |
getComponent() |
com.sapportals.htmlb.InputField |
getLabeledComponent() |
Date |
getTime() |
String |
getTimeLabel()
Getter for the Time Field Label
|
void |
setDateScript(String dateJs) |
void |
setEnabled(boolean bEnable)
Enable or disable the DateTimeControl.
|
void |
setIDScript(String componentId)
This method is called to set the html form id of the actual DateTimeControl
created.
|
void |
setOnClientChange(String dateJs,
String timeJs)
Client side js methods to be executed on change of Date or Time field in DateTimeControl
These methods has to be present in the Javascript includes of the component using the
DateTimeControl.
|
void |
setTime(Date date)
Set the Date value to be displayed in the DateTimeControl
|
void |
setTimeLabel(String timeLabelString)
Use this to override the default value (language adjusted value "Time " ) of the Time Field Label text
Note that the Label will not be visible until you
set the value of
bShowTimeLabel in showTimeLabel(boolean) . |
void |
showDateAndTimeField(boolean bShowBothFields)
Sets the flag for showing the date and time field.
|
void |
showDateHelper(boolean bDateHelper)
Show or hide the date picker
|
void |
showTimeHelper(boolean bTimeHelper)
Show or hide the time helper
|
void |
showTimeLabel(boolean bShowTimeLabel)
This allows one to Toggle ON/OFF the label associated with the Time Field.
|
void setOnClientChange(String dateJs, String timeJs)
dateJs
- timeJs
- void setIDScript(String componentId)
componentId
- void setDateScript(String dateJs)
dateJs
- void setTime(Date date)
date
- Date getTime()
com.sapportals.htmlb.Component getComponent()
void showDateAndTimeField(boolean bShowBothFields)
bShowBothFields
- void showDateHelper(boolean bDateHelper)
bDateHelper
- Boolean value specifying whether the date picker is shown or notvoid showTimeHelper(boolean bTimeHelper)
bTimeHelper
- Boolean value specifying whether the time selector is a Dropdown box or an Input fieldvoid setEnabled(boolean bEnable)
bEnable
- Boolean value specifying whether the time selector is a Dropdown box or an Input fieldcom.sapportals.htmlb.InputField getLabeledComponent()
void showTimeLabel(boolean bShowTimeLabel)
NOTE: If this is set to true
then the default value (language adjusted value "Time " ) of the Label Text is set.
To override this please set the value of timeLabelString
in setTimeLabel(String)
bShowTimeLabel
- state of Time Labelvoid setTimeLabel(String timeLabelString)
Note that the Label will not be visible until you
set the value of bShowTimeLabel
in showTimeLabel(boolean)
.
NOTE: The timeLabelString
should be language-adjusted already for internationalization issues.
timeLabelString
- text of the Time Field LabelString getTimeLabel()
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-COLL
|
[sap.com] tc/kmc/coll/gw
|
api
|
EP-KM-COL
|
Copyright 2018 SAP AG Complete Copyright Notice