JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.swing
Interface JCPopupCalendarEditor

All Superinterfaces:
Serializable
All Known Implementing Classes:
DateTimePopup

public interface JCPopupCalendarEditor
extends Serializable

Interface for writing calendar popup editors.


Method Summary
 void addPopupListener(com.klg.jclass.util.swing.JCPopupListener l)
          Add a JCPopupListener to the popup to inform when the value in the popup component has been committed.
 void firePopupEvent()
          Fire a popup event to all listeners.
 JComponent getEditorComponent()
          Returns the component in the popup calendar editor.
 boolean getHidePopupOnDayTableClick()
          Get whether the popup will popdown when the user selects a day on the day table.
 boolean getShowApplyButton()
          Get whether an apply button be shown in the popup.
 boolean getShowTimeComponent()
          Gets whether the time component should appear or not.
 void removePopupListener(com.klg.jclass.util.swing.JCPopupListener l)
          Removes a JCPopupListener.
 void setFont(Font f)
          Sets the Font of the popup.
 void setHidePopupOnDayTableClick(boolean hidePopupOnDayTableClick)
          Set whether the popup will popdown when the user selects a day on the day table.
 void setLocale(Locale locale)
          Sets the locale being used by the popup.
 void setMaximumDate(Object maxDate)
          Sets the maximum date.
 void setMinimumDate(Object minDate)
          Sets the minimum date.
 void setShowApplyButton(boolean showApplyButton)
          Set whether an apply button be shown in the popup.
 void setShowTimeComponent(boolean showTimeComponent)
          Sets whether the time component should appear or not.
 void setValue(Object value)
          Sets the value in the popup editor.
 

Method Detail

getEditorComponent

public JComponent getEditorComponent()
Returns the component in the popup calendar editor.

Returns:
The component used to do the editing.

addPopupListener

public void addPopupListener(com.klg.jclass.util.swing.JCPopupListener l)
Add a JCPopupListener to the popup to inform when the value in the popup component has been committed.

Parameters:
l - The popup listener to add

removePopupListener

public void removePopupListener(com.klg.jclass.util.swing.JCPopupListener l)
Removes a JCPopupListener.

Parameters:
l - The popup listener to remove

firePopupEvent

public void firePopupEvent()
Fire a popup event to all listeners.


setValue

public void setValue(Object value)
Sets the value in the popup editor.

Parameters:
value - The value to set on the popup editor. This value can be of type Calendar or Date.

setMinimumDate

public void setMinimumDate(Object minDate)
Sets the minimum date. The calendar cannot change to before this date.

Parameters:
minDate - The new minimum date. This value can be of type Calendar or Date.

setMaximumDate

public void setMaximumDate(Object maxDate)
Sets the maximum date. The calendar cannot change to after this date.

Parameters:
maxDate - The new maximum date. This value can be of type Calendar or Date.

setLocale

public void setLocale(Locale locale)
Sets the locale being used by the popup.

Parameters:
locale - The new locale to be used

setFont

public void setFont(Font f)
Sets the Font of the popup. This font gets propagated to the child components.

Parameters:
f - The new Font for the popup.

getShowTimeComponent

public boolean getShowTimeComponent()
Gets whether the time component should appear or not.

Returns:
true, if the time component will appear in the popup.

setShowTimeComponent

public void setShowTimeComponent(boolean showTimeComponent)
Sets whether the time component should appear or not.

Parameters:
showTimeComponent - If true, the time component will appear.

getShowApplyButton

public boolean getShowApplyButton()
Get whether an apply button be shown in the popup. If an apply button is shown, clicking on the button applies the value to the model and hides the popup.

Returns:
true, if the apply button will appear.

setShowApplyButton

public void setShowApplyButton(boolean showApplyButton)
Set whether an apply button be shown in the popup. If an apply button is shown, clicking on the button applies the value to the model and hides the popup.

Parameters:
showApplyButton - If true, an apply button is shown in the popup.

getHidePopupOnDayTableClick

public boolean getHidePopupOnDayTableClick()
Get whether the popup will popdown when the user selects a day on the day table.

Returns:
true, if the popup will popdown when the user selects a day on the day table.

setHidePopupOnDayTableClick

public void setHidePopupOnDayTableClick(boolean hidePopupOnDayTableClick)
Set whether the popup will popdown when the user selects a day on the day table.

Parameters:
hidePopupOnDayTableClick - If true, the popup will popdown when the user selects a day on the day table.

Copyright © 2004 Quest Software Inc..
All rights reserved.