de.uni_paderborn.fujaba.views.beans
Class NumberInputField

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended byde.uni_paderborn.fujaba.views.beans.NumberInputField
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.swing.SwingConstants

public class NumberInputField
extends javax.swing.JPanel
implements javax.swing.SwingConstants

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

Version:
$Revision: 1.10 $
Author:
$Author: schneider $
See Also:
NumberTextField, Serialized Form

Nested 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
 
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.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
 

Constructor Detail

NumberInputField

public NumberInputField()
Constructor for class NumberInputField


NumberInputField

public NumberInputField(int colums)
Constructor for class NumberInputField

Parameters:
colums - No description provided
Method Detail

setValue

public void setValue(java.lang.Number value)
Sets the value attribute of the NumberInputField object

Parameters:
value - The new value value

getValue

public java.lang.Number getValue()
Get the value attribute of the NumberInputField object

Returns:
The value value

setIncrValue

public void setIncrValue(java.lang.Number value)
Sets the incrValue attribute of the NumberInputField object

Parameters:
value - The new incrValue value

getIncrValue

public java.lang.Number getIncrValue()
Get the incrValue attribute of the NumberInputField object

Returns:
The incrValue value

getInputField

protected NumberTextField getInputField()
Get the inputField attribute of the NumberInputField object

Returns:
The inputField value

setEnabled

public void setEnabled(boolean flag)
Sets the enabled attribute of the NumberInputField object

Parameters:
flag - The new enabled value

setNumberType

public void setNumberType(java.lang.Class type)
Sets the numberType attribute of the NumberInputField object

Parameters:
type - The new numberType value

setValue

public void setValue(int value)
Sets the value attribute of the NumberInputField object

Parameters:
value - The new value value

setValue

public void setValue(double value)
Sets the value attribute of the NumberInputField object

Parameters:
value - The new value value

setValue

public void setValue(float value)
Sets the value attribute of the NumberInputField object

Parameters:
value - The new value value

setValue

public void setValue(long value)
Sets the value attribute of the NumberInputField object

Parameters:
value - The new value value

setValue

public void setValue(short value)
Sets the value attribute of the NumberInputField object

Parameters:
value - The new value value

setValue

public void setValue(byte value)
Sets the value attribute of the NumberInputField object

Parameters:
value - The new value value

getIntegerValue

public int getIntegerValue()
Get the integerValue attribute of the NumberInputField object

Returns:
The integerValue value

getByteValue

public byte getByteValue()
Get the byteValue attribute of the NumberInputField object

Returns:
The byteValue value

getShortValue

public short getShortValue()
Get the shortValue attribute of the NumberInputField object

Returns:
The shortValue value

getLongValue

public long getLongValue()
Get the longValue attribute of the NumberInputField object

Returns:
The longValue value

getDoubleValue

public double getDoubleValue()
Get the doubleValue attribute of the NumberInputField object

Returns:
The doubleValue value

getFloatValue

public float getFloatValue()
Get the floatValue attribute of the NumberInputField object

Returns:
The floatValue value

setIncrValue

public void setIncrValue(int value)
Sets the incrValue attribute of the NumberInputField object

Parameters:
value - The new incrValue value

setIncrValue

public void setIncrValue(double value)
Sets the incrValue attribute of the NumberInputField object

Parameters:
value - The new incrValue value

setIncrValue

public void setIncrValue(float value)
Sets the incrValue attribute of the NumberInputField object

Parameters:
value - The new incrValue value

setIncrValue

public void setIncrValue(long value)
Sets the incrValue attribute of the NumberInputField object

Parameters:
value - The new incrValue value

setIncrValue

public void setIncrValue(short value)
Sets the incrValue attribute of the NumberInputField object

Parameters:
value - The new incrValue value

setIncrValue

public void setIncrValue(byte value)
Sets the incrValue attribute of the NumberInputField object

Parameters:
value - The new incrValue value

getIntegerIncrValue

public int getIntegerIncrValue()
Get the integerIncrValue attribute of the NumberInputField object

Returns:
The integerIncrValue value

getByteIncrValue

public byte getByteIncrValue()
Get the byteIncrValue attribute of the NumberInputField object

Returns:
The byteIncrValue value

getShortIncrValue

public short getShortIncrValue()
Get the shortIncrValue attribute of the NumberInputField object

Returns:
The shortIncrValue value

getLongIncrValue

public long getLongIncrValue()
Get the longIncrValue attribute of the NumberInputField object

Returns:
The longIncrValue value

getDoubleIncrValue

public double getDoubleIncrValue()
Get the doubleIncrValue attribute of the NumberInputField object

Returns:
The doubleIncrValue value

getFloatIncrValue

public float getFloatIncrValue()
Get the floatIncrValue attribute of the NumberInputField object

Returns:
The floatIncrValue value