|
SGT Home | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Dialog | +--javax.swing.JDialog | +--gov.noaa.pmel.sgt.swing.prop.GeoDateDialog
GeoDateDialog
is a calendar, plus optionally, time, chooser
that produces a date. It allows the invoker to set the
allowable range of dates by specifying an earliest and latest
allowable date. The user can select a date to within
5 minutes. If the hour and minutes aren't needed, a flag
allows the exclusion of the display of these fields.
Field Summary | |
static int |
CANCEL_RESPONSE
|
static int |
DATE
|
static int |
HOUR_OF_DAY
|
static int |
MINUTE
|
static int |
MONTH
|
static int |
OK_RESPONSE
|
static int |
YEAR
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
GeoDateDialog()
|
|
GeoDateDialog(GeoDate inDate)
|
|
GeoDateDialog(GeoDate inDate,
GeoDate earliestDateAllowedIn,
GeoDate latestDateAllowedIn,
int xlocIn,
int ylocIn)
|
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent event)
Invoked when an action occurs. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Add a PropertyChangeListener to the listener list. |
java.awt.Font |
getBoldFont()
|
java.awt.Color |
getCalBackground()
|
GeoDate |
getDate()
|
GeoDate |
getEarliestDateAllowed()
|
GeoDate |
getGeoDate()
|
boolean |
getHideTime()
|
GeoDate |
getInitialDate()
|
GeoDate |
getLatestDateAllowed()
|
java.awt.Color |
getPanelBackground()
|
java.awt.Font |
getRegularFont()
|
java.awt.Color |
getSelectedButnBackground()
|
java.lang.String |
getTitle()
Gets the title of the dialog. |
void |
itemStateChanged(java.awt.event.ItemEvent itemEvent)
Invoked when an item has been selected or deselected. |
static void |
main(java.lang.String[] args)
|
void |
propertyChange(java.beans.PropertyChangeEvent event)
This method gets called when a bound property is changed. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove a PropertyChangeListener from the listener list. |
void |
resetMonthYearPanel(GeoDate newDate)
|
void |
setBoldFont(java.awt.Font boldFontIn)
|
void |
setCalBackground(java.awt.Color color)
|
void |
setEarliestDateAllowed(GeoDate earliestDateAllowed)
|
void |
setGeoDate(GeoDate dt)
|
void |
setHideTime(boolean ans)
|
void |
setInitialDate(GeoDate initialDateIn)
|
void |
setLatestDateAllowed(GeoDate latestDateAllowed)
|
void |
setOutputDateFormatter(java.text.SimpleDateFormat sdf)
|
void |
setPanelBackground(java.awt.Color color)
|
void |
setRegularFont(java.awt.Font regularFontIn)
|
void |
setSelectedButnBackground(java.awt.Color color)
|
void |
setTitle(java.lang.String title)
Sets the title of the Dialog. |
int |
showDialog(GeoDate date,
int x,
int y)
|
Methods inherited from class javax.swing.JDialog |
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, remove, setContentPane, setDefaultCloseOperation, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setLocationRelativeTo, update |
Methods inherited from class java.awt.Dialog |
addNotify, dispose, hide, isModal, isResizable, setModal, setResizable, show |
Methods inherited from class java.awt.Window |
addWindowListener, applyResourceBundle, applyResourceBundle, getFocusOwner, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, isShowing, pack, postEvent, removeWindowListener, setCursor, toBack, toFront |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, removeNotify, setFont, validate |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static int OK_RESPONSE
public static int CANCEL_RESPONSE
public static final int DATE
public static final int YEAR
public static final int MONTH
public static final int MINUTE
public static final int HOUR_OF_DAY
Constructor Detail |
public GeoDateDialog(GeoDate inDate)
public GeoDateDialog(GeoDate inDate, GeoDate earliestDateAllowedIn, GeoDate latestDateAllowedIn, int xlocIn, int ylocIn)
public GeoDateDialog()
Method Detail |
public void setEarliestDateAllowed(GeoDate earliestDateAllowed)
public void setLatestDateAllowed(GeoDate latestDateAllowed)
public GeoDate getEarliestDateAllowed()
public GeoDate getLatestDateAllowed()
public void setOutputDateFormatter(java.text.SimpleDateFormat sdf)
public void setInitialDate(GeoDate initialDateIn)
public void setGeoDate(GeoDate dt)
public void setTitle(java.lang.String title)
java.awt.Dialog
setTitle
in class java.awt.Dialog
java.awt.Dialog
title
- the title displayed in the dialog's borderDialog.getTitle()
public java.lang.String getTitle()
java.awt.Dialog
getTitle
in class java.awt.Dialog
java.awt.Dialog
null
.Dialog.setTitle(java.lang.String)
public GeoDate getInitialDate()
public void setRegularFont(java.awt.Font regularFontIn)
public java.awt.Font getRegularFont()
public void setBoldFont(java.awt.Font boldFontIn)
public java.awt.Font getBoldFont()
public void setPanelBackground(java.awt.Color color)
public java.awt.Color getPanelBackground()
public void setCalBackground(java.awt.Color color)
public java.awt.Color getCalBackground()
public void setSelectedButnBackground(java.awt.Color color)
public java.awt.Color getSelectedButnBackground()
public void setHideTime(boolean ans)
public boolean getHideTime()
public int showDialog(GeoDate date, int x, int y)
public GeoDate getGeoDate()
public void resetMonthYearPanel(GeoDate newDate)
public void itemStateChanged(java.awt.event.ItemEvent itemEvent)
java.awt.event.ItemListener
itemStateChanged
in interface java.awt.event.ItemListener
public void actionPerformed(java.awt.event.ActionEvent event)
java.awt.event.ActionListener
actionPerformed
in interface java.awt.event.ActionListener
public GeoDate getDate()
public void propertyChange(java.beans.PropertyChangeEvent event)
java.beans.PropertyChangeListener
propertyChange
in interface java.beans.PropertyChangeListener
java.beans.PropertyChangeListener
evt
- A PropertyChangeEvent object describing the event source
and the property that has changed.public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
java.awt.Component
A PropertyChangeEvent will get fired in response to an explicit setFont, setBackground, or SetForeground on the current component. Note that if the current component is inheriting its foreground, background, or font from its container, then no event will be fired in response to a change in the inherited property. If listener is null, no exception is thrown and no action is performed.
addPropertyChangeListener
in class java.awt.Component
java.awt.Component
listener
- The PropertyChangeListener to be addedpublic void removePropertyChangeListener(java.beans.PropertyChangeListener l)
java.awt.Component
removePropertyChangeListener
in class java.awt.Component
java.awt.Component
listener
- The PropertyChangeListener to be removedpublic static void main(java.lang.String[] args)
|
SGT Home | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |