composant_saisie.wCalendar
Class JPCalendar

Object
  extended by Component
      extended by Container
          extended by JComponent
              extended by JPanel
                  extended by composant_saisie.wCalendar.JPCalendar
All Implemented Interfaces:
LinkTableDate, java.awt.event.ActionListener, java.awt.event.KeyListener, java.awt.image.ImageObserver, MenuContainer, java.beans.PropertyChangeListener, Serializable, java.util.EventListener, javax.accessibility.Accessible, VueIMoveListener

public class JPCalendar
extends JPanel
implements java.awt.event.ActionListener, VueIMoveListener, java.awt.event.KeyListener, LinkTableDate, java.beans.PropertyChangeListener


A_doc
Licence.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class JPanel
JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
static int AT_SDATE
           
static int AT_SDAY
           
static int AT_SMONTH
           
static int AT_SPOINTAGE
           
(package private)  JButtonArrow btNextMonth
           
(package private)  JButtonArrow btNextYear
           
(package private)  JButtonArrow btPreviousMonth
           
(package private)  JButtonArrow btPreviousYear
           
 JTableCalendar dateTable
           
static int DAY
           
 JTextLabel head
           
(package private)  JPanel headPanel
           
(package private)  ListDate listDate
           
static int MONTH
           
(package private) static long serialVersionUID
           
 
Fields inherited from class 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 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
JPCalendar()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void add(java.util.Date date)
           
 void clearSelections()
           
 void dateEnter()
           
 void dateEscape()
           
 void dateSelected(Day day)
           
 void dbFin()
           
 void debut()
           
 void decrValue()
           
 void decrValueWeek()
           
 void dispose()
           
protected  void finalize()
           
 java.util.ArrayList<Day> getCalendarDays()
           
 java.util.ArrayList<Object> getCalendarValues()
           
 java.util.ArrayList<Object> getCalendarValuesWeeks()
           
 Day getDateValue()
           
 java.util.ArrayList<Day> getDaysInMonth()
           
 int getMonth()
           
 String getSDate()
           
 String getSelectedDate()
           
 java.util.Set<java.util.Date> getSelectedDates()
           
 int getSelectedWeek()
           
 String getSMonthSYear()
           
 String getSQuan()
           
 String getSReverseDate()
           
 long getTime()
           
 Object getValueForDate(Day day)
           
 Object getValueForWeek()
           
 java.util.ArrayList<Day> getWeekInMonth()
           
 void incrValue()
           
 void incrValueWeek()
           
 boolean isMovable()
           
 void keyPressed(java.awt.event.KeyEvent e)
           
 void keyReleased(java.awt.event.KeyEvent e)
           
 void keyTyped(java.awt.event.KeyEvent e)
           
 void pagePrecedente()
           
 void pageSuivante()
           
 void precedent(int nb)
           
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
 void resetValueForWeek()
           
 void setDate(java.util.Date date)
           
 void setDateValue(Day day)
           
 void setSDate(String sdate)
           
 void setType(int type, int attribut)
           
 void setType(int type, int attribut, LinkTableDate lt)
           
 void suivant(int nb)
           
 
Methods inherited from class JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, 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 Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

dateTable

public JTableCalendar dateTable

head

public JTextLabel head

headPanel

JPanel headPanel

btPreviousMonth

JButtonArrow btPreviousMonth

btNextMonth

JButtonArrow btNextMonth

btPreviousYear

JButtonArrow btPreviousYear

btNextYear

JButtonArrow btNextYear

listDate

ListDate listDate

DAY

public static final int DAY
See Also:
Constant Field Values

MONTH

public static final int MONTH
See Also:
Constant Field Values

AT_SDAY

public static final int AT_SDAY
See Also:
Constant Field Values

AT_SMONTH

public static final int AT_SMONTH
See Also:
Constant Field Values

AT_SDATE

public static final int AT_SDATE
See Also:
Constant Field Values

AT_SPOINTAGE

public static final int AT_SPOINTAGE
See Also:
Constant Field Values
Constructor Detail

JPCalendar

public JPCalendar()
Method Detail

setType

public void setType(int type,
                    int attribut)

setType

public void setType(int type,
                    int attribut,
                    LinkTableDate lt)

dateSelected

public void dateSelected(Day day)
Specified by:
dateSelected in interface LinkTableDate

dateEnter

public void dateEnter()
Specified by:
dateEnter in interface LinkTableDate

dateEscape

public void dateEscape()
Specified by:
dateEscape in interface LinkTableDate

resetValueForWeek

public void resetValueForWeek()
Specified by:
resetValueForWeek in interface LinkTableDate

getValueForWeek

public Object getValueForWeek()
Specified by:
getValueForWeek in interface LinkTableDate

getValueForDate

public Object getValueForDate(Day day)
Specified by:
getValueForDate in interface LinkTableDate

getCalendarValuesWeeks

public java.util.ArrayList<Object> getCalendarValuesWeeks()

getCalendarValues

public java.util.ArrayList<Object> getCalendarValues()

getCalendarDays

public java.util.ArrayList<Day> getCalendarDays()

getWeekInMonth

public java.util.ArrayList<Day> getWeekInMonth()

getDaysInMonth

public java.util.ArrayList<Day> getDaysInMonth()

add

public void add(java.util.Date date)

getSelectedDates

public java.util.Set<java.util.Date> getSelectedDates()

clearSelections

public void clearSelections()

getSelectedDate

public String getSelectedDate()

getSelectedWeek

public int getSelectedWeek()

setDate

public void setDate(java.util.Date date)

setSDate

public void setSDate(String sdate)

getSDate

public String getSDate()

getSReverseDate

public String getSReverseDate()

getSQuan

public String getSQuan()

getTime

public long getTime()

getSMonthSYear

public String getSMonthSYear()

getDateValue

public Day getDateValue()

getMonth

public int getMonth()

setDateValue

public void setDateValue(Day day)

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Specified by:
keyTyped in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Specified by:
keyReleased in interface java.awt.event.KeyListener

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Specified by:
keyPressed in interface java.awt.event.KeyListener

incrValue

public void incrValue()

decrValue

public void decrValue()

incrValueWeek

public void incrValueWeek()

decrValueWeek

public void decrValueWeek()

isMovable

public boolean isMovable()
Specified by:
isMovable in interface VueIMoveListener

debut

public void debut()
Specified by:
debut in interface VueIMoveListener

dbFin

public void dbFin()
Specified by:
dbFin in interface VueIMoveListener

pageSuivante

public void pageSuivante()
Specified by:
pageSuivante in interface VueIMoveListener

pagePrecedente

public void pagePrecedente()
Specified by:
pagePrecedente in interface VueIMoveListener

precedent

public void precedent(int nb)
Specified by:
precedent in interface VueIMoveListener

suivant

public void suivant(int nb)
Specified by:
suivant in interface VueIMoveListener

dispose

public void dispose()

finalize

protected void finalize()
Overrides:
finalize in class Object