ElegantJ Data Entry Masks Java API Specification v1.1

com.elegantj.util.datebox
Class Datebox

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended bycom.elegantj.util.datebox.Datebox
All Implemented Interfaces:
javax.accessibility.Accessible, java.util.EventListener, java.io.Externalizable, java.awt.image.ImageObserver, java.awt.event.KeyListener, java.awt.MenuContainer, java.awt.event.MouseListener, java.io.Serializable, java.awt.event.WindowListener

public class Datebox
extends java.awt.Panel
implements java.awt.event.WindowListener, java.awt.event.MouseListener, java.io.Externalizable, java.awt.event.KeyListener

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
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
 com.elegantj.editors.C1 c1
           
static int DDMMYY
          DDMMYY - static int for the date format of the datebox
static int DDMMYYYY
          DDMMYYYY - static int for the date format of the datebox
protected  java.awt.Dimension m_preferredSize
          Holds the preferred size of the compoennt
static int MMDDYY
          MMDDYY - static int for the date format of the datebox
static int MMDDYYYY
          MMDDYYYY - static int for the date format of the datebox
 
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
Datebox()
          Constructs the Datebox
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
          Adds the property change listener
 void firePropertyChange(java.lang.String property, java.lang.Object oldValue, java.lang.Object newValue)
          Fires the property change
 java.awt.Color getArrowBackground()
          Method which Returns the background of the arrow button
 java.awt.Color getArrowForeground()
          Method which Returns the foreground of the arrow button
 ExtCalendar getCalendar()
          Returns the calendar for this component
 int getDateFormat()
          Returns the date format of the Datebox
 java.lang.String getLicenseKey()
          Returns the license key of the bean
 java.util.Locale getLocale()
          Method which returns the locale of the Datebox
 java.awt.Dimension getMinimumSize()
          Returns the minimum size
 java.awt.Dimension getPopupSize()
          Returns the popup size of the popup calendar
 java.awt.Dimension getPreferredSize()
          Returns the preferredSize of the component
 char getSeparatorChar()
          Returns the separator char of the date
 java.lang.String getText()
          Returns the text of the Datebox
 void keyPressed(java.awt.event.KeyEvent e)
          Implementation of key listener
 void keyReleased(java.awt.event.KeyEvent e)
          Implementation of key listener
 void keyTyped(java.awt.event.KeyEvent e)
          Implementation of key listener
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
          Implementation of the ActionListener
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void readExternal(java.io.ObjectInput in)
          Implementation of the Externalizable
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
          Removes the property change listener
 void setArrowBackground(java.awt.Color background)
          Method which Sets the background of the arrow button
 void setArrowForeground(java.awt.Color foreground)
          Method which Sets the foreground of the arrow button
 void setBackground(java.awt.Color background)
          Method which sets the background color for the Datebox
 void setBounds(int x, int y, int width, int height)
          Method which sets the bounds of the Datebox
 void setCursor(java.awt.Cursor cursor)
          Method which sets the cursor for the Datebox
 void setDateFormat(int dateFormat)
          Sets the date format for the Datebox
 void setEnabled(boolean bEnabled)
          Method which sets the enability of the Datebox
 void setFont(java.awt.Font font)
          Method which sets the font for the Datebox
 void setForeground(java.awt.Color foreground)
          Method which sets the foreground color for the Datebox
 void setLicenseKey(java.lang.String licenseKey)
          Methods which sets the license key
 void setLocale(java.util.Locale locale)
          Method which sets the locale for the Datebox
 void setPopupSize(java.awt.Dimension popupSize)
          Sets the popup size of the popup calendar
 void setPreferredSize(java.awt.Dimension preferredSize)
          Sets the preferredSize of the component
 void setSeparatorChar(char separatorChar)
          Sets the separator char for the date
 void setText(java.lang.String text)
          Sets the text for the Datebox
 void setVisible(boolean bVisible)
          Method which sets the visibility for the Datebox
 void showCalendar(boolean show)
          Method which displays the calendar of DateBox
 void windowActivated(java.awt.event.WindowEvent e)
           
 void windowClosed(java.awt.event.WindowEvent e)
           
 void windowClosing(java.awt.event.WindowEvent e)
           
 void windowDeactivated(java.awt.event.WindowEvent e)
           
 void windowDeiconified(java.awt.event.WindowEvent e)
           
 void windowIconified(java.awt.event.WindowEvent e)
           
 void windowOpened(java.awt.event.WindowEvent e)
           
 void writeExternal(java.io.ObjectOutput out)
          Implementation of the Externalizable
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, update, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBounds, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, 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

DDMMYYYY

public static final int DDMMYYYY
DDMMYYYY - static int for the date format of the datebox

See Also:
Constant Field Values

MMDDYYYY

public static final int MMDDYYYY
MMDDYYYY - static int for the date format of the datebox

See Also:
Constant Field Values

DDMMYY

public static final int DDMMYY
DDMMYY - static int for the date format of the datebox

See Also:
Constant Field Values

MMDDYY

public static final int MMDDYY
MMDDYY - static int for the date format of the datebox

See Also:
Constant Field Values

c1

public transient com.elegantj.editors.C1 c1

m_preferredSize

protected java.awt.Dimension m_preferredSize
Holds the preferred size of the compoennt

Constructor Detail

Datebox

public Datebox()
Constructs the Datebox

Method Detail

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Implementation of key listener

Specified by:
keyPressed in interface java.awt.event.KeyListener

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Implementation of key listener

Specified by:
keyTyped in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Implementation of key listener

Specified by:
keyReleased in interface java.awt.event.KeyListener

showCalendar

public void showCalendar(boolean show)
Method which displays the calendar of DateBox

Parameters:
show - Whether show or hide the calendar

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Implementation of the ActionListener

Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Specified by:
windowOpened in interface java.awt.event.WindowListener

setDateFormat

public void setDateFormat(int dateFormat)
Sets the date format for the Datebox

Parameters:
dateFormat - The specified date format
See Also:
DDMMYYYY, MMDDYYYY, DDMMYY, MMDDYY

getDateFormat

public int getDateFormat()
Returns the date format of the Datebox

Returns:
The date format of the Datebox

setSeparatorChar

public void setSeparatorChar(char separatorChar)
Sets the separator char for the date

Parameters:
separatorChar - The separatorChar

getSeparatorChar

public char getSeparatorChar()
Returns the separator char of the date

Returns:
The separator char of the date

setText

public void setText(java.lang.String text)
Sets the text for the Datebox

Parameters:
text - The text for the Datebox

getText

public java.lang.String getText()
Returns the text of the Datebox

Returns:
The text of the Datebox

setPopupSize

public void setPopupSize(java.awt.Dimension popupSize)
Sets the popup size of the popup calendar

Parameters:
popupSize - The popup size of the popup calendar

getPopupSize

public java.awt.Dimension getPopupSize()
Returns the popup size of the popup calendar

Returns:
The popup size of the popup calendar

setFont

public void setFont(java.awt.Font font)
Method which sets the font for the Datebox

Parameters:
font - The font for the Datebox

setBackground

public void setBackground(java.awt.Color background)
Method which sets the background color for the Datebox

Parameters:
background - The background color for the Datebox

setForeground

public void setForeground(java.awt.Color foreground)
Method which sets the foreground color for the Datebox

Parameters:
foreground - The foreground color for the Datebox

setArrowBackground

public void setArrowBackground(java.awt.Color background)
Method which Sets the background of the arrow button

Parameters:
background - The background of the arrow button

getArrowBackground

public java.awt.Color getArrowBackground()
Method which Returns the background of the arrow button

Returns:
background The background of the arrow button

setArrowForeground

public void setArrowForeground(java.awt.Color foreground)
Method which Sets the foreground of the arrow button


getArrowForeground

public java.awt.Color getArrowForeground()
Method which Returns the foreground of the arrow button

Returns:
foreground The foreground of the arrow button

setVisible

public void setVisible(boolean bVisible)
Method which sets the visibility for the Datebox

Parameters:
bVisible - the visibility for the Datebox

setEnabled

public void setEnabled(boolean bEnabled)
Method which sets the enability of the Datebox

Parameters:
bEnabled - the enability of the Datebox

setLocale

public void setLocale(java.util.Locale locale)
Method which sets the locale for the Datebox

Parameters:
locale - The locale for the Datebox

getLocale

public java.util.Locale getLocale()
Method which returns the locale of the Datebox

Returns:
The locale of the Datebox

setCursor

public void setCursor(java.awt.Cursor cursor)
Method which sets the cursor for the Datebox

Parameters:
cursor - The cursor for the Datebox

setBounds

public void setBounds(int x,
                      int y,
                      int width,
                      int height)
Method which sets the bounds of the Datebox

Parameters:
x - The x coordinate of the Datebox
y - The y coordinate of the Datebox
width - The width of the of the Datebox
height - The height of the Datebox

setLicenseKey

public void setLicenseKey(java.lang.String licenseKey)
Methods which sets the license key


getLicenseKey

public java.lang.String getLicenseKey()
Returns the license key of the bean

Returns:
The license key of the bean

getCalendar

public ExtCalendar getCalendar()
Returns the calendar for this component

Returns:
The calendar for this component

setPreferredSize

public void setPreferredSize(java.awt.Dimension preferredSize)
Sets the preferredSize of the component

Parameters:
preferredSize - The preferredSize for the component

getPreferredSize

public java.awt.Dimension getPreferredSize()
Returns the preferredSize of the component

Returns:
The preferredSize of the component

getMinimumSize

public java.awt.Dimension getMinimumSize()
Returns the minimum size

Returns:
The minimum size

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds the property change listener

Parameters:
l - The property change listener

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes the property change listener

Parameters:
l - The property change listener

firePropertyChange

public void firePropertyChange(java.lang.String property,
                               java.lang.Object oldValue,
                               java.lang.Object newValue)
Fires the property change

Parameters:
property - The name of the property
oldValue - The old value
newValue - The new value

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Implementation of the Externalizable

Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException,
                          java.awt.IllegalComponentStateException
Implementation of the Externalizable

Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.awt.IllegalComponentStateException

ElegantJ Data Entry Masks Java API Specification v1.1

Submit a bug or feature

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjbeans.com
All Rights Reserved.