net.simplace.ui.formengine.date.FWDaySubComponent

A FWDaySubComponent displays a calendar view of a specific month in a specific year and lets the user choose a from a range of days in that month. Next to the days, the number of the current week in the year s also displayed.

The displayed month can be changed at runtime using the updateLabels function.

Whenever a day is selected, the control notifies registered ChangeListeners by firing a stateChanged event. Apart from listening to events, the currently selected day may be obtained or changed at any time using the getValue() and setValue functions.




public class FWDaySubComponent extends
net.simplace.ui.formengine.FWAbstractFormSubComponent implements
java.awt.event.ActionListener {
// Public Constructors
public FWDaySubComponent(int aYear, int aMonth, int aMinDay, int aMaxDay,
int aDefaultDay, FWObservable aObservable, Map
aFormComponentParameterMap);


// Public Instance Methods
public void updateLabels(int aYear, int aMonth, int aMinDay, int aMaxDay,
int aDefaultDay);

Displays the month specified by aYear and aMonth and makes all days between aMinDay and aMaxDay selectable. In this new calendar view, aDefaultDay will be preselected.
public String getValue(); // Defines
net.simplace.ui.formengine.FWAbstractFormSubComponent


public void setValue(String aValue); // Defines
net.simplace.ui.formengine.FWAbstractFormSubComponent


public void actionPerformed(ActionEvent e); // From
java.awt.event.ActionListener


public List getSelectedValueList(); // Defines
net.simplace.ui.formengine.FWAbstractFormSubComponent




}



Hierarchy: java.lang.Object - java.awt.Component (java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable) - java.awt.Container - javax.swing.JComponent (java.io.Serializable, javax.swing.TransferHandler.HasGetTransferHandler) - javax.swing.JPanel (javax.accessibility.Accessible) - net.simplace.ui.formengine.FWAbstractFormSubComponent - FWDaySubComponent (java.awt.event.ActionListener)