|
|||||||||
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 | +--javax.swing.JPanel | +--org.gui.JCalendarCombo
This is the main class of the JCalendarCombo Library.
Field Summary | |
static int |
DAY
|
static int |
MONDAY
|
static int |
MONTH
|
static int |
SUNDAY
|
static int |
YEAR_BIG
|
static int |
YEAR_SMALL
|
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 | |
JCalendarCombo()
This constructor variation of JCalendarCombo initializes the default implementation of the Calendar widget and set start year as 1901 and end year as 2099. |
|
JCalendarCombo(boolean isApplet)
This constructor variation of JCalendarCombo initializes the user implementation of the Calendar widget and set start year as 1901 and end year as 2099. |
|
JCalendarCombo(int firstDay,
boolean showCurrentDate,
boolean isApplet)
This constructor variation of JCalendarCombo initializes the user implementation of the Calendar widget and set start year as 1901 and end year as 2099. |
|
JCalendarCombo(int firstDay,
boolean showCurrentDate,
int startYear,
int endYear,
boolean isApplet)
This constructor variation of JCalendarCombo initializes the user implementation of the Calendar widget and set start year as 1901 and end year as 2099. |
Method Summary | |
java.util.Calendar |
getDate()
This method may be used to get the selected date. |
boolean |
getEnabled()
This method may be used to get whether JCalendarCombo is enabled or disabled. |
java.lang.String |
getSelectedDate()
This method may be used to get the selected date. |
java.lang.String |
getSelectedDay()
This method may be used to get the selected day. |
java.lang.String |
getSelectedMonth()
This method may be used to get the selected month. |
java.lang.String |
getSelectedYear()
This method may be used to get the selected year. |
void |
setDate(java.util.Calendar temp)
This method may be used to set the selected date in the current widget to a specified date. |
void |
setDateFormat(int tempVar1,
int tempVar2,
int tempVar3,
char separatorChar)
This method may be used to set the date format. |
void |
setEnabled(boolean isEnabled)
This method may be used to enable or disable JCalendarCombo. |
void |
setSelectedDate(int year,
int month,
int day)
This method may be used to set the selected date in the current widget to a specified date. |
void |
update(java.util.Observable observable,
java.lang.Object object)
|
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int DAY
public static final int MONDAY
public static final int MONTH
public static final int SUNDAY
public static final int YEAR_BIG
public static final int YEAR_SMALL
Constructor Detail |
public JCalendarCombo()
public JCalendarCombo(boolean isApplet)
isApplet
- Set it true if you are going to use the calendar on applet.public JCalendarCombo(int firstDay, boolean showCurrentDate, boolean isApplet)
firstDay
- set it to JCalendarCombo.SUNDAY or JCalendarCombo.MONDAY.showCurrentDate
- set it to true to show the current date.isApplet
- set it true if you are going to use the calendar on applet.public JCalendarCombo(int firstDay, boolean showCurrentDate, int startYear, int endYear, boolean isApplet)
firstDay
- set it to JCalendarCombo.SUNDAY or JCalendarCombo.MONDAY.showCurrentDate
- set it to true to show the current date.startYear
- set the start year valueendYear
- set the end year value.isApplet
- set it true if you are going to use the calendar on applet.Method Detail |
public final java.util.Calendar getDate()
public final boolean getEnabled()
public final java.lang.String getSelectedDate()
public final java.lang.String getSelectedDay()
public final java.lang.String getSelectedMonth()
public final java.lang.String getSelectedYear()
public final void setDate(java.util.Calendar temp)
temp
- set the selected date based on Calendar Object.public final void setDateFormat(int tempVar1, int tempVar2, int tempVar3, char separatorChar)
tempVar1
- set it to either JCalendarCombo.DAY, JCalendarCombo.MONTH, JCalendarCombo.YEAR_BIG or JCalendarCombo.SMALL.tempVar2
- set it to either JCalendarCombo.DAY, JCalendarCombo.MONTH, JCalendarCombo.YEAR_BIG or JCalendarCombo.SMALL.tempVar3
- set it to either JCalendarCombo.DAY, JCalendarCombo.MONTH, JCalendarCombo.YEAR_BIG or JCalendarCombo.SMALL.separatorChar
- set the separator character in between the date vales.public final void setEnabled(boolean isEnabled)
setEnabled
in class javax.swing.JComponent
isEnabled
- true to enable or false to disablepublic final void setSelectedDate(int year, int month, int day)
year
- set the year of the selected date.month
- set the month of the selected date.day
- set the day of the selected date.public void update(java.util.Observable observable, java.lang.Object object)
update
in interface java.util.Observer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |