|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
org.formaria.awt.date.DateChooser
public class DateChooser
A panel containing a representation of a month so that the user can select a date visually. Navigation buttons can also be added to allow the previous or following months to be shown.
Copyright (c) Formaria Ltd., 2008, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Formaria.
$Revision: 1.4 $
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.Panel |
|---|
java.awt.Panel.AccessibleAWTPanel |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected org.formaria.awt.date.DateChooserPanel |
datePanel
|
protected java.awt.Button |
nextBtn
|
protected java.awt.Button |
prevBtn
|
protected StyleManager |
styleManager
|
protected java.awt.Label |
title
|
protected java.awt.Panel |
titlePanel
|
| 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 | |
|---|---|
DateChooser()
Sets up a new panel to display the current date. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Reacts to the previous and next buttons by modifying the display. |
void |
addNavigation(boolean bShow)
Adds the navigation buttons to the panel. |
java.util.Date |
getDate()
Gets the current date. |
java.lang.String |
getStyle3D()
Get the style asociated with the 3D elements |
java.lang.String |
getStyleHighlighted()
Get the style asociated with the highlighted element |
java.lang.String |
getStyleSelected()
Get the style asociated with the selected elements |
java.lang.String |
getStyleTitle()
Get the style asociated with the title |
java.lang.String |
getStyleWeekend()
Get the style asociated with the weekend element |
boolean |
isNavigable()
Check if the months are navigable by clicking next and previous buttons |
void |
setDate(java.util.Date newDate)
Sets the current date. |
void |
setNav(boolean nav)
Add navigation to the panel |
void |
setNavigable(boolean bShow)
Set the months as navigable by clicking next and previous buttons |
void |
setStyle3D(java.lang.String newStyle)
Get the style asociated with three dimensional objects/elements |
void |
setStyleHighlighted(java.lang.String newStyle)
Set the style asociated with highlighted element |
void |
setStyleSelected(java.lang.String newStyle)
Get the style asociated with the selected elements |
void |
setStyleTitle(java.lang.String newStyle)
set the style asociated with title element |
void |
setStyleWeekend(java.lang.String newStyle)
set the style asociated with weekend element |
| Methods inherited from class java.awt.Panel |
|---|
addNotify, getAccessibleContext |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected StyleManager styleManager
protected java.awt.Label title
protected java.awt.Panel titlePanel
protected org.formaria.awt.date.DateChooserPanel datePanel
protected java.awt.Button prevBtn
protected java.awt.Button nextBtn
| Constructor Detail |
|---|
public DateChooser()
| Method Detail |
|---|
public void addNavigation(boolean bShow)
public void setNav(boolean nav)
nav - true for navigation controlspublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenere - the action eventpublic java.util.Date getDate()
public void setDate(java.util.Date newDate)
setDate in interface DateListenernewDate - the new datepublic java.lang.String getStyle3D()
public void setStyle3D(java.lang.String newStyle)
newStyle - the style namepublic java.lang.String getStyleTitle()
public void setStyleTitle(java.lang.String newStyle)
newStyle - the style namepublic java.lang.String getStyleSelected()
public void setStyleSelected(java.lang.String newStyle)
newStyle - the style namepublic java.lang.String getStyleWeekend()
public void setStyleWeekend(java.lang.String newStyle)
newStyle - the style namepublic java.lang.String getStyleHighlighted()
public void setStyleHighlighted(java.lang.String newStyle)
newStyle - the style namepublic boolean isNavigable()
public void setNavigable(boolean bShow)
bShow - true to show the navigation buttons, false to hide them
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||