public class UFRSimple
extends javax.swing.JFrame
implements java.awt.event.KeyListener, java.awt.event.FocusListener
Modifier and Type | Class and Description |
---|---|
(package private) class |
UFRSimple.ThreadMain |
javax.swing.JFrame.AccessibleJFrame
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
ANY_DATA |
private static java.lang.String |
APPROPRIATE_FORMAT |
private static int |
AUTH1A |
private static int |
AUTH1B |
private byte[] |
baReadUserData |
private byte |
bKeyIndex |
private boolean |
boCONN |
private boolean |
boFunctionOn |
private boolean |
boReaderStop |
private boolean |
boThreadStart |
private boolean |
boThreadStop |
private javax.swing.JButton |
btnFormatCardKeys |
private javax.swing.JButton |
btnFormatReaderKey |
private javax.swing.ButtonGroup |
btngAUTH1AB |
private javax.swing.JButton |
btnLinearRead |
private javax.swing.JButton |
btnLinearWrite |
private javax.swing.JButton |
btnReaderUISignal |
private javax.swing.JComboBox |
cboLightMode |
private javax.swing.JComboBox |
cboSoundMode |
private javax.swing.JCheckBox |
chkNewCardKeys |
private javax.swing.JCheckBox |
chkNewReaderKey |
private static int |
DL_OK |
private static int |
ERR_LIGHT |
private static int |
ERR_SOUND |
(package private) java.util.concurrent.ExecutorService |
exec |
private byte[] |
iCardId |
private int[] |
iCardSerial |
private int[] |
iReaderSerial |
private int[] |
iReaderType |
private int |
iResult |
private javax.swing.JScrollPane |
jScrollPane1 |
private javax.swing.JScrollPane |
jScrollPane2 |
private javax.swing.JLabel |
lblBytesRead |
private javax.swing.JLabel |
lblBytesWritten |
private javax.swing.JLabel |
lblCardType |
private javax.swing.JLabel |
lblKeyA |
private javax.swing.JLabel |
lblKeyB |
private javax.swing.JLabel |
lblKeyIndex |
private javax.swing.JLabel |
lblLightMode |
private javax.swing.JLabel |
lblLRDataLength |
private javax.swing.JLabel |
lblLRLinearAddress |
private javax.swing.JLabel |
lblLWDataLength |
private javax.swing.JLabel |
lblLWLinearAddress |
private javax.swing.JLabel |
lblReadData |
private javax.swing.JLabel |
lblReaderSerial |
private javax.swing.JLabel |
lblReaderType |
private javax.swing.JLabel |
lblReaderType3 |
private javax.swing.JLabel |
lblSectorsFormatted |
private javax.swing.JLabel |
lblSoundMode |
private javax.swing.JLabel |
lblWriteData |
private static int |
LINEAR_MAX_BYTES |
private javax.swing.JMenuItem |
mnuExitItems |
private javax.swing.JMenu |
mnuFileItem |
private javax.swing.JMenuBar |
mnuMeni |
private static java.lang.String |
NEW_CARD_KEY_A |
private static java.lang.String |
NEW_CARD_KEY_B |
private static java.lang.String |
NEW_READER_KEY |
private javax.swing.JTabbedPane |
pgCardReaderKeys |
private javax.swing.JTabbedPane |
pgLinearReadWrite |
private javax.swing.JPanel |
pnlAUTH1AB |
private javax.swing.JPanel |
pnlFormat |
private javax.swing.JPanel |
pnlNewCardKeys |
private javax.swing.JPanel |
pnlNewReaderKey |
private javax.swing.JPanel |
pnlReader |
private javax.swing.JPanel |
pnlSep1 |
private javax.swing.JRadioButton |
rbAUTH1A |
private javax.swing.JRadioButton |
rbAUTH1B |
private static int |
RES_LIGHT_OK |
private static int |
RES_SOUND_OK |
private javax.swing.JLabel |
stbCard_Code |
private javax.swing.JLabel |
stbCard_Explain |
private javax.swing.JLabel |
stbCardStatus |
private javax.swing.JPanel |
stbCardStatusPanel |
private javax.swing.JLabel |
stbConnection |
private javax.swing.JLabel |
stbFunction_error |
private javax.swing.JPanel |
stbFunctionError |
private javax.swing.JLabel |
stbFunctionErrorCode |
private javax.swing.JLabel |
stbFunctionErrorExplain |
private javax.swing.JPanel |
stbReader |
private javax.swing.JLabel |
stbReaderCode |
private javax.swing.JLabel |
stbReaderExplain |
private javax.swing.JPanel |
tabLinearRead |
private javax.swing.JPanel |
tabLinearWrite |
private javax.swing.JTextField |
TB |
private javax.swing.JTextField |
txtBytesRead |
private javax.swing.JTextField |
txtBytesWritten |
private javax.swing.JTextField |
txtCardSerial |
private javax.swing.JTextField |
txtCardType |
private javax.swing.JLabel |
txtKeyIndex |
private javax.swing.JTextArea |
txtLinearRead |
private javax.swing.JTextField |
txtLRDataLength |
private javax.swing.JTextField |
txtLRLinearAddress |
private javax.swing.JTextField |
txtLWDataLength |
private javax.swing.JTextField |
txtLWLinearAddress |
private javax.swing.JTextField |
txtReaderSerial |
private javax.swing.JTextField |
txtReaderType |
private javax.swing.JTextField |
txtSectorsFormatted |
private javax.swing.JTextArea |
txtWriteData |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
UFRSimple() |
Modifier and Type | Method and Description |
---|---|
private void |
btnFormatCardKeysActionPerformed(java.awt.event.ActionEvent evt) |
private void |
btnFormatReaderKeyActionPerformed(java.awt.event.ActionEvent evt) |
private void |
btnLinearReadActionPerformed(java.awt.event.ActionEvent evt) |
private void |
btnLinearWriteActionPerformed(java.awt.event.ActionEvent evt) |
private void |
btnReaderUISignalActionPerformed(java.awt.event.ActionEvent evt) |
private void |
chkNewCardKeysItemStateChanged(java.awt.event.ItemEvent evt) |
private void |
chkNewReaderKeyItemStateChanged(java.awt.event.ItemEvent evt) |
void |
CreateKey(int iKeyX,
int iKeyY,
int iKeyHeight,
int iKeyWidth,
java.lang.String sKeyName,
javax.swing.JPanel pnlContainer) |
void |
focusGained(java.awt.event.FocusEvent e) |
void |
focusLost(java.awt.event.FocusEvent e) |
private void |
formWindowClosing(java.awt.event.WindowEvent evt) |
private void |
formWindowOpened(java.awt.event.WindowEvent evt) |
private void |
initComponents() |
void |
keyPressed(java.awt.event.KeyEvent e) |
void |
keyReleased(java.awt.event.KeyEvent e) |
void |
keyTyped(java.awt.event.KeyEvent e) |
static void |
main(java.lang.String[] args) |
private void |
MainThread()
MainThread for loop
|
private void |
mnuExitItemsActionPerformed(java.awt.event.ActionEvent evt) |
static java.lang.String |
PlatformOsType()
Description PlatformOsType()
Linux 1
Windows 2
|
private void |
ReaderOff() |
private void |
ReaderOn() |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
private static final int RES_LIGHT_OK
private static final int RES_SOUND_OK
private static final int ERR_LIGHT
private static final int ERR_SOUND
private static final int DL_OK
private static final int AUTH1A
private static final int AUTH1B
private static final int LINEAR_MAX_BYTES
private static final java.lang.String ANY_DATA
private static final java.lang.String APPROPRIATE_FORMAT
private static final java.lang.String NEW_CARD_KEY_A
private static final java.lang.String NEW_CARD_KEY_B
private static final java.lang.String NEW_READER_KEY
private int iResult
private byte bKeyIndex
private int[] iReaderType
private int[] iReaderSerial
private int[] iCardSerial
private byte[] iCardId
private byte[] baReadUserData
private boolean boCONN
private boolean boThreadStop
private boolean boThreadStart
private boolean boReaderStop
private boolean boFunctionOn
private javax.swing.JTextField TB
java.util.concurrent.ExecutorService exec
private javax.swing.JButton btnFormatCardKeys
private javax.swing.JButton btnFormatReaderKey
private javax.swing.JButton btnLinearRead
private javax.swing.JButton btnLinearWrite
private javax.swing.JButton btnReaderUISignal
private javax.swing.ButtonGroup btngAUTH1AB
private javax.swing.JComboBox cboLightMode
private javax.swing.JComboBox cboSoundMode
private javax.swing.JCheckBox chkNewCardKeys
private javax.swing.JCheckBox chkNewReaderKey
private javax.swing.JScrollPane jScrollPane1
private javax.swing.JScrollPane jScrollPane2
private javax.swing.JLabel lblBytesRead
private javax.swing.JLabel lblBytesWritten
private javax.swing.JLabel lblCardType
private javax.swing.JLabel lblKeyA
private javax.swing.JLabel lblKeyB
private javax.swing.JLabel lblKeyIndex
private javax.swing.JLabel lblLRDataLength
private javax.swing.JLabel lblLRLinearAddress
private javax.swing.JLabel lblLWDataLength
private javax.swing.JLabel lblLWLinearAddress
private javax.swing.JLabel lblLightMode
private javax.swing.JLabel lblReadData
private javax.swing.JLabel lblReaderSerial
private javax.swing.JLabel lblReaderType
private javax.swing.JLabel lblReaderType3
private javax.swing.JLabel lblSectorsFormatted
private javax.swing.JLabel lblSoundMode
private javax.swing.JLabel lblWriteData
private javax.swing.JMenuItem mnuExitItems
private javax.swing.JMenu mnuFileItem
private javax.swing.JMenuBar mnuMeni
private javax.swing.JTabbedPane pgCardReaderKeys
private javax.swing.JTabbedPane pgLinearReadWrite
private javax.swing.JPanel pnlAUTH1AB
private javax.swing.JPanel pnlFormat
private javax.swing.JPanel pnlNewCardKeys
private javax.swing.JPanel pnlNewReaderKey
private javax.swing.JPanel pnlReader
private javax.swing.JPanel pnlSep1
private javax.swing.JRadioButton rbAUTH1A
private javax.swing.JRadioButton rbAUTH1B
private javax.swing.JLabel stbCardStatus
private javax.swing.JPanel stbCardStatusPanel
private javax.swing.JLabel stbCard_Code
private javax.swing.JLabel stbCard_Explain
private javax.swing.JLabel stbConnection
private javax.swing.JPanel stbFunctionError
private javax.swing.JLabel stbFunctionErrorCode
private javax.swing.JLabel stbFunctionErrorExplain
private javax.swing.JLabel stbFunction_error
private javax.swing.JPanel stbReader
private javax.swing.JLabel stbReaderCode
private javax.swing.JLabel stbReaderExplain
private javax.swing.JPanel tabLinearRead
private javax.swing.JPanel tabLinearWrite
private javax.swing.JTextField txtBytesRead
private javax.swing.JTextField txtBytesWritten
private javax.swing.JTextField txtCardSerial
private javax.swing.JTextField txtCardType
private javax.swing.JLabel txtKeyIndex
private javax.swing.JTextField txtLRDataLength
private javax.swing.JTextField txtLRLinearAddress
private javax.swing.JTextField txtLWDataLength
private javax.swing.JTextField txtLWLinearAddress
private javax.swing.JTextArea txtLinearRead
private javax.swing.JTextField txtReaderSerial
private javax.swing.JTextField txtReaderType
private javax.swing.JTextField txtSectorsFormatted
private javax.swing.JTextArea txtWriteData
private void ReaderOff()
private void ReaderOn()
public static java.lang.String PlatformOsType()
void
- private void initComponents()
public void CreateKey(int iKeyX, int iKeyY, int iKeyHeight, int iKeyWidth, java.lang.String sKeyName, javax.swing.JPanel pnlContainer)
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
public void focusGained(java.awt.event.FocusEvent e)
focusGained
in interface java.awt.event.FocusListener
public void focusLost(java.awt.event.FocusEvent e)
focusLost
in interface java.awt.event.FocusListener
private void MainThread()
private void mnuExitItemsActionPerformed(java.awt.event.ActionEvent evt)
private void formWindowOpened(java.awt.event.WindowEvent evt)
private void formWindowClosing(java.awt.event.WindowEvent evt)
private void btnReaderUISignalActionPerformed(java.awt.event.ActionEvent evt)
private void btnFormatCardKeysActionPerformed(java.awt.event.ActionEvent evt)
private void chkNewCardKeysItemStateChanged(java.awt.event.ItemEvent evt)
private void chkNewReaderKeyItemStateChanged(java.awt.event.ItemEvent evt)
private void btnFormatReaderKeyActionPerformed(java.awt.event.ActionEvent evt)
private void btnLinearReadActionPerformed(java.awt.event.ActionEvent evt)
private void btnLinearWriteActionPerformed(java.awt.event.ActionEvent evt)
public static void main(java.lang.String[] args)