|
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.Container
java.awt.Panel
com.elegantj.awt.spinner.AWTSpinner
AWTSpinner which provides the spin control in awt which provides the spinner mainly for the INTEGER, REAL and STRING type
| 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 |
INTEGER
INTEGER - data type for the AWTSpinner |
static int |
REAL
REAL - data type for the AWTSpinner |
static int |
STRING
STRING - data type for the AWTSpinner |
| 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 | |
AWTSpinner()
Default constructer for the AWTSpinner |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent evt)
Implementation of the ActionListener |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds the property change listener |
void |
addValueChangedListener(ValueChangedListener l)
Adds the ValueChangedListener |
void |
doLayout()
Overriden doLayout |
void |
firePropertyChange(java.lang.String property,
java.lang.Object oldValue,
java.lang.Object newValue)
Fires the property change |
void |
fireValueChanged(ValueChangedEvent e)
Fires the ValueChangedEvent e The ValueChangedEvent |
void |
focusGained(java.awt.event.FocusEvent e)
Implementation of the FocusListener |
void |
focusLost(java.awt.event.FocusEvent e)
Implementation of the FocusListener |
java.awt.Color |
getArrowBackground()
Method which returns the arrow background of the arrow buttons |
java.awt.Color |
getArrowForeground()
Method which returns the arrow foreground of the arrow buttons |
double |
getCurrent()
Method which returns the current value of the AWTSpinner |
int |
getDataType()
Method which returns the data type for the AWTSpinner |
double |
getIncrement()
Method which returns the increment for the AWTSpinner |
long |
getIncrementDelay()
Method which returns the increment delay for the AWTSpinner |
java.lang.String |
getLicenseKey()
Returns the license key of the bean |
java.util.Locale |
getLocale()
Method which returns the locale of the AWTSpinner |
double |
getMaximum()
Method which returns the maximum value of the AWTSpinner |
double |
getMinimum()
Method which returns the minimum value of the AWTSpinner |
java.awt.Dimension |
getMinimumSize()
Method which returns The minimum size of the AWTSpinner |
int |
getPrecision()
Method which returns the precision of the AWTSpinner |
java.awt.Dimension |
getPreferredSize()
Method which returns The preferred size of the AWTSpinner |
java.util.Vector |
getStringValues()
Method which returns the string values of the AWTSpinner |
java.lang.String |
getText()
Returns the string currently occupied by spinner |
java.awt.TextField |
getTextField()
Returns the text field of the spinner |
boolean |
isCirculating()
Method which returns the wheather AWTSpinner is circulating or not |
boolean |
isEditable()
Method which returns the wheather AWTSpinner is editable or not |
void |
mouseClicked(java.awt.event.MouseEvent e)
Implementation of the MouseListener |
void |
mouseDragged(java.awt.event.MouseEvent e)
Implementation of the MouseMotionListener |
void |
mouseEntered(java.awt.event.MouseEvent e)
Implementation of the MouseListener |
void |
mouseExited(java.awt.event.MouseEvent e)
Implementation of the MouseListener |
void |
mouseMoved(java.awt.event.MouseEvent e)
Implementation of the MouseMotionListener |
void |
mousePressed(java.awt.event.MouseEvent e)
Implementation of the MouseListener |
void |
mouseReleased(java.awt.event.MouseEvent e)
Implementation of the MouseListener |
void |
readExternal(java.io.ObjectInput in)
Implementation of the Externalizable |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes the property change listener |
void |
removeValueChangedListener(ValueChangedListener l)
Removes the ValueChangedListener |
void |
setArrowBackground(java.awt.Color arrowBackground)
Method which sets the arrow background of the arrow buttons |
void |
setArrowForeground(java.awt.Color arrowForeground)
Method which sets the arrow foreground of the arrow buttons |
void |
setBackground(java.awt.Color background)
Method which sets the background color for the AWTSpinner |
void |
setBounds(int x,
int y,
int width,
int height)
Method which sets the bounds of the AWTSpinner |
void |
setCirculating(boolean bCirculating)
Method which sets the wheather circulation is allowed for the AWTSpinner or not |
void |
setCurrent(double current)
Method which sets the current value for the AWTSpinner |
void |
setCursor(java.awt.Cursor cursor)
Method which sets the cursor for the AWTSpinner |
void |
setDataType(int dataType)
Method which sets the data type for the AWTSpinner |
void |
setEditable(boolean bEditable)
Method which sets the wheather AWTSpinner is allowed to edit or not |
void |
setEnabled(boolean bEnabled)
Method which sets the enability of the AWTSpinner |
void |
setFont(java.awt.Font font)
Method which sets the font for the AWTSpinner |
void |
setForeground(java.awt.Color foreground)
Method which sets the foreground color for the AWTSpinner |
void |
setIncrement(double increment)
Method which sets the increment for the AWTSpinner |
void |
setIncrementDelay(long incrementDelay)
Method which sets the increment delay |
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 AWTSpinner |
void |
setMaximum(double maximum)
Method which sets the maximum value for the AWTSpinner |
void |
setMinimum(double minimum)
Method which sets the minimum value for the AWTSpinner |
void |
setPrecision(int precision)
Method whichs sets the precision for the AWTSpinner |
void |
setStringValues(java.util.Vector stringValues)
Method which sets the string values for the AWTSpinner |
void |
setVisible(boolean bVisible)
Method which sets the visibility for the AWTSpinner |
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, 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 |
public static int INTEGER
public static int REAL
public static int STRING
public transient com.elegantj.editors.C1 c1
| Constructor Detail |
public AWTSpinner()
| Method Detail |
public void doLayout()
public void setDataType(int dataType)
dataType - The data type for the AWTSpinner
if dataType is INTEGER the integer values are only allowed
if dataType is REAL the real values are only allowed
if dataType is STRING the string values are only allowedINTEGER, REAL, STRINGpublic int getDataType()
INTEGER, REAL, STRINGpublic void setStringValues(java.util.Vector stringValues)
stringValues - The string values for the AWTSpinnerpublic java.util.Vector getStringValues()
public void setEditable(boolean bEditable)
bEditable - Wheather AWTSpinner is allowed to edit or notpublic boolean isEditable()
public void setMinimum(double minimum)
minimum - The minimum value for the AWTSpinner
use this method only when the data type is the INTEGER or REALpublic double getMinimum()
public void setMaximum(double maximum)
public double getMaximum()
public void setIncrement(double increment)
increment - the increment for the AWTSpinner
use this method only when the data type is the INTEGER or REALpublic double getIncrement()
public void setCurrent(double current)
current - The current value for the AWTSpinner
if the data type is INTEGER or REAL the specified value will be set as a current
else if the data type is STRING the string value at the
specified index will be set as a currentpublic double getCurrent()
public java.lang.String getText()
public void setPrecision(int precision)
precision - The precision for the AWTSpinner
use it only when the data type is REALpublic int getPrecision()
public void setArrowForeground(java.awt.Color arrowForeground)
public java.awt.Color getArrowForeground()
public void setArrowBackground(java.awt.Color arrowBackground)
arrowBackground - The arrow background of the arrow buttonspublic java.awt.Color getArrowBackground()
public void setIncrementDelay(long incrementDelay)
incrementDelay - The delay for the increment of the AWTSpinnerpublic long getIncrementDelay()
public void setCirculating(boolean bCirculating)
public boolean isCirculating()
public void setFont(java.awt.Font font)
font - The font for the AWTSpinnerpublic void setBackground(java.awt.Color background)
background - The background color for the AWTSpinnerpublic void setForeground(java.awt.Color foreground)
foreground - The foreground color for the AWTSpinnerpublic void setVisible(boolean bVisible)
bVisible - the visibility for the AWTSpinnerpublic void setEnabled(boolean bEnabled)
bEnabled - the enability of the AWTSpinnerpublic void setLocale(java.util.Locale locale)
locale - The locale for the AWTSpinnerpublic java.util.Locale getLocale()
public void setCursor(java.awt.Cursor cursor)
cursor - The cursor for the AWTSpinner
public void setBounds(int x,
int y,
int width,
int height)
x - The x coordinate of the AWTSpinnery - The y coordinate of the AWTSpinnerwidth - The width of the of the AWTSpinnerheight - The height of the AWTSpinnerpublic void setLicenseKey(java.lang.String licenseKey)
public java.lang.String getLicenseKey()
public java.awt.Dimension getPreferredSize()
public java.awt.Dimension getMinimumSize()
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenerpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void focusGained(java.awt.event.FocusEvent e)
focusGained in interface java.awt.event.FocusListenerpublic void focusLost(java.awt.event.FocusEvent e)
focusLost in interface java.awt.event.FocusListenerpublic java.awt.TextField getTextField()
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed in interface java.awt.event.ActionListenerpublic void addValueChangedListener(ValueChangedListener l)
l - The ValueChangedListenerpublic void removeValueChangedListener(ValueChangedListener l)
l - The ValueChangedListenerpublic void fireValueChanged(ValueChangedEvent e)
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 value
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException
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 | |||||||||