Package rma.swing
Class RmaJLongField
- All Implemented Interfaces:
FocusListener,MouseMotionListener,ImageObserver,MenuContainer,Serializable,EventListener,Accessible,DocumentListener,Scrollable,SwingConstants,Modifiable,ModifiedEventControl,UnitsComponent,EditableComponent,FormManagementListener,RmaValidComponent
extension of the JTextField to only allow Long integer type numbers
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class rma.swing.RmaJTextField
RmaJTextField.RedoAction, RmaJTextField.UndoActionNested classes/interfaces inherited from class javax.swing.JTextField
JTextField.AccessibleJTextFieldNested classes/interfaces inherited from class javax.swing.text.JTextComponent
JTextComponent.AccessibleJTextComponent, JTextComponent.DropLocation, JTextComponent.KeyBindingNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
Fields inherited from class rma.swing.RmaJTextField
_minMaxTable, _minMaxTableCol, _modifiable, _name, _parentWindow, _statusLine, _statusText, _trimTrailingWhiteSpaceTxt, _trimTxtFields inherited from class javax.swing.JTextField
notifyActionFields inherited from class javax.swing.text.JTextComponent
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEYFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHFields 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DocumentCreates the default implementation of the model to be used at construction if one isn't explicitly given.getDisplayUnitsString(int unitSystem) This method allows the retrieves the units string for a given units systemlonglonglonggetValue()doublelongreturn the value of this field.longgetValueUndefined(long undefinedValue) return the value of this field.voidsetDisplayScaleFactor(int paramId, double scaleFactor) Sets a scaling factor to use when displaying the data.voidsetDisplayUnitsSystem(int ut) Sets the current Unit System for this objectvoidsetMaxLength(int length) voidsetMaxValue(long max) voidsetMinValue(long min) voidsetValue(double value) voidsetValue(long value) voidsetValue(ParamInteger param) protected booleanvalidateData(boolean showErrorMsg) Methods inherited from class rma.swing.RmaJTextField
addPopupAction, changedUpdate, clearPerformed, displayMsg, displayMsgInQueue, errorMsg, fixToolTip, focusGained, focusLost, forwardModifiedEvents, getForwardModifiedEvents, getIgnoreModifiedEvents, getMaxLength, getName, getText, getToolTipText, getToolTipText, insertUpdate, isCursorKey, isEmptyOk, isIgnoringModifiedEvents, isModified, isValid, mouseDragged, mouseMoved, popupMenuAction, removeAWTEnterKeyCompatibility, removeUpdate, replaceSelection, setChangeColor, setDisplayMsgInQueue, setDocument, setEditable, setEmptyOk, setEnabled, setFowardModifiedEvents, setIgnoreModifiedEvents, setIsEditable, setLowercaseOnly, setMinMaxTable, setModifiable, setModified, setName, setShowErrorMsg, setStatusLineField, setTrimTrailingWhiteSpace, setTrimWhiteSpace, setUppercaseOnly, showToolTipWindow, takeFocusMethods inherited from class javax.swing.JTextField
actionPropertyChanged, addActionListener, configurePropertiesFromAction, createActionPropertyChangeListener, fireActionPerformed, getAccessibleContext, getAction, getActionListeners, getActions, getColumns, getColumnWidth, getHorizontalAlignment, getHorizontalVisibility, getPreferredSize, getScrollOffset, getUIClassID, isValidateRoot, paramString, postActionEvent, removeActionListener, scrollRectToVisible, setAction, setActionCommand, setColumns, setFont, setHorizontalAlignment, setScrollOffsetMethods inherited from class javax.swing.text.JTextComponent
addCaretListener, addInputMethodListener, addKeymap, copy, cut, fireCaretUpdate, getCaret, getCaretColor, getCaretListeners, getCaretPosition, getDisabledTextColor, getDocument, getDragEnabled, getDropLocation, getDropMode, getFocusAccelerator, getHighlighter, getInputMethodRequests, getKeymap, getKeymap, getMargin, getNavigationFilter, getPreferredScrollableViewportSize, getPrintable, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedText, getSelectedTextColor, getSelectionColor, getSelectionEnd, getSelectionStart, getText, getUI, isEditable, loadKeymap, modelToView, modelToView2D, moveCaretPosition, paste, print, print, print, processInputMethodEvent, read, removeCaretListener, removeKeymap, removeNotify, restoreComposedText, saveComposedText, select, selectAll, setCaret, setCaretColor, setCaretPosition, setComponentOrientation, setDisabledTextColor, setDragEnabled, setDropMode, setFocusAccelerator, setHighlighter, setKeymap, setMargin, setNavigationFilter, setSelectedTextColor, setSelectionColor, setSelectionEnd, setSelectionStart, setText, setUI, updateUI, viewToModel, viewToModel2D, writeMethods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateMethods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeMethods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Constructor Details
-
RmaJLongField
public RmaJLongField() -
RmaJLongField
public RmaJLongField(long value, int columns)
-
-
Method Details
-
getValueUndefined
public long getValueUndefined(long undefinedValue) return the value of this field. If not defined returnundefinedValue. if the field has had it's value set with setValue() and hasn't modified by the user return the original setValue() value, not the displayed contents of the field. -
getValueUndefined
public long getValueUndefined()return the value of this field. If not defined return UNDEF_LONG. if the field has had it's value set with setValue() and hasn't modified by the user return the original setValue() value, not the displayed contents of the field. -
getValue
public long getValue() -
getValueAsDbl
public double getValueAsDbl() -
getTextAsDbl
-
getTextAsLong
-
setValue
-
setValue
public void setValue(long value) -
setValue
public void setValue(double value) -
createDefaultModel
Description copied from class:RmaJTextFieldCreates the default implementation of the model to be used at construction if one isn't explicitly given. An instance of RMADocument is returned.- Overrides:
createDefaultModelin classRmaJTextField- Returns:
- the default model implementation
-
setMinValue
public void setMinValue(long min) -
getMinValue
public long getMinValue() -
setMaxValue
public void setMaxValue(long max) -
getMaxValue
public long getMaxValue() -
validateData
protected boolean validateData(boolean showErrorMsg) - Overrides:
validateDatain classRmaJTextField
-
getDisplayUnitsString
Description copied from interface:UnitsComponentThis method allows the retrieves the units string for a given units system- Specified by:
getDisplayUnitsStringin interfaceUnitsComponent- See Also:
-
setDisplayScaleFactor
public void setDisplayScaleFactor(int paramId, double scaleFactor) Description copied from interface:UnitsComponentSets a scaling factor to use when displaying the data.- Specified by:
setDisplayScaleFactorin interfaceUnitsComponent- Parameters:
paramId- This is the identifier of the paramater to scale. If the data is not of this type then it is ignoredscaleFactor- This is the scaling factor *to* be multiplied to the value when it is rendered
-
setDisplayUnitsSystem
public void setDisplayUnitsSystem(int ut) Description copied from interface:UnitsComponentSets the current Unit System for this object- Specified by:
setDisplayUnitsSystemin interfaceUnitsComponent
-
setMaxLength
public void setMaxLength(int length) - Overrides:
setMaxLengthin classRmaJTextField
-