cc.gammasoft.date
Class MonthView

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--cc.gammasoft.date.AbstractCalendarView
                                |
                                +--cc.gammasoft.date.MonthView

public class MonthView
extends AbstractCalendarView

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Field Summary
static java.awt.Font fontDayNames
           
static java.awt.Font fontDays
           
static java.awt.Color HASFOCUSCOLOR
           
static int OVAL
           
 javax.swing.JPanel panelMain
           
static int RECT
           
static java.awt.Color SELECTEDCOLOR
           
 
Fields inherited from class cc.gammasoft.date.AbstractCalendarView
calendarTrackingEnabled, calendarTrackingVisible, controller, date, listenerList, selectedDateEnabled, selectedDates, trackingColor
 
Fields inherited from class javax.swing.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 java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
MonthView()
          creates new instance
MonthView(java.util.Calendar calendar)
          creates new instance
MonthView(java.text.SimpleDateFormat format)
          creates new instance
MonthView(java.text.SimpleDateFormat format, java.util.Calendar calendar)
          creates new instance
MonthView(java.lang.String calendarString)
          creates new instance
 
Method Summary
 void formatChanged()
          This method implements AbstractCalendarView formatChanged Method.
 MonthViewButtons getButtons()
          This method returns MonthViewButtons
 java.awt.Color getHasFocusColor()
          This method returns HasFocus color
 int getHighlightType()
          This method returns highlightType OVAL,RECT
 java.awt.Color getSelectedColor()
          This method returns selected color
 MonthViewStatusPanel getStatusPanel()
          This method returns MonthViewStatusPanel
 void setAlpha(float alpha)
          This method sets alpha
 void setButtons(javax.swing.JPanel panel)
          This method sets MonthView Buttons(next month, next year etc..)
 void setDayBackground(java.awt.Color color)
          set day label background
 void setDayBorder(javax.swing.border.Border border)
          set day label Border
 void setDayFont(java.awt.Font font)
          set day label Font
 void setDayForeground(java.awt.Color color)
          set day label foreground
 void setDayHeaderBackground(java.awt.Color color)
          set day header background
 void setDayHeaderBorder(javax.swing.border.Border border)
          set day header Border
 void setDayHeaderFont(java.awt.Font font)
          set day Header Font
 void setDayHeaderForeground(java.awt.Color color)
          set day header foreground
 void setFocusColor(java.awt.Color color)
          This method sets focus color
 void setHighlightType(int type)
          This method sets highlight type
 void setSelectedColor(java.awt.Color color)
          This method sets selected color
 void setStatusPanel(javax.swing.JPanel panel)
          This method sets status panel Default is MonthviewStatusPanel which shows todays date.
 void showFullDayNames()
          This method shows full day names
 void showPrefix()
          This method shows day name prefix
 void updateView()
          This method implements AbstractCalendarView updateView Method.
 
Methods inherited from class cc.gammasoft.date.AbstractCalendarView
addViewListener, calendarControllerChanged, getController, getDate, getDayNames, getDayPrefix, getMonthNames, getMonthPrefix, getSelectedDates, getSQLDate, getSQLTime, getSQLTimestamp, getTrackingColor, init, isCalendarTrackingVisible, isSelectedDateEnabled, isTrackingEnabled, notifyListenersViewEventPerformed, panelResized, removeViewListener, setCalendarTrackingEnabled, setCalendarTrackingVisible, setController, setDate, setDate, setDayNames, setDayPrefix, setMonthNames, setMonthPrefix, setSelectedDateEnabled, setSQLDate, setTrackingColor
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUIClassID, paramString, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInsets, getInsets, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, processComponentKeyEvent, processFocusEvent, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hide, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fontDayNames

public static java.awt.Font fontDayNames

fontDays

public static java.awt.Font fontDays

OVAL

public static int OVAL

RECT

public static int RECT

HASFOCUSCOLOR

public static final java.awt.Color HASFOCUSCOLOR

SELECTEDCOLOR

public static final java.awt.Color SELECTEDCOLOR

panelMain

public javax.swing.JPanel panelMain
Constructor Detail

MonthView

public MonthView()
creates new instance

MonthView

public MonthView(java.util.Calendar calendar)
creates new instance

MonthView

public MonthView(java.lang.String calendarString)
creates new instance

MonthView

public MonthView(java.text.SimpleDateFormat format)
creates new instance

MonthView

public MonthView(java.text.SimpleDateFormat format,
                 java.util.Calendar calendar)
creates new instance
Method Detail

formatChanged

public void formatChanged()
This method implements AbstractCalendarView formatChanged Method.
Overrides:
formatChanged in class AbstractCalendarView

updateView

public void updateView()
This method implements AbstractCalendarView updateView Method.
Overrides:
updateView in class AbstractCalendarView

showFullDayNames

public void showFullDayNames()
This method shows full day names

showPrefix

public void showPrefix()
This method shows day name prefix

setStatusPanel

public void setStatusPanel(javax.swing.JPanel panel)
This method sets status panel Default is MonthviewStatusPanel which shows todays date.
Parameters:
JPanel - panel

getStatusPanel

public MonthViewStatusPanel getStatusPanel()
This method returns MonthViewStatusPanel
Returns:
MonthViewStatusPanel.

setButtons

public void setButtons(javax.swing.JPanel panel)
This method sets MonthView Buttons(next month, next year etc..)
Parameters:
JPanel - panel

getButtons

public MonthViewButtons getButtons()
This method returns MonthViewButtons
Returns:
MonthViewButtons

setHighlightType

public void setHighlightType(int type)
This method sets highlight type
Parameters:
int - type OVAL=0 RECT=1

getHighlightType

public int getHighlightType()
This method returns highlightType OVAL,RECT
Returns:
int highlightType

setFocusColor

public void setFocusColor(java.awt.Color color)
This method sets focus color
Parameters:
focus - color

getHasFocusColor

public java.awt.Color getHasFocusColor()
This method returns HasFocus color
Returns:
Color hasFocusColor

setSelectedColor

public void setSelectedColor(java.awt.Color color)
This method sets selected color
Parameters:
Color - focusColor

getSelectedColor

public java.awt.Color getSelectedColor()
This method returns selected color
Returns:
Color selectedColor

setAlpha

public void setAlpha(float alpha)
This method sets alpha
Parameters:
float - alpha

setDayForeground

public void setDayForeground(java.awt.Color color)
set day label foreground
Parameters:
Color - foreground color

setDayBackground

public void setDayBackground(java.awt.Color color)
set day label background
Parameters:
Color - background color

setDayBorder

public void setDayBorder(javax.swing.border.Border border)
set day label Border
Parameters:
Border - border

setDayFont

public void setDayFont(java.awt.Font font)
set day label Font
Parameters:
Font - font

setDayHeaderForeground

public void setDayHeaderForeground(java.awt.Color color)
set day header foreground
Parameters:
Color - foreground color

setDayHeaderBackground

public void setDayHeaderBackground(java.awt.Color color)
set day header background
Parameters:
Color - background color

setDayHeaderBorder

public void setDayHeaderBorder(javax.swing.border.Border border)
set day header Border
Parameters:
Border - border

setDayHeaderFont

public void setDayHeaderFont(java.awt.Font font)
set day Header Font
Parameters:
Font - font