net.japanesechess.view
Class RecordsFrame
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
net.japanesechess.view.RecordsFrame
- All Implemented Interfaces:
- java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants
public class RecordsFrame
- extends javax.swing.JFrame
Shows the features of the Portable Shogi Notation Library through a small PSN display application.
Run from the PsnLibraryDemo main() method.
- Author:
- T. Gene Davis
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from class javax.swing.JFrame |
javax.swing.JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
java.awt.Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
java.awt.Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Fields inherited from class javax.swing.JFrame |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
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 |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Methods inherited from class javax.swing.JFrame |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
| Methods inherited from class java.awt.Frame |
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.awt.Window |
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, toBack, toFront |
| Methods inherited from class java.awt.Container |
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, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, 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, isOpaque, 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, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
rf
public static RecordsFrame rf
recordUsers
private static java.util.ArrayList<ShogiRecordListener> recordUsers
pf
PsnFile pf
standAloneApp
private boolean standAloneApp
otherAttributesModel
private OtherAttributesModel otherAttributesModel
movesModel
private MovesModel movesModel
currentRecord
ShogiRecord currentRecord
dialogPane
private javax.swing.JPanel dialogPane
psnNavigationPanel
private javax.swing.JPanel psnNavigationPanel
scrollPane3
private javax.swing.JScrollPane scrollPane3
recordsTable
private javax.swing.JTable recordsTable
contentPanel
private javax.swing.JPanel contentPanel
commonAttributesPanel
private javax.swing.JPanel commonAttributesPanel
eventTF
private javax.swing.JTextField eventTF
label1
private javax.swing.JLabel label1
label2
private javax.swing.JLabel label2
venueTF
private javax.swing.JTextField venueTF
goteTF
private javax.swing.JTextField goteTF
label3
private javax.swing.JLabel label3
senteTF
private javax.swing.JTextField senteTF
label4
private javax.swing.JLabel label4
senteRankCB
private javax.swing.JComboBox senteRankCB
goteRankCB
private javax.swing.JComboBox goteRankCB
label5
private javax.swing.JLabel label5
label6
private javax.swing.JLabel label6
resultTF
private javax.swing.JTextField resultTF
handicapCB
private javax.swing.JComboBox handicapCB
label7
private javax.swing.JLabel label7
josekiTF
private javax.swing.JTextField josekiTF
label8
private javax.swing.JLabel label8
roundTF
private javax.swing.JTextField roundTF
label9
private javax.swing.JLabel label9
dateTF
private javax.swing.JTextField dateTF
scrollPane2
private javax.swing.JScrollPane scrollPane2
otherAttributesTable
private javax.swing.JTable otherAttributesTable
label11
private javax.swing.JLabel label11
label17
private javax.swing.JLabel label17
scrollPane5
private javax.swing.JScrollPane scrollPane5
matchSummary
private javax.swing.JTextArea matchSummary
otherAttributesPanel
private javax.swing.JPanel otherAttributesPanel
scrollPane1
private javax.swing.JScrollPane scrollPane1
movesTable
private javax.swing.JTable movesTable
label10
private javax.swing.JLabel label10
scrollPane4
private javax.swing.JScrollPane scrollPane4
moveCommentTA
private javax.swing.JTextArea moveCommentTA
label12
private javax.swing.JLabel label12
previewPanel
private javax.swing.JPanel previewPanel
buttonBar
private javax.swing.JPanel buttonBar
useRecordButton
private javax.swing.JButton useRecordButton
label13
private javax.swing.JLabel label13
loadKifButton
private javax.swing.JButton loadKifButton
saveKifButton
private javax.swing.JButton saveKifButton
label14
private javax.swing.JLabel label14
loadPsnButton
private javax.swing.JButton loadPsnButton
savePsnButton
private javax.swing.JButton savePsnButton
label15
private javax.swing.JLabel label15
previousRecordButton
private javax.swing.JButton previousRecordButton
nextRecordButton
private javax.swing.JButton nextRecordButton
label16
private javax.swing.JLabel label16
quitButton
private javax.swing.JButton quitButton
RecordsFrame
public RecordsFrame()
addShogiRecordListener
public static void addShogiRecordListener(ShogiRecordListener srl)
getRecordFromFile
public void getRecordFromFile()
- Integration tool. Allows this demo app to be integrated into another application
as a shogi record loader.
moveSelectionChanged
private void moveSelectionChanged(int newIndex)
- Move changed, update board view and comments view.
- Parameters:
newIndex -
psnSelectionChanged
private void psnSelectionChanged(int newIndex)
- Changes in selected record result in changes in all other field and tables. That all happens here.
- Parameters:
newIndex - currently selected record in the table has the same index as the record in the ArrayList
setSelectionIgnoreCase
private void setSelectionIgnoreCase(javax.swing.JComboBox jcb,
java.lang.String selection)
- Case insensitive way to set selection.
- Parameters:
jcb -
loadPsnButtonActionPerformed
private void loadPsnButtonActionPerformed(java.awt.event.ActionEvent e)
- Returns the event thread and then goes about the long process of loading records.
- Parameters:
e -
clearFrame
private void clearFrame()
savePsnButtonActionPerformed
private void savePsnButtonActionPerformed(java.awt.event.ActionEvent e)
previousRecordButtonActionPerformed
private void previousRecordButtonActionPerformed(java.awt.event.ActionEvent e)
nextRecordButtonActionPerformed
private void nextRecordButtonActionPerformed(java.awt.event.ActionEvent e)
quitButtonActionPerformed
private void quitButtonActionPerformed(java.awt.event.ActionEvent e)
getRecordsTable
public javax.swing.JTable getRecordsTable()
getEventTF
public javax.swing.JTextField getEventTF()
getVenueTF
public javax.swing.JTextField getVenueTF()
getGoteTF
public javax.swing.JTextField getGoteTF()
getSenteTF
public javax.swing.JTextField getSenteTF()
getSenteRankCB
public javax.swing.JComboBox getSenteRankCB()
getGoteRankCB
public javax.swing.JComboBox getGoteRankCB()
getResultTF
public javax.swing.JTextField getResultTF()
getHandicapCB
public javax.swing.JComboBox getHandicapCB()
getJosekiTF
public javax.swing.JTextField getJosekiTF()
getRoundTF
public javax.swing.JTextField getRoundTF()
getDateTF
public javax.swing.JTextField getDateTF()
getMoveCommentTA
public javax.swing.JTextArea getMoveCommentTA()
getMovesTable
public javax.swing.JTable getMovesTable()
getOtherAttributesTable
public javax.swing.JTable getOtherAttributesTable()
getSavePsnButton
public javax.swing.JButton getSavePsnButton()
getPreviousRecordButton
public javax.swing.JButton getPreviousRecordButton()
getNextRecordButton
public javax.swing.JButton getNextRecordButton()
useRecordButtonActionPerformed
private void useRecordButtonActionPerformed(java.awt.event.ActionEvent e)
loadKifButtonActionPerformed
private void loadKifButtonActionPerformed(java.awt.event.ActionEvent e)
saveKifButtonActionPerformed
private void saveKifButtonActionPerformed(java.awt.event.ActionEvent e)
getUseRecordButton
public javax.swing.JButton getUseRecordButton()
getLoadKifButton
public javax.swing.JButton getLoadKifButton()
getSaveKifButton
public javax.swing.JButton getSaveKifButton()
getMatchSummary
public javax.swing.JTextArea getMatchSummary()
matchSummaryFocusLost
private void matchSummaryFocusLost(java.awt.event.FocusEvent e)
moveCommentTAFocusLost
private void moveCommentTAFocusLost(java.awt.event.FocusEvent e)
getLoadPsnButton
public javax.swing.JButton getLoadPsnButton()
initComponents
private void initComponents()