net.simplace.pipe.formcomponents.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.pipe.formcomponents.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 void actionPerformed(ActionEvent e); // From
java.awt.event.ActionListener
}
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.pipe.formcomponents.FWAbstractFormSubComponent - FWDaySubComponent (java.awt.event.ActionListener)