com.martealert
Class martealertDatePicker

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended bycom.martealert.martealertDatePicker
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class martealertDatePicker
extends javax.swing.JComponent

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  javax.swing.JFormattedTextField _dateField
          The editable date field that displays the date
protected  com.martealert.martealertDatePicker.marteDatePickerPopup _popup
          Popup that displays the month view with controls for traversing/selecting dates.
 
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
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
martealertDatePicker()
          Create a new date picker using the current date as the initial selection.
martealertDatePicker(long millis)
          Create a new date picker using the specified time as the initial seleciton.
 
Method Summary
 void addActionListener(java.awt.event.ActionListener l)
          Adds an ActionListener.
 void commitEdit()
          Forces the current value to be taken from the AbstractFormatter and set as the current value.
 void doLayout()
          
protected  void fireActionPerformed()
          Fires an ActionEvent to all listeners.
 java.lang.String getActionCommand()
          Returns the string currently used to identiy fired ActionEvents.
 java.util.Date getDate()
          Returns the currently selected date.
 javax.swing.JFormattedTextField getDateField()
           
 javax.swing.JFormattedTextField.AbstractFormatterFactory getDateFormatterFactory()
          Return the AbstractFormatterFactory for this instance of the JXDatePicker.
 long getDateInMillis()
          Returns the currently selected date in milliseconds.
 javax.swing.JFormattedTextField getEditor()
          Returns the formatted text field used to edit the date selection.
 java.awt.Dimension getMinimumSize()
          
 java.awt.Dimension getPreferredSize()
          
 java.lang.Object getValue()
           
 boolean isEditValid()
          Returns true if the current value being edited is valid.
 void removeActionListener(java.awt.event.ActionListener l)
          Removes an ActionListener.
 void setActionCommand(java.lang.String actionCommand)
          Sets the string used to identify fired ActionEvents.
 void setDate(java.util.Date date)
          Set the currently selected date.
 void setDateFormatterFactory(javax.swing.JFormattedTextField.AbstractFormatterFactory dateFormatterFactory)
          Set the AbstractFormatterFactory to be used by this instance of the JXDatePicker.
 void setDateInMillis(long millis)
          Set the currently selected date.
 void setEnabled(boolean value)
          Enables or disables the date picker and all its subcomponents.
 void updateUI()
          Resets the UI property to a value from the current look and feel.
 
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, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, 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, 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, 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

_dateField

protected javax.swing.JFormattedTextField _dateField
The editable date field that displays the date


_popup

protected com.martealert.martealertDatePicker.marteDatePickerPopup _popup
Popup that displays the month view with controls for traversing/selecting dates.

Constructor Detail

martealertDatePicker

public martealertDatePicker()
Create a new date picker using the current date as the initial selection.


martealertDatePicker

public martealertDatePicker(long millis)
Create a new date picker using the specified time as the initial seleciton.

Parameters:
millis - initial time in milliseconds
Method Detail

updateUI

public void updateUI()
Resets the UI property to a value from the current look and feel.


setDate

public void setDate(java.util.Date date)
Set the currently selected date.

Parameters:
date - date

setDateInMillis

public void setDateInMillis(long millis)
Set the currently selected date.

Parameters:
millis - milliseconds

getDate

public java.util.Date getDate()
Returns the currently selected date.

Returns:
Date

getDateInMillis

public long getDateInMillis()
Returns the currently selected date in milliseconds.

Returns:
the date in milliseconds

getEditor

public javax.swing.JFormattedTextField getEditor()
Returns the formatted text field used to edit the date selection.

Returns:
the formatted text field

getDateFormatterFactory

public javax.swing.JFormattedTextField.AbstractFormatterFactory getDateFormatterFactory()
Return the AbstractFormatterFactory for this instance of the JXDatePicker.

Returns:
the AbstractFormatterFactory

setDateFormatterFactory

public void setDateFormatterFactory(javax.swing.JFormattedTextField.AbstractFormatterFactory dateFormatterFactory)
Set the AbstractFormatterFactory to be used by this instance of the JXDatePicker.

Parameters:
dateFormatterFactory - the AbstractFormatterFactory

isEditValid

public boolean isEditValid()
Returns true if the current value being edited is valid.

Returns:
true if the current value being edited is valid.

commitEdit

public void commitEdit()
                throws java.text.ParseException
Forces the current value to be taken from the AbstractFormatter and set as the current value. This has no effect if there is no current AbstractFormatter installed.

Throws:
java.text.ParseException

setEnabled

public void setEnabled(boolean value)
Enables or disables the date picker and all its subcomponents.

Parameters:
value - true to enable, false to disable

getActionCommand

public java.lang.String getActionCommand()
Returns the string currently used to identiy fired ActionEvents.

Returns:
String The string used for identifying ActionEvents.

setActionCommand

public void setActionCommand(java.lang.String actionCommand)
Sets the string used to identify fired ActionEvents.

Parameters:
actionCommand - The string used for identifying ActionEvents.

addActionListener

public void addActionListener(java.awt.event.ActionListener l)
Adds an ActionListener.

The ActionListener will receive an ActionEvent when a selection has been made.

Parameters:
l - The ActionListener that is to be notified

removeActionListener

public void removeActionListener(java.awt.event.ActionListener l)
Removes an ActionListener.

Parameters:
l - The action listener to remove.

fireActionPerformed

protected void fireActionPerformed()
Fires an ActionEvent to all listeners.


doLayout

public void doLayout()


getMinimumSize

public java.awt.Dimension getMinimumSize()


getPreferredSize

public java.awt.Dimension getPreferredSize()


getValue

public java.lang.Object getValue()

getDateField

public javax.swing.JFormattedTextField getDateField()


e-REdING. Biblioteca de la Escuela Superior de Ingenieros de Sevilla.


DISEÑO DE UNA PLATAFORMA DE GESTIÓN Y MONITORIZACIÓN DE EVENTOS DE SEGURIDAD

: Galera Ruiz, Alejandro David
: Ingeniería Telecomunicación
Contenido del proyecto: