|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.jaxfront.swing.ui.beans.JCalendarPopUp
public class JCalendarPopUp
JCalendarPopUp add's the ability to the JCalendar to be shown like a a JPopupMenu
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Field Summary | |
---|---|
static java.awt.Dimension |
fixedPopupWidth
|
Fields inherited from class javax.swing.JComponent |
---|
TOOL_TIP_TEXT_KEY, 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 |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
JCalendarPopUp(SimpleType model)
JCalendarPopUp constructor. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
Tracks performed actions. |
void |
addFocusListener(java.awt.event.FocusListener focusListener)
|
void |
addKeyListener(java.awt.event.KeyListener focusListener)
|
void |
ancestorAdded(javax.swing.event.AncestorEvent event)
|
void |
ancestorMoved(javax.swing.event.AncestorEvent event)
|
void |
ancestorRemoved(javax.swing.event.AncestorEvent event)
|
void |
focusGained(java.awt.event.FocusEvent e)
|
void |
focusLost(java.awt.event.FocusEvent e)
|
java.awt.Color |
getBackground()
Returns the current set background color of the textfield. |
java.util.Calendar |
getCalendar()
Returns the current calendar. |
java.lang.String |
getCurrentDateFromTextField()
|
java.awt.Color |
getForeground()
Returns the current foreground color of the textfield. |
java.lang.String |
getHelpId()
Returns the help id. |
javax.swing.JFormattedTextField |
getTextField()
Returns the current textfield. |
boolean |
isEditable()
Returns true if the textfield is editable. |
boolean |
isEnabled()
Returns true if the textfield is enabled. |
boolean |
isForceRefreshData()
Returns true if the data should be refreshed. |
boolean |
isPopUpVisible()
Returns true if the popup is visible. |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
Listens for propertyChange events and fires property changes. |
void |
release()
|
void |
removeFocusListener(java.awt.event.FocusListener focusListener)
|
void |
removeKeyListener(java.awt.event.KeyListener focusListener)
|
void |
requestFocus()
Requests focus for this component. |
void |
setBackground(java.awt.Color color)
Sets a background color to the textfield. |
void |
setDate(java.util.Date date)
Sets the current date for the calendar |
void |
setEditable(boolean value)
Sets the textfield editable or ineditable. |
void |
setEnabled(boolean value)
Sets the textfield enabled or unenabled. |
void |
setForceRefreshData(boolean newForceRefreshData)
Sets if the data should be refreshed. |
void |
setForeground(java.awt.Color color)
Sets the foreground color to the textfield. |
void |
setRequired(boolean aBoolean)
Sets if this component requires user entry or not. |
void |
setText(java.lang.String text)
|
void |
setToolTipText(java.lang.String aText)
Sets a tool tip text to the textfield. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, 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, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, 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, 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, remove, removeComponentListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, 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 java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.awt.Dimension fixedPopupWidth
Constructor Detail |
---|
public JCalendarPopUp(SimpleType model)
Method Detail |
---|
public void addFocusListener(java.awt.event.FocusListener focusListener)
addFocusListener
in class java.awt.Component
public void addKeyListener(java.awt.event.KeyListener focusListener)
addKeyListener
in class java.awt.Component
public void removeFocusListener(java.awt.event.FocusListener focusListener)
removeFocusListener
in class java.awt.Component
public void removeKeyListener(java.awt.event.KeyListener focusListener)
removeKeyListener
in class java.awt.Component
public void ancestorAdded(javax.swing.event.AncestorEvent event)
ancestorAdded
in interface javax.swing.event.AncestorListener
public void ancestorMoved(javax.swing.event.AncestorEvent event)
ancestorMoved
in interface javax.swing.event.AncestorListener
public void ancestorRemoved(javax.swing.event.AncestorEvent event)
ancestorRemoved
in interface javax.swing.event.AncestorListener
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
event
- an actionEvent that occuredActionListener.actionPerformed(ActionEvent)
public java.awt.Color getBackground()
getBackground
in class java.awt.Component
Component.getBackground()
public java.util.Calendar getCalendar()
public java.lang.String getCurrentDateFromTextField()
public java.awt.Color getForeground()
getForeground
in class java.awt.Component
Component.getForeground()
public java.lang.String getHelpId()
public javax.swing.JFormattedTextField getTextField()
public boolean isEditable()
public boolean isEnabled()
isEnabled
in class java.awt.Component
Component.isEnabled()
public boolean isForceRefreshData()
public boolean isPopUpVisible()
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
PropertyChangeListener.propertyChange(PropertyChangeEvent)
public void requestFocus()
requestFocus
in class javax.swing.JComponent
Component.requestFocus()
public void release()
public void setBackground(java.awt.Color color)
setBackground
in class javax.swing.JComponent
color
- a new background color for the textfieldComponent.setBackground(Color)
public void setDate(java.util.Date date)
date
- the current datepublic void setEditable(boolean value)
value
- if true, the textfield becomes editablepublic void setEnabled(boolean value)
setEnabled
in class javax.swing.JComponent
value
- if true, the textfield becomes enabledComponent.setEnabled(boolean)
public void setForceRefreshData(boolean newForceRefreshData)
newForceRefreshData
- true, if the data should be refreshed if possiblepublic void setForeground(java.awt.Color color)
setForeground
in class javax.swing.JComponent
color
- a new foreground colorComponent.setForeground(Color)
public void setRequired(boolean aBoolean)
aBoolean
- true if this component is requiredpublic void setToolTipText(java.lang.String aText)
setToolTipText
in class javax.swing.JComponent
aText
- a textJComponent.setToolTipText(String)
public void focusGained(java.awt.event.FocusEvent e)
focusGained
in interface java.awt.event.FocusListener
FocusListener.focusGained(java.awt.event.FocusEvent)
public void focusLost(java.awt.event.FocusEvent e)
focusLost
in interface java.awt.event.FocusListener
FocusListener.focusLost(java.awt.event.FocusEvent)
public void setText(java.lang.String text)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |