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.UndoAction
Nested classes/interfaces inherited from class javax.swing.JTextField
JTextField.AccessibleJTextField
Nested classes/interfaces inherited from class javax.swing.text.JTextComponent
JTextComponent.AccessibleJTextComponent, JTextComponent.DropLocation, JTextComponent.KeyBinding
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
Nested 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, _trimTxt
Fields inherited from class javax.swing.JTextField
notifyAction
Fields inherited from class javax.swing.text.JTextComponent
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY
Fields inherited from class javax.swing.JComponent
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
accessibleContext, 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
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Document
Creates 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 systemlong
long
long
getValue()
double
long
return the value of this field.long
getValueUndefined
(long undefinedValue) return the value of this field.void
setDisplayScaleFactor
(int paramId, double scaleFactor) Sets a scaling factor to use when displaying the data.void
setDisplayUnitsSystem
(int ut) Sets the current Unit System for this objectvoid
setMaxLength
(int length) void
setMaxValue
(long max) void
setMinValue
(long min) void
setValue
(double value) void
setValue
(long value) void
setValue
(ParamInteger param) protected boolean
validateData
(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, takeFocus
Methods 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, setScrollOffset
Methods 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, write
Methods 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, update
Methods 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, validateTree
Methods 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:RmaJTextField
Creates the default implementation of the model to be used at construction if one isn't explicitly given. An instance of RMADocument is returned.- Overrides:
createDefaultModel
in 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:
validateData
in classRmaJTextField
-
getDisplayUnitsString
Description copied from interface:UnitsComponent
This method allows the retrieves the units string for a given units system- Specified by:
getDisplayUnitsString
in interfaceUnitsComponent
- See Also:
-
setDisplayScaleFactor
public void setDisplayScaleFactor(int paramId, double scaleFactor) Description copied from interface:UnitsComponent
Sets a scaling factor to use when displaying the data.- Specified by:
setDisplayScaleFactor
in 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:UnitsComponent
Sets the current Unit System for this object- Specified by:
setDisplayUnitsSystem
in interfaceUnitsComponent
-
setMaxLength
public void setMaxLength(int length) - Overrides:
setMaxLength
in classRmaJTextField
-