|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
de.uni_paderborn.fujaba.views.beans.NumberInputField
This class is a Panel holding a NumbertTextField It adds two Buttons to the TextField; one Button to increase the value of the TextField and one Button to decrease the value of the TextField And it sets the TextFields NumberFormat accordingly
NumberTextField
,
Serialized FormNested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
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 | |
private javax.swing.JPanel |
buttonPanel
No comment provided by developer, please add a comment to improve documentation. |
private static IntervalNumberFormat |
byteParser
No comment provided by developer, please add a comment to improve documentation. |
private static IntervalNumberFormat |
doubleParser
No comment provided by developer, please add a comment to improve documentation. |
private javax.swing.JButton |
down
No comment provided by developer, please add a comment to improve documentation. |
private static java.awt.event.ActionListener |
downAction
No comment provided by developer, please add a comment to improve documentation. |
private static IntervalNumberFormat |
floatParser
No comment provided by developer, please add a comment to improve documentation. |
private java.lang.Number |
incrValue
No comment provided by developer, please add a comment to improve documentation. |
private NumberTextField |
input
No comment provided by developer, please add a comment to improve documentation. |
private static IntervalNumberFormat |
integerParser
No comment provided by developer, please add a comment to improve documentation. |
private static IntervalNumberFormat |
longParser
No comment provided by developer, please add a comment to improve documentation. |
private javax.swing.JPanel |
mainPanel
No comment provided by developer, please add a comment to improve documentation. |
private static IntervalNumberFormat |
shortParser
No comment provided by developer, please add a comment to improve documentation. |
private javax.swing.JButton |
up
No comment provided by developer, please add a comment to improve documentation. |
private static java.awt.event.ActionListener |
upAction
No comment provided by developer, please add a comment to improve documentation. |
Fields inherited from class javax.swing.JPanel |
|
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.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
NumberInputField()
Constructor for class NumberInputField |
|
NumberInputField(int colums)
Constructor for class NumberInputField |
Method Summary | |
byte |
getByteIncrValue()
Get the byteIncrValue attribute of the NumberInputField object |
byte |
getByteValue()
Get the byteValue attribute of the NumberInputField object |
double |
getDoubleIncrValue()
Get the doubleIncrValue attribute of the NumberInputField object |
double |
getDoubleValue()
Get the doubleValue attribute of the NumberInputField object |
float |
getFloatIncrValue()
Get the floatIncrValue attribute of the NumberInputField object |
float |
getFloatValue()
Get the floatValue attribute of the NumberInputField object |
java.lang.Number |
getIncrValue()
Get the incrValue attribute of the NumberInputField object |
protected NumberTextField |
getInputField()
Get the inputField attribute of the NumberInputField object |
int |
getIntegerIncrValue()
Get the integerIncrValue attribute of the NumberInputField object |
int |
getIntegerValue()
Get the integerValue attribute of the NumberInputField object |
long |
getLongIncrValue()
Get the longIncrValue attribute of the NumberInputField object |
long |
getLongValue()
Get the longValue attribute of the NumberInputField object |
short |
getShortIncrValue()
Get the shortIncrValue attribute of the NumberInputField object |
short |
getShortValue()
Get the shortValue attribute of the NumberInputField object |
java.lang.Number |
getValue()
Get the value attribute of the NumberInputField object |
void |
setEnabled(boolean flag)
Sets the enabled attribute of the NumberInputField object |
void |
setIncrValue(byte value)
Sets the incrValue attribute of the NumberInputField object |
void |
setIncrValue(double value)
Sets the incrValue attribute of the NumberInputField object |
void |
setIncrValue(float value)
Sets the incrValue attribute of the NumberInputField object |
void |
setIncrValue(int value)
Sets the incrValue attribute of the NumberInputField object |
void |
setIncrValue(long value)
Sets the incrValue attribute of the NumberInputField object |
void |
setIncrValue(java.lang.Number value)
Sets the incrValue attribute of the NumberInputField object |
void |
setIncrValue(short value)
Sets the incrValue attribute of the NumberInputField object |
void |
setNumberType(java.lang.Class type)
Sets the numberType attribute of the NumberInputField object |
void |
setValue(byte value)
Sets the value attribute of the NumberInputField object |
void |
setValue(double value)
Sets the value attribute of the NumberInputField object |
void |
setValue(float value)
Sets the value attribute of the NumberInputField object |
void |
setValue(int value)
Sets the value attribute of the NumberInputField object |
void |
setValue(long value)
Sets the value attribute of the NumberInputField object |
void |
setValue(java.lang.Number value)
Sets the value attribute of the NumberInputField object |
void |
setValue(short value)
Sets the value attribute of the NumberInputField object |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
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, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, 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, doLayout, 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 |
private javax.swing.JPanel mainPanel
private NumberTextField input
private javax.swing.JButton up
private javax.swing.JButton down
private javax.swing.JPanel buttonPanel
private java.lang.Number incrValue
private static final IntervalNumberFormat integerParser
private static final IntervalNumberFormat byteParser
private static final IntervalNumberFormat longParser
private static final IntervalNumberFormat shortParser
private static final IntervalNumberFormat doubleParser
private static final IntervalNumberFormat floatParser
private static final java.awt.event.ActionListener upAction
private static final java.awt.event.ActionListener downAction
Constructor Detail |
public NumberInputField()
public NumberInputField(int colums)
colums
- No description providedMethod Detail |
public void setValue(java.lang.Number value)
value
- The new value valuepublic java.lang.Number getValue()
public void setIncrValue(java.lang.Number value)
value
- The new incrValue valuepublic java.lang.Number getIncrValue()
protected NumberTextField getInputField()
public void setEnabled(boolean flag)
flag
- The new enabled valuepublic void setNumberType(java.lang.Class type)
type
- The new numberType valuepublic void setValue(int value)
value
- The new value valuepublic void setValue(double value)
value
- The new value valuepublic void setValue(float value)
value
- The new value valuepublic void setValue(long value)
value
- The new value valuepublic void setValue(short value)
value
- The new value valuepublic void setValue(byte value)
value
- The new value valuepublic int getIntegerValue()
public byte getByteValue()
public short getShortValue()
public long getLongValue()
public double getDoubleValue()
public float getFloatValue()
public void setIncrValue(int value)
value
- The new incrValue valuepublic void setIncrValue(double value)
value
- The new incrValue valuepublic void setIncrValue(float value)
value
- The new incrValue valuepublic void setIncrValue(long value)
value
- The new incrValue valuepublic void setIncrValue(short value)
value
- The new incrValue valuepublic void setIncrValue(byte value)
value
- The new incrValue valuepublic int getIntegerIncrValue()
public byte getByteIncrValue()
public short getShortIncrValue()
public long getLongIncrValue()
public double getDoubleIncrValue()
public float getFloatIncrValue()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |