|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JComboBox
com.goatherd.swing.date.JDateComboBox
public class JDateComboBox
JDateComboBox is an JComboBox that defines a
popup calendar and SimpleDateFormated Editor.
It is based upon com.pallas.swing.date.DateComboBox but
defines an own ComponentUI to use the current
LookAndFeel. JDateComboBox is completely localised too.
This class does need Java 1.5 or later and does not support custom icons itself.
JComboBox,
,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComboBox |
|---|
JComboBox.KeySelectionManager |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, 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 | |
|---|---|
JDateComboBox()
New combo box with current date and default date format. |
|
JDateComboBox(Date date)
Sets initial date of combo box. |
|
JDateComboBox(Date date,
String pattern)
Sets initial date and date format of combo box. |
|
JDateComboBox(String pattern)
Set initial date format of combo box. |
|
| Method Summary | |
|---|---|
void |
addFormat(String format)
Add editor format pattern |
Date |
getDate()
Get date item (has only one) |
static void |
main(String[] args)
Sample GUI |
void |
setDate(Date date)
Set date item |
void |
setDateFormat(String pattern)
Set pattern that formats editor text |
void |
setName(String s)
|
void |
setSelectedItem(Object item)
Item should be of CBDate type |
void |
updateUI()
L&F is now matter of JDateComboBoxUI class and always forces current LookAndFeel |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JDateComboBox()
public JDateComboBox(Date date)
public JDateComboBox(Date date,
String pattern)
public JDateComboBox(String pattern)
pattern - | Method Detail |
|---|
public void addFormat(String format)
format - public Date getDate()
public void setDate(Date date)
date - public void setDateFormat(String pattern)
pattern - public void setName(String s)
setName in class Componentpublic void setSelectedItem(Object item)
setSelectedItem in class JComboBoxpublic void updateUI()
updateUI in class JComboBoxpublic static void main(String[] args)
args -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||