com.sas.swing.visuals.dataselectors.propertyeditor
Class DateEditorPanel

com.sas.swing.visuals.dataselectors.propertyeditor.DateEditorPanel
All Implemented Interfaces:
EditorPanelInterface, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class DateEditorPanel
implements EditorPanelInterface

The DateEditorPanel is used in the AdvancedFilterSelectorPanel. It provides a user interface to define filter values for filter items that are of type FilterItemInterface.ITEMTYPE_DATE, FilterItemInterface.ITEMTYPE_TIME, or FilterItemInterface.ITEMTYPE_DATETIME.

Since:
3.0
See Also:
AdvancedFilterSelectorPanel, Serialized Form

Field Summary
protected  com.sas.swing.visuals.dataselectors.filters.DateTimeValuePanel dateTimePanel
          DateTimeValuePanel component
protected  boolean includeCheckBox
          Indicates whether to include a checkBox in the panel for indicating a null date value
protected  javax.swing.JCheckBox specifyDateCheckBox
          Optional checkbox component for indicating a null date value
 
Constructor Summary
DateEditorPanel()
          Default constructor
DateEditorPanel(boolean includeCheckBox)
          deprecated
DateEditorPanel(boolean includeCheckBox, int type)
          Constructs an instance of DateEditorPanel.
 
Method Summary
 java.lang.Object getValue()
          Returns the property value contained in the editor.
protected  javax.swing.JPanel makePanel()
          Internal method for creating the panel.
 void setModel(EntityAttributeValueModelInterface selectorAdapter, java.lang.String propertyName)
          Set the model for the editor.
 

Field Detail

specifyDateCheckBox

protected javax.swing.JCheckBox specifyDateCheckBox
Optional checkbox component for indicating a null date value


dateTimePanel

protected com.sas.swing.visuals.dataselectors.filters.DateTimeValuePanel dateTimePanel
DateTimeValuePanel component


includeCheckBox

protected boolean includeCheckBox
Indicates whether to include a checkBox in the panel for indicating a null date value

Constructor Detail

DateEditorPanel

public DateEditorPanel()
Default constructor


DateEditorPanel

public DateEditorPanel(boolean includeCheckBox)
deprecated


DateEditorPanel

public DateEditorPanel(boolean includeCheckBox,
                       int type)
Constructs an instance of DateEditorPanel. If includeCheckBox is true, a checkBox will be displayed in the panel which allows the user to specify a null value for a Date by deselecting the checkBox. When used with an Entity,the checkbox should only be displayed if the AttributeDescriptor associated with this editor is not marked as required.

Parameters:
includeCheckBox - boolean indicating whether to include a checkBox as part of the panel
See Also:
com.sas.entities.AttributeDescriptorInterface, com.sas.swing.visuals.dataselectors.propertyeditor.EntityAttributeValueModelInterface
Method Detail

makePanel

protected javax.swing.JPanel makePanel()
Internal method for creating the panel.


setModel

public void setModel(EntityAttributeValueModelInterface selectorAdapter,
                     java.lang.String propertyName)
Description copied from interface: EditorPanelInterface
Set the model for the editor.

Specified by:
setModel in interface EditorPanelInterface
Parameters:
selectorAdapter - instance of com.sas.dataselectors.propertyeditor.EntityAttributeValueSelectorAdapter
propertyName - name of the property

getValue

public java.lang.Object getValue()
Description copied from interface: EditorPanelInterface
Returns the property value contained in the editor.

Specified by:
getValue in interface EditorPanelInterface
Returns:
property value



Copyright © 2009 SAS Institute Inc. All Rights Reserved.