ElegantJ Data Entry Masks Java API Specification v1.1

com.elegantj.util.timemask
Class TimeMask

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Canvas
          extended bycom.elegantj.util.timemask.TimeMask
All Implemented Interfaces:
javax.accessibility.Accessible, java.io.Externalizable, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class TimeMask
extends java.awt.Canvas
implements java.io.Externalizable

TimeMask provides the mask for the time also allowed the facility of the spin

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.Canvas
java.awt.Canvas.AccessibleAWTCanvas
 
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 java.lang.String hh_mm_ss
          The mask pattern - hh_mm_ss
static java.lang.String HH_MM_SS
          The mask pattern - HH_MM_SS
protected  java.awt.Dimension m_preferredSize
          Holds the preferred size of the compoennt
 
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
TimeMask()
          Default constructor of the TimeMask
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
          Adds the property change listener
 void clear()
          Clears the contents of the mask
 void firePropertyChange(java.lang.String property, java.lang.Object oldValue, java.lang.Object newValue)
          Fires the property change
 AWTBorder getBorder()
          Method which returns the border of the TimeMask
 java.awt.Color getCaretColor()
          Returns the caret color of the time mask
 java.lang.String getLicenseKey()
          Returns the license key of the bean
 java.util.Locale getLocale()
          Method which returns the locale of the TimeMask
 java.lang.String getMaskPattern()
          Returns the current mask pattern of the time mask
 java.lang.String getMaskText()
          Returns the string currently containing by the mask
 java.awt.Dimension getMinimumSize()
          Method which returns The minimum size of the TimeMask
 java.awt.Dimension getPreferredSize()
          Returns the preferredSize of the component
 char getSeparatorChar()
          Returns the separator char for the time mask
 boolean isFocusTraversable()
          Overriden is focus traversable
 boolean isSpinAllowed()
          Returns the value of the wheather spin allowed or not
 void paint(java.awt.Graphics g)
          Overriden paint method
protected  void processFocusEvent(java.awt.event.FocusEvent e)
          Overriden process focus event
protected  void processKeyEvent(java.awt.event.KeyEvent e)
          Overriden process key event
 void readExternal(java.io.ObjectInput in)
          Implementation of the Externalizable
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
          Removes the property change listener
 void setBackground(java.awt.Color background)
          Method which sets the background color for the TimeMask
 void setBorder(AWTBorder awtBorder)
          Method which sets the border for the TimeMask
 void setBounds(int x, int y, int width, int height)
          Method which sets the bounds of the TimeMask
 void setCaretColor(java.awt.Color caretColor)
          Sets the caret color for the time mask
 void setCursor(java.awt.Cursor cursor)
          Method which sets the cursor for the TimeMask
 void setEnabled(boolean bEnabled)
          Method which sets the enability of the TimeMask
 void setFont(java.awt.Font font)
          Method which sets the font for the TimeMask
 void setForeground(java.awt.Color foreground)
          Method which sets the foreground color for the TimeMask
 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 TimeMask
 void setMaskPattern(java.lang.String maskPattern)
          Sets the mask pattern for the time mask
 void setMaskText(java.lang.String maskText)
          Sets the string for the mask
 void setPreferredSize(java.awt.Dimension preferredSize)
          Sets the preferredSize of the component
 void setSeparatorChar(char separatorChar)
          Sets the separator char for the time mask
 void setSpinAllowed(boolean spinAllowed)
          Sets the value of the wheather spin allowed or not
 void setVisible(boolean bVisible)
          Method which sets the visibility for the TimeMask
 void update(java.awt.Graphics g)
          Overriden the update method
 void writeExternal(java.io.ObjectOutput out)
          Implementation of the Externalizable
 
Methods inherited from class java.awt.Canvas
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBounds, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

hh_mm_ss

public static java.lang.String hh_mm_ss
The mask pattern - hh_mm_ss


HH_MM_SS

public static java.lang.String HH_MM_SS
The mask pattern - HH_MM_SS


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

TimeMask

public TimeMask()
Default constructor of the TimeMask

Method Detail

update

public void update(java.awt.Graphics g)
Overriden the update method


paint

public void paint(java.awt.Graphics g)
Overriden paint method


processKeyEvent

protected void processKeyEvent(java.awt.event.KeyEvent e)
Overriden process key event


processFocusEvent

protected void processFocusEvent(java.awt.event.FocusEvent e)
Overriden process focus event


setMaskText

public void setMaskText(java.lang.String maskText)
Sets the string for the mask


getMaskText

public java.lang.String getMaskText()
Returns the string currently containing by the mask

Returns:
The string currently containing by the mask

clear

public void clear()
Clears the contents of the mask


setMaskPattern

public void setMaskPattern(java.lang.String maskPattern)
Sets the mask pattern for the time mask

See Also:
hh_mm_ss, HH_MM_SS

getMaskPattern

public java.lang.String getMaskPattern()
Returns the current mask pattern of the time mask

Returns:
The current mask pattern of the time mask

setSeparatorChar

public void setSeparatorChar(char separatorChar)
Sets the separator char for the time mask

Parameters:
separatorChar - The separator char for the time mask

getSeparatorChar

public char getSeparatorChar()
Returns the separator char for the time mask

Returns:
the separator char for the time mask

setSpinAllowed

public void setSpinAllowed(boolean spinAllowed)
Sets the value of the wheather spin allowed or not

Parameters:
spinAllowed - The value of the wheather spin allowed or not

isSpinAllowed

public boolean isSpinAllowed()
Returns the value of the wheather spin allowed or not

Returns:
The value of the wheather spin allowed or not

setCaretColor

public void setCaretColor(java.awt.Color caretColor)
Sets the caret color for the time mask

Parameters:
caretColor - The caret color for the time mask

getCaretColor

public java.awt.Color getCaretColor()
Returns the caret color of the time mask

Returns:
The caret color of the time mask

setFont

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

Parameters:
font - The font for the TimeMask

setBackground

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

Parameters:
background - The background color for the TimeMask

setForeground

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

Parameters:
foreground - The foreground color for the TimeMask

setBorder

public void setBorder(AWTBorder awtBorder)
Method which sets the border for the TimeMask

Parameters:
awtBorder - the border for the TimeMask

getBorder

public AWTBorder getBorder()
Method which returns the border of the TimeMask

Returns:
the border of the TimeMask

setVisible

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

Parameters:
bVisible - the visibility for the TimeMask

setEnabled

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

Parameters:
bEnabled - the enability of the TimeMask

setLocale

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

Parameters:
locale - The locale for the TimeMask

getLocale

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

Returns:
The locale of the TimeMask

setCursor

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

Parameters:
cursor - The cursor for the TimeMask

setBounds

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

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

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

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

getMinimumSize

public java.awt.Dimension getMinimumSize()
Method which returns The minimum size of the TimeMask


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

isFocusTraversable

public boolean isFocusTraversable()
Overriden is focus traversable


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

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

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.