|
||||||||||
| 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
|
+--arlut.csd.JCalendar.JMonthYearPanel
This class displays the year/month gui controls at the top of
the composite JpanelCalendar widget. If the calendar widget is editable, this
panel will allow the user to change the month and year year
corresponding with the date shown in the calendar widget.
| Field Summary | |
private javax.swing.JButton |
_nextdate
|
private javax.swing.JButton |
_prevdate
|
private arlut.csd.JCalendar.JpanelCalendar |
container
|
private int |
currentMonth
|
private int |
currentYear
|
(package private) static boolean |
debug
|
private boolean |
editable
|
private javax.swing.JComboBox |
month
|
private javax.swing.JLabel |
mYLabel
|
private java.awt.Font |
titleFont
|
private arlut.csd.JCalendar.JYearChooser |
year
|
| Fields inherited from class javax.swing.JPanel |
|
| 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.Container |
|
| 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 | |
JMonthYearPanel(arlut.csd.JCalendar.JpanelCalendar parent)
|
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
int |
getMonth()
Returns the month currently selected in the JMonthYearPanel. |
java.lang.String |
getMonthString()
This method returns a human readable string containing the month shown in the JMonthYearPanel. |
int |
getYear()
Returns the year currently selected in the JMonthYearPanel. |
void |
initializeEditable()
This method initializes or re-initializes this panel for editing. |
void |
initializeNonEditable()
This method initializes or re-initializes this panel for display. |
void |
itemStateChanged(java.awt.event.ItemEvent e)
This is called when our month is changed |
private void |
performCallback()
|
void |
setAllowMonthChange(boolean allow)
This method toggles this panel from display mode to editing mode or vice-versa. |
void |
setMonth(int index)
This method sets the month in the JMonthYearPanel. |
void |
setYear(int index)
This method sets the year in the JMonthYearPanel. |
void |
updateYear(int index)
This method passes changes from the JYearChooser up to the parent calendar widget. |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, 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, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, 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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
static final boolean debug
private boolean editable
private javax.swing.JButton _prevdate
private javax.swing.JButton _nextdate
private arlut.csd.JCalendar.JYearChooser year
private javax.swing.JComboBox month
private arlut.csd.JCalendar.JpanelCalendar container
private int currentMonth
private int currentYear
private javax.swing.JLabel mYLabel
private java.awt.Font titleFont
| Constructor Detail |
public JMonthYearPanel(arlut.csd.JCalendar.JpanelCalendar parent)
| Method Detail |
public void setMonth(int index)
This method sets the month in the JMonthYearPanel. The appropriate range is from 0 to 11.
Calling this method will update the display, but it will not trigger a callback to the JpanelCalendar.
public int getMonth()
Returns the month currently selected in the JMonthYearPanel. This is not necessarily the same as the month of the currently selected day in the calendar.
public java.lang.String getMonthString()
This method returns a human readable string containing the month shown in the JMonthYearPanel.
public void setYear(int index)
This method sets the year in the JMonthYearPanel.
Calling this method will update the display, but it will not trigger a callback to the JpanelCalendar.
public void updateYear(int index)
This method passes changes from the JYearChooser up to the parent calendar widget.
public int getYear()
Returns the year currently selected in the JMonthYearPanel. This is not necessarily the same as the year of the currently selected day in the calendar.
public void initializeEditable()
This method initializes or re-initializes this panel for editing.
public void initializeNonEditable()
This method initializes or re-initializes this panel for display.
public void setAllowMonthChange(boolean allow)
This method toggles this panel from display mode to editing mode or vice-versa. If allow is true, this panel will be editable, and the year and month will be changable by the user.
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged in interface java.awt.event.ItemListenerprivate void performCallback()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||