Package adams.gui.goe
Class BaseDateTimeMsecEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- adams.gui.goe.AbstractPropertyEditorSupport
-
- adams.gui.goe.AbstractBaseDateTypeEditor<BaseDateTimeMsec,DateTimePanel>
-
- adams.gui.goe.BaseDateTimeMsecEditor
-
- All Implemented Interfaces:
HelpProvider
,CustomStringRepresentationHandler
,InlineEditorSupport
,MultiSelectionEditor
,PropertyEditor
public class BaseDateTimeMsecEditor extends AbstractBaseDateTypeEditor<BaseDateTimeMsec,DateTimePanel>
A PropertyEditor for BaseDateTimeMsec objects.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
BaseDateTimeMsec
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class adams.gui.goe.AbstractBaseDateTypeEditor
AbstractBaseDateTypeEditor.Placeholder
-
-
Field Summary
-
Fields inherited from class adams.gui.goe.AbstractBaseDateTypeEditor
m_ButtonCustomHelp, m_ButtonNow, m_ButtonOK, m_ButtonTemplates, m_Calendar, m_ComboBoxPlaceholders, m_Date, m_TextCustom
-
Fields inherited from class adams.gui.goe.AbstractPropertyEditorSupport
APPROVE_OPTION, CANCEL_OPTION, EMPTY, m_ChosenOption, m_CustomEditor, m_WindowAdapter, NULL
-
-
Constructor Summary
Constructors Constructor Description BaseDateTimeMsecEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getNowButtonText()
Returns the text to use for the "now" button.protected String
getPlaceholder(AbstractBaseDateTypeEditor.Placeholder ph)
Returns the string equivalent of the placeholder.protected BaseDateTimeMsec
newDateType(String s)
Returns a new instance of the date type.protected BaseDateTimeMsec
newDateType(Date d)
Returns a new instance of the date type.protected DateTimePanel
newPanel()
Instantiates a new panel for picking the date type.-
Methods inherited from class adams.gui.goe.AbstractBaseDateTypeEditor
createCustomEditor, fromCustomStringRepresentation, getInlineValue, getJavaInitializationString, getSelectedObjects, initForDisplay, initialize, isInlineEditingAvailable, isInlineValueValid, newDateType, paintValue, setInlineValue, showHelp, toCustomStringRepresentation, updateButtons
-
Methods inherited from class adams.gui.goe.AbstractPropertyEditorSupport
addWindowAdapter, cleanUp, closeDialog, createPopup, createTipText, createWindowAdapter, getChosenOption, getCustomEditor, getHelpDescription, getHelpIcon, getHelpTitle, getHelpURL, getParentDialog, getParentFrame, isPaintable, resetChosenOption, setValue, supportsCustomEditor
-
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getSource, getTags, getValue, removePropertyChangeListener, setAsText, setSource
-
-
-
-
Method Detail
-
newDateType
protected BaseDateTimeMsec newDateType(String s)
Returns a new instance of the date type.- Specified by:
newDateType
in classAbstractBaseDateTypeEditor<BaseDateTimeMsec,DateTimePanel>
- Parameters:
s
- the string to instantiate with, can be null- Returns:
- the instance
-
newDateType
protected BaseDateTimeMsec newDateType(Date d)
Returns a new instance of the date type.- Specified by:
newDateType
in classAbstractBaseDateTypeEditor<BaseDateTimeMsec,DateTimePanel>
- Parameters:
d
- the date to initialize with- Returns:
- the instance
-
newPanel
protected DateTimePanel newPanel()
Instantiates a new panel for picking the date type.- Specified by:
newPanel
in classAbstractBaseDateTypeEditor<BaseDateTimeMsec,DateTimePanel>
- Returns:
- the panel
-
getNowButtonText
protected String getNowButtonText()
Returns the text to use for the "now" button.- Specified by:
getNowButtonText
in classAbstractBaseDateTypeEditor<BaseDateTimeMsec,DateTimePanel>
- Returns:
- the button text
-
getPlaceholder
protected String getPlaceholder(AbstractBaseDateTypeEditor.Placeholder ph)
Returns the string equivalent of the placeholder.- Specified by:
getPlaceholder
in classAbstractBaseDateTypeEditor<BaseDateTimeMsec,DateTimePanel>
- Parameters:
ph
- the placeholder to get the string representation for- Returns:
- the string representation
-
-