|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--cc.gammasoft.date.AbstractCalendarView | +--cc.gammasoft.date.MonthView
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 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 |
public static java.awt.Font fontDayNames
public static java.awt.Font fontDays
public static int OVAL
public static int RECT
public static final java.awt.Color HASFOCUSCOLOR
public static final java.awt.Color SELECTEDCOLOR
public javax.swing.JPanel panelMain
Constructor Detail |
public MonthView()
public MonthView(java.util.Calendar calendar)
public MonthView(java.lang.String calendarString)
public MonthView(java.text.SimpleDateFormat format)
public MonthView(java.text.SimpleDateFormat format, java.util.Calendar calendar)
Method Detail |
public void formatChanged()
public void updateView()
public void showFullDayNames()
public void showPrefix()
public void setStatusPanel(javax.swing.JPanel panel)
JPanel
- panelpublic MonthViewStatusPanel getStatusPanel()
public void setButtons(javax.swing.JPanel panel)
JPanel
- panelpublic MonthViewButtons getButtons()
public void setHighlightType(int type)
int
- type OVAL=0 RECT=1public int getHighlightType()
public void setFocusColor(java.awt.Color color)
focus
- colorpublic java.awt.Color getHasFocusColor()
public void setSelectedColor(java.awt.Color color)
Color
- focusColorpublic java.awt.Color getSelectedColor()
public void setAlpha(float alpha)
float
- alphapublic void setDayForeground(java.awt.Color color)
Color
- foreground colorpublic void setDayBackground(java.awt.Color color)
Color
- background colorpublic void setDayBorder(javax.swing.border.Border border)
Border
- borderpublic void setDayFont(java.awt.Font font)
Font
- fontpublic void setDayHeaderForeground(java.awt.Color color)
Color
- foreground colorpublic void setDayHeaderBackground(java.awt.Color color)
Color
- background colorpublic void setDayHeaderBorder(javax.swing.border.Border border)
Border
- borderpublic void setDayHeaderFont(java.awt.Font font)
Font
- font
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |