|
Diamond Control Suite 3.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent diamondedge.swing.DsDateView
public class DsDateView
DsDateView allows the user to select a date visually using a calendar style display. The size of the component is based on the Font used and it should be allowed to size automatically to its preferred size. A panel at the bottom is optionally displayable to edit the time.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
DsDateView()
|
|
DsDateView(Calendar displayDate,
Locale l)
|
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
|
void |
addPropertyChangeListener(PropertyChangeListener l)
Adds the specified listener to receive change events |
Calendar |
getCalendar()
Returns a Calendar object containing the currently selected date. |
Date |
getDate()
Returns a Date object containing the currently selected date. |
boolean |
getDateOnly()
Returns whether the time portion should be always set to 0. |
void |
keyPressed(KeyEvent e)
|
void |
keyReleased(KeyEvent e)
|
void |
keyTyped(KeyEvent e)
|
void |
propertyChange(PropertyChangeEvent e)
|
void |
removePropertyChangeListener(PropertyChangeListener l)
Removes the specified listener so it no longer receives change events. |
void |
setCalendar(Calendar displayDate)
Sets the date to be displayed. |
void |
setDate(Date date)
Sets the date to be displayed. |
void |
setDateOnly(boolean dateOnly)
Sets whether the time portion should be always set to 0. |
void |
setFont(Font f)
|
void |
setLocale(Locale l)
Sets the locale of this component. |
void |
stateChanged(ChangeEvent e)
|
void |
updateUI()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DsDateView()
public DsDateView(Calendar displayDate, Locale l)
Method Detail |
---|
public void updateUI()
updateUI
in class JComponent
public boolean getDateOnly()
public void setDateOnly(boolean dateOnly)
public Calendar getCalendar()
public void setCalendar(Calendar displayDate)
public Date getDate()
public void setDate(Date date)
public void setLocale(Locale l)
setLocale
in class Component
public void setFont(Font f)
setFont
in class JComponent
public void addPropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener
in class Container
l
- the action listenerpublic void removePropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener
in class Component
l
- the change listenerpublic void propertyChange(PropertyChangeEvent e)
propertyChange
in interface PropertyChangeListener
public void stateChanged(ChangeEvent e)
stateChanged
in interface ChangeListener
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void keyPressed(KeyEvent e)
keyPressed
in interface KeyListener
public void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
public void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
|
Diamond Control Suite 3.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |