kei.swing
Class KComboBoxMD

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--kei.swing.KComboBoxMD
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, Resourceable, Serializable
Direct Known Subclasses:
KComboBoxYMD

public class KComboBoxMD
extends JPanel
implements Resourceable

“ú•t?Ý’è?E•\ަ‚Ì‚½‚߂̃Nƒ‰ƒX(ŒŽ“ú‚Ì‚Ý)?B

See Also:
Serialized Form

Nested Class Summary
(package private)  class KComboBoxMD.CoDateActionListener
          KComboBoxMD‚ÌcoDate‚̃Cƒxƒ“ƒg?ˆ—?—p“à•”ƒNƒ‰ƒX
(package private)  class KComboBoxMD.CoMonthActionListener
          KComboBoxMD‚ÌcoMonth‚̃Cƒxƒ“ƒg?ˆ—?—p“à•”ƒNƒ‰ƒX
(package private)  class KComboBoxMD.IndexKeySelectionManager
          ƒL?[ƒ{?[ƒh‚É‚æ‚éComboBox‘I‘ð‚Ì‚½‚ß‚Ì“à•”ƒNƒ‰ƒX
 
Field Summary
(package private)  ActionListener al
           
(package private)  KComboBoxMD.CoDateActionListener cdal
           
(package private)  KComboBoxMD.CoMonthActionListener cmal
           
(package private)  JComboBox coDate
           
(package private)  JComboBox coMonth
           
(package private)  int date
           
static int DATE
          “ú•t‚ÉŽg—p‚·‚é’è?”?B
(package private)  int ERROR
           
(package private)  JLabel lDate
           
(package private)  JLabel lMonth
           
(package private)  int month
           
static int MONTH
          “ú•t‚ÉŽg—p‚·‚é’è?”?B
protected  int[] MONTH_LENGTH
          ŒŽ‚Ì“ú?”
(package private)  int NONE
           
protected static String SPACE
          “ú•t‚ð•\ަ‚µ‚È‚¢?ó‘Ô‚ÅŠJŽn‚·‚邯‚«‚É•\ަ‚·‚é•¶Žš
protected  int YEAR_LENGTH
          ”N‚Ì“ú?”
 
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, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
KComboBoxMD()
          “ú•t—“‚͋󔒂Ƃµ‚Ä?\’z‚·‚é?B
KComboBoxMD(Calendar cal)
          Calendar‚ÅŽw’è‚·‚é“ú‚ð?‰Šú’l‚Æ‚µ‚Ä?\’z‚·‚é?B
KComboBoxMD(String s)
          ?¡“ú‚Ì“ú•t‚ð?‰Šú’l‚Æ‚µ‚Ä?\’z‚·‚é?B
 
Method Summary
 void addActionListener(ActionListener l)
           
protected  void adjustDateLength(int mon)
          ŒŽ‚ɉž‚¶‚ÄcoDate‚Ì“ú‚Ì?”‚ð’²?®‚·‚é?B
 void clear()
          ComboBox‚Ì•\ަ‚ð‹ó”’‚É‚·‚é?B
 Calendar get()
          ‘I‘ð‚³‚ê‚Ä‚¢‚é“ú•t‚ð•Ô‚·?B
 int get(int field)
          ‘I‘ð‚³‚ê‚Ä‚¢‚é“ú•t‚ÌŽw’肳‚ꂽ“ú•tƒtƒB?[ƒ‹ƒh‚Ì’l‚ð•Ô‚·?B
 boolean isEnabled()
          KComboBoxMD‚ÌŽg—p‰Â?E•s‰Â‚Ì?ó‘Ô‚ð•Ô‚·?B
 boolean isSet()
          ŠeComboBox‚É’l‚ª?ݒ肳‚ê‚Ä‚¢‚é‚©‚ð•Ô‚·?B
 boolean isSet(int field)
          ComboBox‚É’l‚ª?ݒ肳‚ê‚Ä‚¢‚é‚©‚ð•Ô‚·?B
protected  String[] makeItemList(int min, int max)
           
 void removeActionListener(ActionListener l)
           
 void requestFocus()
           
 void set(Calendar cal)
          “ú•t‚ð?Ý’è‚·‚é?B
 void set(int field, int value)
          “ú•t‚ð?Ý’è‚·‚é?B
protected  boolean set(String s)
           
 void setEnabled(boolean b)
          KComboBoxMD‚ÌŽg—p‰Â?E•s‰Â‚ð?Ý’è‚·‚é?B
 void setResourceServerBean(ResourceBean rb)
          The component should register its internal text elements with the ResourceBean
 void setToday()
          ŒŽ“ú‚Ì’l‚ð?¡“ú‚Ì“ú•t‚É?Ý’è‚·‚é?B
 
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, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, 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, 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

MONTH

public static final int MONTH
“ú•t‚ÉŽg—p‚·‚é’è?”?B

See Also:
Constant Field Values

DATE

public static final int DATE
“ú•t‚ÉŽg—p‚·‚é’è?”?B

See Also:
Constant Field Values

MONTH_LENGTH

protected int[] MONTH_LENGTH
ŒŽ‚Ì“ú?”


YEAR_LENGTH

protected int YEAR_LENGTH
”N‚Ì“ú?”


NONE

final int NONE
See Also:
Constant Field Values

ERROR

final int ERROR
See Also:
Constant Field Values

month

int month

date

int date

SPACE

protected static final String SPACE
“ú•t‚ð•\ަ‚µ‚È‚¢?ó‘Ô‚ÅŠJŽn‚·‚邯‚«‚É•\ަ‚·‚é•¶Žš

See Also:
Constant Field Values

coMonth

JComboBox coMonth

coDate

JComboBox coDate

lMonth

JLabel lMonth

lDate

JLabel lDate

al

transient ActionListener al

cmal

transient KComboBoxMD.CoMonthActionListener cmal

cdal

transient KComboBoxMD.CoDateActionListener cdal
Constructor Detail

KComboBoxMD

public KComboBoxMD()
“ú•t—“‚͋󔒂Ƃµ‚Ä?\’z‚·‚é?B


KComboBoxMD

public KComboBoxMD(Calendar cal)
Calendar‚ÅŽw’è‚·‚é“ú‚ð?‰Šú’l‚Æ‚µ‚Ä?\’z‚·‚é?B

Parameters:
cal - Calendar

KComboBoxMD

public KComboBoxMD(String s)
?¡“ú‚Ì“ú•t‚ð?‰Šú’l‚Æ‚µ‚Ä?\’z‚·‚é?B

Parameters:
s - ˆø?”‚ð"today"‚Æ‚·‚邯?A?¡“ú‚Ì“ú•t‚ª•\ަ‚³‚ê‚é?B‚»‚êˆÈŠO‚Í‹ó”’?B
Method Detail

makeItemList

protected String[] makeItemList(int min,
                                int max)

get

public Calendar get()
‘I‘ð‚³‚ê‚Ä‚¢‚é“ú•t‚ð•Ô‚·?B

Returns:
‘I‘ð‚³‚ê‚Ä‚¢‚é“ú•t

get

public int get(int field)
‘I‘ð‚³‚ê‚Ä‚¢‚é“ú•t‚ÌŽw’肳‚ꂽ“ú•tƒtƒB?[ƒ‹ƒh‚Ì’l‚ð•Ô‚·?B

Parameters:
field - “ú•t•Ï?”‚̃tƒB?[ƒ‹ƒh?B
Returns:
‘I‘ð‚³‚ê‚Ä‚¢‚é“ú•t‚ÌŽw’肳‚ꂽ“ú•tƒtƒB?[ƒ‹ƒh‚Ì’l

set

public void set(Calendar cal)
“ú•t‚ð?Ý’è‚·‚é?B

Parameters:
cal - ?Ý’è‚·‚é“ú•t?B

set

public void set(int field,
                int value)
“ú•t‚ð?Ý’è‚·‚é?B

Parameters:
field - “ú•t•Ï?”‚̃tƒB?[ƒ‹ƒh?B
value - ?Ý’è‚·‚é’l?B•s?³‚È’l‚̂Ƃ«‚Í?AComboBox‚͋󔒂ª‘I‘ð‚³‚ê‚é?B

set

protected boolean set(String s)

setToday

public void setToday()
ŒŽ“ú‚Ì’l‚ð?¡“ú‚Ì“ú•t‚É?Ý’è‚·‚é?B


clear

public void clear()
ComboBox‚Ì•\ަ‚ð‹ó”’‚É‚·‚é?B


adjustDateLength

protected void adjustDateLength(int mon)
ŒŽ‚ɉž‚¶‚ÄcoDate‚Ì“ú‚Ì?”‚ð’²?®‚·‚é?B


isSet

public boolean isSet()
ŠeComboBox‚É’l‚ª?ݒ肳‚ê‚Ä‚¢‚é‚©‚ð•Ô‚·?B

Returns:
‚·‚ׂĂÌComboBox‚É’l‚ª?ݒ肳‚ê‚Ä‚¢‚ê‚Îtrue?B‚»‚¤‚łȂ¯‚ê‚Îfalse?B

isSet

public boolean isSet(int field)
ComboBox‚É’l‚ª?ݒ肳‚ê‚Ä‚¢‚é‚©‚ð•Ô‚·?B

Returns:
field‚ÅŽw’肳‚ꂽComboBox‚É’l‚ª?ݒ肳‚ê‚Ä‚¢‚ê‚Îtrue?B ‚»‚¤‚łȂ¯‚ê‚Îfalse?B

isEnabled

public boolean isEnabled()
KComboBoxMD‚ÌŽg—p‰Â?E•s‰Â‚Ì?ó‘Ô‚ð•Ô‚·?B

Overrides:
isEnabled in class Component

setEnabled

public void setEnabled(boolean b)
KComboBoxMD‚ÌŽg—p‰Â?E•s‰Â‚ð?Ý’è‚·‚é?B

Overrides:
setEnabled in class JComponent

requestFocus

public void requestFocus()
Overrides:
requestFocus in class JComponent

addActionListener

public void addActionListener(ActionListener l)

removeActionListener

public void removeActionListener(ActionListener l)

setResourceServerBean

public void setResourceServerBean(ResourceBean rb)
Description copied from interface: Resourceable
The component should register its internal text elements with the ResourceBean

Specified by:
setResourceServerBean in interface Resourceable