|
ElegantJ Data Entry Masks Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Canvas
com.elegantj.util.datemask.DateMask
DateMask provides mask for the date, also contains facility of the spin, automatic insert week day
| 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 |
dd_mm_yyyy
Mask pattern for the DateMask |
static java.lang.String |
dd_mmm_yyyy
Mask pattern for the DateMask |
static java.lang.String |
dd_mmmmm_yyyy
Mask pattern for the DateMask |
protected java.awt.Dimension |
m_preferredSize
Holds the preferred size of the compoennt |
static java.lang.String |
mm_dd_yyyy
Mask pattern for the DateMask |
static java.lang.String |
mmm_dd_yyyy
Mask pattern for the DateMask |
static java.lang.String |
mmmmm_dd_yyyy
Mask pattern for the DateMask |
static java.lang.String |
yyyy_mm_dd
Mask pattern for the DateMask |
static java.lang.String |
yyyy_mmm_dd
Mask pattern for the DateMask |
static java.lang.String |
yyyy_mmmmm_dd
Mask pattern for the DateMask |
| 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 | |
DateMask()
Constructs the DateMask |
|
| Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds the property change listener |
void |
clear()
Clears the contents of the mask |
void |
dateMaskKeyPressed(java.awt.event.KeyEvent e)
Implementation of the KeyListener |
void |
dateMaskKeyReleased(java.awt.event.KeyEvent e)
Implementation of the KeyListener |
void |
dateMaskKeyTyped(java.awt.event.KeyEvent e)
Implementation of the KeyListener |
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 DateMask |
java.awt.Color |
getCaretColor()
Returns the caret color of the date mask |
protected int |
getDate()
Returns the date |
protected int |
getDateLength(java.lang.String inputMask)
Returns the length of the date |
java.util.Date |
getDateObject()
|
java.lang.String |
getLicenseKey()
Returns the license key of the bean |
java.util.Locale |
getLocale()
Method which returns the locale of the DateMask |
java.lang.String |
getMaskPattern()
Returns the current mask pattern of the date mask |
java.lang.String |
getMaskText()
Returns the string currently containing by the mask |
java.awt.Dimension |
getMinimumSize()
Returns the minimum size |
protected int |
getMonth()
Returns the month |
protected int |
getMonthLength(java.lang.String inputMask)
Returns the length of the month |
java.awt.Dimension |
getPreferredSize()
Returns the preferredSize of the component |
char |
getSeparatorChar()
Returns the separator char for the date mask |
protected int |
getYear()
Returns the year |
protected int |
getYearLength(java.lang.String inputMask)
Returns the length of the year |
boolean |
isFocusTraversable()
Overriden is focus traversable |
boolean |
isShowShortWeekDay()
Returns the value of the property, isShowShortWeekDay |
boolean |
isShowWeekDay()
Returns the value of the property, isShowWeekDay |
boolean |
isSpinAllowed()
Returns The value of the property is spin allowed |
void |
paint(java.awt.Graphics g)
Overriden the 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 DateMask |
void |
setBorder(AWTBorder awtBorder)
Method which sets the border for the DateMask |
void |
setBounds(int x,
int y,
int width,
int height)
Method which sets the bounds of the DateMask |
void |
setCaretColor(java.awt.Color caretColor)
Sets the caret color for the date mask |
void |
setCursor(java.awt.Cursor cursor)
Method which sets the cursor for the DateMask |
void |
setDate(java.util.Date dateObject)
Sets the date for the date mask |
void |
setEnabled(boolean bEnabled)
Method which sets the enability of the DateMask |
void |
setFont(java.awt.Font font)
Method which sets the font for the DateMask |
void |
setForeground(java.awt.Color foreground)
Method which sets the foreground color for the DateMask |
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 DateMask |
void |
setMaskPattern(java.lang.String maskPattern)
Sets the mask pattern for the date mask |
protected 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 date mask |
void |
setShowShortWeekDay(boolean showShortWeekDay)
Sets the value of property, isShowShortWeekDay |
void |
setShowWeekDay(boolean showWeekDay)
Sets the value of the property, isShowWeekDay |
void |
setSpinAllowed(boolean spinAllowed)
Sets the value of the property is spin allowed |
void |
setVisible(boolean bVisible)
Method which sets the visibility for the DateMask |
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 |
public static java.lang.String dd_mm_yyyy
public static java.lang.String dd_mmm_yyyy
public static java.lang.String dd_mmmmm_yyyy
public static java.lang.String mm_dd_yyyy
public static java.lang.String mmm_dd_yyyy
public static java.lang.String mmmmm_dd_yyyy
public static java.lang.String yyyy_mm_dd
public static java.lang.String yyyy_mmm_dd
public static java.lang.String yyyy_mmmmm_dd
public transient com.elegantj.editors.C1 c1
protected java.awt.Dimension m_preferredSize
| Constructor Detail |
public DateMask()
| Method Detail |
protected int getDateLength(java.lang.String inputMask)
protected int getMonthLength(java.lang.String inputMask)
protected int getYearLength(java.lang.String inputMask)
protected int getDate()
protected int getMonth()
protected int getYear()
public void update(java.awt.Graphics g)
public void paint(java.awt.Graphics g)
protected void processKeyEvent(java.awt.event.KeyEvent e)
public void dateMaskKeyPressed(java.awt.event.KeyEvent e)
public void dateMaskKeyTyped(java.awt.event.KeyEvent e)
public void dateMaskKeyReleased(java.awt.event.KeyEvent e)
protected void processFocusEvent(java.awt.event.FocusEvent e)
public void setDate(java.util.Date dateObject)
public java.util.Date getDateObject()
protected void setMaskText(java.lang.String maskText)
public java.lang.String getMaskText()
public void clear()
public void setMaskPattern(java.lang.String maskPattern)
public java.lang.String getMaskPattern()
public void setSeparatorChar(char separatorChar)
separatorChar - The separator char for the date maskpublic char getSeparatorChar()
public void setSpinAllowed(boolean spinAllowed)
public boolean isSpinAllowed()
public void setCaretColor(java.awt.Color caretColor)
caretColor - The caret color for the date maskpublic java.awt.Color getCaretColor()
public void setShowWeekDay(boolean showWeekDay)
showWeekDay - The value of the property, isShowWeekDaypublic boolean isShowWeekDay()
public void setShowShortWeekDay(boolean showShortWeekDay)
showShortWeekDay - The value of the property, showShortWeekDaypublic boolean isShowShortWeekDay()
public void setFont(java.awt.Font font)
font - The font for the DateMaskpublic void setBackground(java.awt.Color background)
background - The background color for the DateMaskpublic void setForeground(java.awt.Color foreground)
foreground - The foreground color for the DateMaskpublic void setBorder(AWTBorder awtBorder)
awtBorder - the border for the DateMaskpublic AWTBorder getBorder()
public void setVisible(boolean bVisible)
bVisible - the visibility for the DateMaskpublic void setEnabled(boolean bEnabled)
bEnabled - the enability of the DateMaskpublic void setLocale(java.util.Locale locale)
locale - The locale for the DateMaskpublic java.util.Locale getLocale()
public void setCursor(java.awt.Cursor cursor)
cursor - The cursor for the DateMask
public void setBounds(int x,
int y,
int width,
int height)
x - The x coordinate of the DateMasky - The y coordinate of the DateMaskwidth - The width of the of the DateMaskheight - The height of the DateMaskpublic void setPreferredSize(java.awt.Dimension preferredSize)
preferredSize - The preferredSize for the componentpublic java.awt.Dimension getPreferredSize()
public void setLicenseKey(java.lang.String licenseKey)
public java.lang.String getLicenseKey()
public java.awt.Dimension getMinimumSize()
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
l - The property change listenerpublic void removePropertyChangeListener(java.beans.PropertyChangeListener l)
l - The property change listener
public void firePropertyChange(java.lang.String property,
java.lang.Object oldValue,
java.lang.Object newValue)
property - The name of the propertyoldValue - The old valuenewValue - The new valuepublic boolean isFocusTraversable()
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException,
java.awt.IllegalComponentStateException
writeExternal in interface java.io.Externalizablejava.io.IOException
java.awt.IllegalComponentStateException
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundException
|
ElegantJ Data Entry Masks Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||