Package ilog.webui.dhtml.components
Class IlxWCalendar
- java.lang.Object
-
- ilog.webui.dhtml.IlxWContainer
-
- ilog.webui.dhtml.IlxWComponent
-
- ilog.webui.dhtml.components.IlxWCalendar
-
- All Implemented Interfaces:
IlxWConstants,IlxWCSSModelProvider,IlxWDependencyProvider,IlxWJSObject,Serializable
@Deprecated public class IlxWCalendar extends IlxWComponent
Deprecated.A calendar component that allows the user to view and edit a date.The calendar can be displayed in several modes, which can be set by changing the
date-formatCSS style. Available modes are:- date: only displays the day information (day,month,year) corresponding to the current date.
- time: only displays the time information (hour,minutes,seconds) corresponding to the current date,
- datetime: displays the time information (hour,minute,second) and the day information (day,month,year).
date-formatstyle is defined to "datetime" by the calendar user agent style sheet.To change the current date format to "date", you could write the following code:
IlxWCalendar myCalendar = new IlxWCalendar(); myCalendar.getStyle().set("dateFormat", "date"); ...- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ilog.webui.dhtml.IlxWComponent
IlxWComponent.DynamicStyleMap
-
-
Field Summary
Fields Modifier and Type Field Description static StringCSS_RESOURCE_NAMEDeprecated.Resource path to the user-agent CSS.static intfirstYearDeprecated.static intlastYearDeprecated.-
Fields inherited from class ilog.webui.dhtml.IlxWContainer
listenerList
-
Fields inherited from interface ilog.webui.dhtml.IlxWConstants
ATTR_CONFIG_RESNAME, ATTR_EXCEPTION, ATTR_IE5UPDATE, ATTR_MODIFIERS, ATTR_OPENPORT, ATTR_REQUESTPATH, ATTR_UPDATEREQUEST_LIST, ATTRIBUTE_SERVICE, CID_PREFIX, DATE_FORMAT_DATE, DATE_FORMAT_DATETIME, DATE_FORMAT_TIME, HTML_ESCAPE, ILRIFRAME, IMGID_PREFIX, MIME_APPLICATION_JAVASCRIPT, MIME_IMAGE_GIF, MIME_IMAGE_JPG, MIME_TEXT_HTML, NO_ESCAPE, PARAM_CONTROLLER_PATH, PARAM_DATA, PARAM_PORT, PARAM_RESOURCE_MANAGER_PATH, PARAM_SERVICE, PARAM_SERVLET_CONTEXT_DELEGATE, PARAM_VIEW_PATH, PROP_ACTION, PROP_AFTER, PROP_ALIGN, PROP_BACKGROUND_COLOR, PROP_BEFORE, PROP_BORDER, PROP_BORDER_BOTTOM, PROP_BORDER_COLOR, PROP_BORDER_LEFT, PROP_BORDER_RIGHT, PROP_BORDER_STYLE, PROP_BORDER_TOP, PROP_BORDER_WIDTH, PROP_BOTTOM_RIGHT_ICON, PROP_CELL_PADDING, PROP_CELL_SPACING, PROP_CHECKMENU_ICON, PROP_COLOR, PROP_COLS, PROP_COLUMNS, PROP_CURSOR, PROP_DATE_FORMAT, PROP_DHTML, PROP_EMPTY_TEXT, PROP_ENABLED, PROP_FILTER, PROP_FONT, PROP_FONT_FAMILY, PROP_FONT_SIZE, PROP_FONT_STYLE, PROP_FONT_WEIGHT, PROP_HEIGHT, PROP_ICON, PROP_ICON_TEXT_GAP, PROP_INNER_HTML, PROP_ITEM_HEIGHT, PROP_LINE_HEIGHT, PROP_MIME_TYPE, PROP_MINUS_SQUARE_ICON, PROP_NOWRAP, PROP_ONMOUSEOUT, PROP_ONMOUSEOVER, PROP_OVERFLOW, PROP_PADDING, PROP_PATH, PROP_PLUS_SQUARE_ICON, PROP_POSTPONED, PROP_RIGHT_ICON, PROP_ROOT_VISIBLE, PROP_ROWS, PROP_SELECTED, PROP_SELECTED_INDEX, PROP_SELECTION_BACKGROUND_COLOR, PROP_SELECTION_COLOR, PROP_SHOW_HORIZONTAL_LINES, PROP_SHOW_VERTICAL_LINES, PROP_SHOWS_ROOT_HANDLES, PROP_SQUARE_ICON, PROP_SUBMENU_ICON, PROP_TAB_PLACEMENT, PROP_TEXT, PROP_TEXT_DECORATION, PROP_TEXT_POSITION, PROP_TOOLTIP, PROP_TOP_BOTTOM_ICON, PROP_TOP_BOTTOM_RIGHT_ICON, PROP_TOP_RIGHT_ICON, PROP_TOP_ROW, PROP_TOTAL_ROW_COUNT, PROP_VALIGN, PROP_VISIBLE_ROW_COUNT, PROP_WIDTH, SERVICE_BLANKPAGE, SERVICE_BLANKPAGE_INT, SERVICE_COMMAND, SERVICE_COMMAND_INT, SERVICE_FORWARD, SERVICE_FORWARD_INT, SERVICE_SERIALIZE, SERVICE_SERIALIZE_INT, TARGET_IFRAME, TARGET_SELF, VAR_PREFIX, WEB_ALREADY_ATTACHED, WEB_MISSING_OPENPORT, WEB_NULL_MANAGER, XML_ESCAPE
-
-
Constructor Summary
Constructors Constructor Description IlxWCalendar()Deprecated.Creates a calendar component initialized with the current date.IlxWCalendar(com.ibm.icu.util.TimeZone timezone)Deprecated.IlxWCalendar(Date date)Deprecated.Creates a calendar component initialized with the given date.IlxWCalendar(Date date, com.ibm.icu.util.TimeZone timezone)Deprecated.Creates a calendar component initialized with the given date.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddChangeListener(ChangeListener l)Deprecated.Adds the specified change listener to receive change events from this calendar.protected voidfireStateChanged()Deprecated.Notifies all listeners that have registered interest for notification on this event type.DategetDate()Deprecated.Gets the date currently displayed in the calendar.protected IlxWCSSRulesetgetUserAgentRules()Deprecated.Gets the "user-agent" CSS rules.protected voidprintComponent(IlxWPort port)Deprecated.Prints the HTML code that will display the graphical representation of this component.voidremoveChangeListener(ChangeListener l)Deprecated.Removes the specified change listener so that it no longer receives change events from this calendar.voidsetDate(Date date)Deprecated.Sets the date to display in the calendar.-
Methods inherited from class ilog.webui.dhtml.IlxWComponent
addPropertyChangeListener, addPropertyChangeListener, detach, doPrint, firePropertyChange, firePropertyChange, getName, getRealHtmlTagName, getStyle, invalidate, isInvalidated, notifyDependencies, print, removePropertyChangeListener, removePropertyChangeListener, setName, validate
-
Methods inherited from class ilog.webui.dhtml.IlxWContainer
add, add, getAttribute, getAttributeNames, getComponent, getComponentCount, getComponentNamed, getComponents, getManager, getParent, indexOf, isAncestorOf, remove, remove, removeAll, removeAttribute, setAttribute, setAuthorRules, setFinalizer
-
-
-
-
Field Detail
-
firstYear
public static int firstYear
Deprecated.
-
lastYear
public static int lastYear
Deprecated.
-
CSS_RESOURCE_NAME
public static final String CSS_RESOURCE_NAME
Deprecated.Resource path to the user-agent CSS.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IlxWCalendar
public IlxWCalendar()
Deprecated.Creates a calendar component initialized with the current date.
-
IlxWCalendar
public IlxWCalendar(Date date)
Deprecated.Creates a calendar component initialized with the given date.- Parameters:
date- The date to display. Must not benull.
-
IlxWCalendar
public IlxWCalendar(com.ibm.icu.util.TimeZone timezone)
Deprecated.
-
IlxWCalendar
public IlxWCalendar(Date date, com.ibm.icu.util.TimeZone timezone)
Deprecated.Creates a calendar component initialized with the given date.- Parameters:
date- The date to display. Must not benull.
-
-
Method Detail
-
setDate
public void setDate(Date date)
Deprecated.Sets the date to display in the calendar.- Parameters:
date- The date to display. Must not benull.
-
getDate
public Date getDate()
Deprecated.Gets the date currently displayed in the calendar.- Returns:
- The calendar current date.
-
addChangeListener
public void addChangeListener(ChangeListener l)
Deprecated.Adds the specified change listener to receive change events from this calendar.A change event is fired when the date changes.
- Parameters:
l- The change listener.
-
removeChangeListener
public void removeChangeListener(ChangeListener l)
Deprecated.Removes the specified change listener so that it no longer receives change events from this calendar.- Parameters:
l- The change listener.
-
fireStateChanged
protected void fireStateChanged()
Deprecated.Notifies all listeners that have registered interest for notification on this event type.The event instance is lazily created using the parameters passed into the fire method. The listener list is processed in last to first order.
-
printComponent
protected void printComponent(IlxWPort port) throws IOException
Deprecated.Description copied from class:IlxWComponentPrints the HTML code that will display the graphical representation of this component. This method is called by theIlxWComponent.print(ilog.webui.dhtml.IlxWPort)method.- Specified by:
printComponentin classIlxWComponent- Parameters:
port- The port on which the component will be printed.- Throws:
IOException- See Also:
IlxWComponent.print(ilog.webui.dhtml.IlxWPort)
-
getUserAgentRules
protected IlxWCSSRuleset getUserAgentRules()
Deprecated.Description copied from class:IlxWContainerGets the "user-agent" CSS rules.
User agent rules are a set of CSS rules which will apply by default to each instance of this container. They may be completed or overridden by the author rules, set via thesetAuthorRulesmethod.This method returns
nullby default but is intended to be redefined by subclasses.- Overrides:
getUserAgentRulesin classIlxWContainer- Returns:
- a CSS ruleset.
- See Also:
IlxWContainer.setAuthorRules(ilog.webui.dhtml.IlxWCSSRuleset)
-
-