ElegantJ Data Entry Masks Java API Specification v1.1

com.elegantj.util.calendar
Class ExtCalendar

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended bycom.elegantj.awt.panel.AWTPanel
                  extended bycom.elegantj.util.calendar.ExtCalendar
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.io.Externalizable, java.awt.image.ImageObserver, java.awt.event.ItemListener, java.awt.MenuContainer, java.beans.PropertyChangeListener, java.io.Serializable

public class ExtCalendar
extends AWTPanel
implements java.awt.event.ItemListener, java.beans.PropertyChangeListener, java.awt.event.ActionListener, java.io.Externalizable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 int currentDate
          Current date for the calendar
 int currentMonth
          Current month for the calendar
 int currentYear
          Current year for the calendar
 
Fields inherited from class com.elegantj.awt.panel.AWTPanel
c1
 
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
ExtCalendar()
          Default constructor - Constructs the ExtCalendar
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Implementation of the ActionListener
 void addDateChangedListener(DateChangedListener l)
          Adds the date changed listener
 void addImpl(java.awt.Component component, java.lang.Object constraints, int index)
          Overriden the addImpl
protected  void dateLabelIsPressed()
          date label pressed invoked when the date label is pressed
 void fireDateChanged()
          Fires the date changed
 void fireDateChanged(int year, int month, int date)
          Fires the date changed
 int getDate()
          Returns the date of the calendar
 java.awt.Dimension getMinimumSize()
          Returns the minimum size
 int getMonth()
          Returns the date of the month
 MonthChoice getMonthChoice()
          Returns the month choice
 java.awt.Color getMonthDaysBackground()
          Returns the background of the month days
 java.awt.Color getMonthDaysForeground()
          Returns the foreground of the month days
 java.awt.Dimension getPreferredSize()
          Returns the preferred size
 java.awt.Color getSelectedMonthDayBackground()
          Returns the background of the selected month's day
 java.awt.Color getSelectedMonthDayForeground()
          Returns the foreground of the selected month's day
 java.awt.Color getWeekDaysBackground()
          Returns the background of the week days
 java.awt.Color getWeekDaysForeground()
          Returns the foreground of the week days
 int getYear()
          Returns the date of the year
 AWTSpinner getYearSpinner()
          Returns the year spinner
 void itemStateChanged(java.awt.event.ItemEvent evt)
          Implementation of the ItemListener
 void propertyChange(java.beans.PropertyChangeEvent e)
          Implementation of the PropertyChangeListener
 void readExternal(java.io.ObjectInput in)
          Implementation of the Externalizable
 void removeDateChangedListener(DateChangedListener l)
          Removes the date changed listener
 void setBackground(java.awt.Color background)
          Method which sets the background
 void setBorder(AWTTitleBorder border)
          Method which sets the border
 void setDate(int date)
          Sets the date for the calendar
 void setFont(java.awt.Font font)
          Method which sets the font
 void setLayout(java.awt.LayoutManager layoutManager)
          Method which sets the layout of the AWTPanel
 void setMonth(int month)
          Sets the month for the calendar The value of the month between the 0 to 11 i.e 0 = January to 11 = december
 void setMonthDaysBackground(java.awt.Color background)
          Sets the background for the month days
 void setMonthDaysForeground(java.awt.Color foreground)
          Sets the foreground for the month days
 void setSelectedMonthDayBackground(java.awt.Color background)
          Sets the background of the selected month's day
 void setSelectedMonthDayForeground(java.awt.Color foreground)
          Sets the foreground of the selected month's day
 void setWeekDaysBackground(java.awt.Color background)
          Sets the background for the week days
 void setWeekDaysForeground(java.awt.Color foreground)
          Sets the foreground for the week days
 void setYear(int year)
          Sets the year for the calendar
 void writeExternal(java.io.ObjectOutput out)
          Implementation of the Externalizable
 
Methods inherited from class com.elegantj.awt.panel.AWTPanel
add, addPropertyChangeListener, firePropertyChange, getBorder, getInsets, getLayout, getLicenseKey, getLocale, paint, remove, removePropertyChangeListener, setBounds, setCursor, setEnabled, setForeground, setInsets, setLicenseKey, setLocale, setParentSize, setVisible, showCard
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, addContainerListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getListeners, getMaximumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, 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, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, 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, isOpaque, 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, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBounds, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocation, setLocation, setName, setSize, setSize, 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

currentYear

public int currentYear
Current year for the calendar


currentMonth

public int currentMonth
Current month for the calendar


currentDate

public int currentDate
Current date for the calendar

Constructor Detail

ExtCalendar

public ExtCalendar()
Default constructor - Constructs the ExtCalendar

Method Detail

setLayout

public void setLayout(java.awt.LayoutManager layoutManager)
Description copied from class: AWTPanel
Method which sets the layout of the AWTPanel

Overrides:
setLayout in class AWTPanel
Parameters:
layoutManager - the layout of the AWTPanel

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Implementation of the ActionListener

Specified by:
actionPerformed in interface java.awt.event.ActionListener

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent evt)
Implementation of the ItemListener

Specified by:
itemStateChanged in interface java.awt.event.ItemListener

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent e)
Implementation of the PropertyChangeListener

Specified by:
propertyChange in interface java.beans.PropertyChangeListener

setDate

public void setDate(int date)
Sets the date for the calendar

Parameters:
date - The date for the calendar

getDate

public int getDate()
Returns the date of the calendar

Returns:
The date of the calendar

setMonth

public void setMonth(int month)
Sets the month for the calendar The value of the month between the 0 to 11 i.e 0 = January to 11 = december


getMonth

public int getMonth()
Returns the date of the month

Returns:
The date of the month

setYear

public void setYear(int year)
Sets the year for the calendar


getYear

public int getYear()
Returns the date of the year

Returns:
The date of the year

setFont

public void setFont(java.awt.Font font)
Method which sets the font

Overrides:
setFont in class AWTPanel
Parameters:
font - The font for the AWTPanel

setBorder

public void setBorder(AWTTitleBorder border)
Method which sets the border

Overrides:
setBorder in class AWTPanel
Parameters:
border - the border for the AWTPanel

setBackground

public void setBackground(java.awt.Color background)
Method which sets the background

Overrides:
setBackground in class AWTPanel
Parameters:
background - The background

setWeekDaysBackground

public void setWeekDaysBackground(java.awt.Color background)
Sets the background for the week days

Parameters:
background - The background for the week days

getWeekDaysBackground

public java.awt.Color getWeekDaysBackground()
Returns the background of the week days

Returns:
The background of the week days

setWeekDaysForeground

public void setWeekDaysForeground(java.awt.Color foreground)
Sets the foreground for the week days

Parameters:
foreground - The foreground for the week days

getWeekDaysForeground

public java.awt.Color getWeekDaysForeground()
Returns the foreground of the week days

Returns:
The foreground of the week days

setMonthDaysBackground

public void setMonthDaysBackground(java.awt.Color background)
Sets the background for the month days

Parameters:
background - The background for the month days

getMonthDaysBackground

public java.awt.Color getMonthDaysBackground()
Returns the background of the month days

Returns:
The background of the month days

setMonthDaysForeground

public void setMonthDaysForeground(java.awt.Color foreground)
Sets the foreground for the month days

Parameters:
foreground - The foreground for the month days

getMonthDaysForeground

public java.awt.Color getMonthDaysForeground()
Returns the foreground of the month days

Returns:
The foreground of the month days

setSelectedMonthDayBackground

public void setSelectedMonthDayBackground(java.awt.Color background)
Sets the background of the selected month's day

Parameters:
background - The selected month's day

getSelectedMonthDayBackground

public java.awt.Color getSelectedMonthDayBackground()
Returns the background of the selected month's day

Returns:
The background of the selected month's day

setSelectedMonthDayForeground

public void setSelectedMonthDayForeground(java.awt.Color foreground)
Sets the foreground of the selected month's day

Parameters:
foreground - The selected month's day

getSelectedMonthDayForeground

public java.awt.Color getSelectedMonthDayForeground()
Returns the foreground of the selected month's day

Returns:
The foreground of the selected month's day

dateLabelIsPressed

protected void dateLabelIsPressed()
date label pressed invoked when the date label is pressed


fireDateChanged

public void fireDateChanged()
Fires the date changed


fireDateChanged

public void fireDateChanged(int year,
                            int month,
                            int date)
Fires the date changed

Parameters:
year - The year
month - The month
date - The date

addDateChangedListener

public void addDateChangedListener(DateChangedListener l)
Adds the date changed listener

Parameters:
l - The DateChangedListener

removeDateChangedListener

public void removeDateChangedListener(DateChangedListener l)
Removes the date changed listener

Parameters:
l - The DateChangedListener

getMonthChoice

public MonthChoice getMonthChoice()
Returns the month choice


getYearSpinner

public AWTSpinner getYearSpinner()
Returns the year spinner


getPreferredSize

public java.awt.Dimension getPreferredSize()
Returns the preferred size

Overrides:
getPreferredSize in class AWTPanel
Returns:
The preferred size

getMinimumSize

public java.awt.Dimension getMinimumSize()
Returns the minimum size

Overrides:
getMinimumSize in class AWTPanel
Returns:
The minimum size

addImpl

public void addImpl(java.awt.Component component,
                    java.lang.Object constraints,
                    int index)
Overriden the addImpl


writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException,
                          java.awt.IllegalComponentStateException
Implementation of the Externalizable

Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class AWTPanel
Throws:
java.io.IOException
java.awt.IllegalComponentStateException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Implementation of the Externalizable

Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class AWTPanel
Throws:
java.io.IOException
java.lang.ClassNotFoundException

ElegantJ Data Entry Masks Java API Specification v1.1

Submit a bug or feature

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjbeans.com
All Rights Reserved.