|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.webui.dhtml.IlxWContainer ilog.webui.dhtml.IlxWComponent ilog.webui.dhtml.components.IlxWCalendar
public class IlxWCalendar
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-format
CSS style. Available modes are:
date-format
style 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"); ...
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ilog.webui.dhtml.IlxWComponent |
---|
IlxWComponent.DynamicStyleMap |
Field Summary | |
---|---|
static String |
CSS_RESOURCE_NAME
Resource path to the user-agent CSS. |
static int |
firstYear
|
static int |
lastYear
|
Fields inherited from class ilog.webui.dhtml.IlxWContainer |
---|
listenerList |
Constructor Summary | |
---|---|
IlxWCalendar()
Creates a calendar component initialized with the current date. |
|
IlxWCalendar(Date date)
Creates a calendar component initialized with the given date. |
|
IlxWCalendar(Date date,
com.ibm.icu.util.TimeZone timezone)
Creates a calendar component initialized with the given date. |
|
IlxWCalendar(com.ibm.icu.util.TimeZone timezone)
|
Method Summary | |
---|---|
void |
addChangeListener(ChangeListener l)
Adds the specified change listener to receive change events from this calendar. |
protected void |
fireStateChanged()
Notifies all listeners that have registered interest for notification on this event type. |
Date |
getDate()
Gets the date currently displayed in the calendar. |
protected IlxWCSSRuleset |
getUserAgentRules()
Gets the "user-agent" CSS rules. |
protected void |
printComponent(IlxWPort port)
Prints the HTML code that will display the graphical representation of this component. |
void |
removeChangeListener(ChangeListener l)
Removes the specified change listener so that it no longer receives change events from this calendar. |
void |
setDate(Date date)
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int firstYear
public static int lastYear
public static final String CSS_RESOURCE_NAME
Constructor Detail |
---|
public IlxWCalendar()
public IlxWCalendar(Date date)
date
- The date to display. Must not be null
.public IlxWCalendar(com.ibm.icu.util.TimeZone timezone)
public IlxWCalendar(Date date, com.ibm.icu.util.TimeZone timezone)
date
- The date to display. Must not be null
.Method Detail |
---|
public void setDate(Date date)
date
- The date to display. Must not be null
.public Date getDate()
public void addChangeListener(ChangeListener l)
A change event is fired when the date changes.
l
- The change listener.public void removeChangeListener(ChangeListener l)
l
- The change listener.protected void fireStateChanged()
The event instance is lazily created using the parameters passed into the fire method. The listener list is processed in last to first order.
protected void printComponent(IlxWPort port) throws IOException
IlxWComponent
IlxWComponent.print(ilog.webui.dhtml.IlxWPort)
method.
printComponent
in class IlxWComponent
IOException
port
- The port on which the component will be printed.IlxWComponent.print(ilog.webui.dhtml.IlxWPort)
protected IlxWCSSRuleset getUserAgentRules()
IlxWContainer
setAuthorRules
method.
This method returns null
by default but is intended
to be redefined by subclasses.
getUserAgentRules
in class IlxWContainer
IlxWContainer.setAuthorRules(ilog.webui.dhtml.IlxWCSSRuleset)
|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |