|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.miami.romeo.main.Romeo
Title: Romeo
Description: This is a Java frontend for M.A.M.E.. The mame ports supported by this application are XMame and the Windows command line. XMame is the Unix/X11 port of the mame project. This port makes mame available on *ix machines using the X11R6 X-Window System (and SVGAlib/ggi/XF86-DGA/OpenGL/SDL too).
Copyright: Copyright (c) 2002-2003 by Stefano Bolli. All Rights Reserved.
Company:
Created 2002/11/24
Nested Class Summary | |
protected class |
Romeo.ToggleButtonToolBar
This class extends JToolBar to create toggle buttons. |
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 | |
Games |
games
|
protected javax.help.HelpBroker |
helpBroker
|
protected javax.help.HelpSet |
helpSet
|
Info |
info
|
Options |
options
|
javax.swing.JProgressBar |
progressBar
|
javax.swing.JPanel |
statusbarPanel
|
javax.swing.JTextField |
statusField
|
javax.swing.JTextField |
statusField2
|
javax.swing.JTextField |
statusField3
|
javax.swing.JTextField |
statusField4
|
javax.swing.JPanel |
statusPanel
|
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 java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
Romeo()
The constructor initializes all components and shows the proggy. |
Method Summary | |
protected void |
addContextHelp()
This method adds the context sensitive help. |
void |
checkNewRelease()
This method verifies if a new version of Romeo has been released. |
javax.swing.JMenuItem |
createCheckBoxMenuItem(javax.swing.JMenu menu,
java.lang.String label,
java.lang.String mnemonic,
java.lang.String accessibleDescription,
boolean selected,
javax.swing.Action action)
This method creates a generic JCheckBoxMenuItem. |
javax.swing.JFrame |
createFrame()
This method creates a frame for Romeo to reside in. |
protected void |
createHelp()
This method creates the help system. |
javax.swing.JMenuItem |
createLafMenuItem(javax.swing.JMenu menu,
java.lang.String label,
java.lang.String mnemonic,
java.lang.String accessibleDescription,
java.lang.String laf)
This method creates a JRadioButtonMenuItem for the Look and Feel menu. |
javax.swing.JMenuItem |
createLinkMenuItem(javax.swing.JMenu menu,
java.lang.String label,
java.lang.String address)
This method creates a generic JMenuItem to list internet links. |
javax.swing.JMenuItem |
createMenuItem(javax.swing.JMenu menu,
java.lang.String label,
java.lang.String mnemonic,
java.lang.String accessibleDescription,
java.lang.String filename,
javax.swing.Action action)
This method creates a generic JMenuItem. |
javax.swing.JMenuBar |
createMenus()
This method creates and returns all menus. |
javax.swing.JPanel |
createStatusBar()
This method creates the status bar. |
javax.swing.JMenuItem |
createThemesMenuItem(javax.swing.JMenu menu,
java.lang.String label,
java.lang.String mnemonic,
java.lang.String accessibleDescription,
javax.swing.plaf.metal.DefaultMetalTheme theme)
This method creates a JRadioButtonMenuItem for the Themes menu. |
void |
createToggleButtons()
This method creates JToggleButtons for the first tool bar. |
void |
createToggleButtons2()
This method creates a JToggleButton and some other components for the second tool bar. |
boolean |
dispatchKeyEvent(java.awt.event.KeyEvent e)
This method is called by the current KeyboardFocusManager requesting that this KeyEventDispatcher dispatch the specified event on its behalf. |
boolean |
gamesTabIsSelected()
This method returns true if the first tab of the JtabbedPane is selected, false otherwise. |
java.awt.Container |
getContentPane()
This method returns the content pane. |
static javax.swing.JFrame |
getFrame()
This method returns the frame instance. |
javax.swing.JMenuBar |
getJMenuBar()
This method returns the menubar. |
javax.swing.JTabbedPane |
getTabbedPane()
This method returns the tabbed pane. |
Romeo.ToggleButtonToolBar |
getToolBar()
This method returns the tool bar. |
Romeo.ToggleButtonToolBar |
getToolBar2()
This method returns the second tool bar. |
javax.swing.ButtonGroup |
getToolBarGroup()
This method returns the tool bar button group. |
javax.swing.ButtonGroup |
getToolBarGroup2()
This method returns the second tool bar button group. |
void |
initializeRomeo()
This method initializes all components. |
protected boolean |
isAvailableLookAndFeel(java.lang.String laf)
An utility function that layers on top of the LookAndFeel's isSupportedLookAndFeel() method. |
static void |
main(java.lang.String[] args)
Romeo main. |
void |
printInfo()
This method prints a few human readable informations about Romeo. |
protected void |
saveComponents()
Before the J2SE 1.4 release, all Swing components have included the advisory that "A future release of Swing will provide support for long term persistence." |
void |
search(java.lang.String keyword)
This method searchs for a description or name in the list of games. |
boolean |
searchFieldHasFocus(javax.swing.JTextField m_editor)
This method returns true if the search field has focus, false otherwise. |
void |
setLocked(boolean locked,
java.awt.Container c)
This method locks/unlocks all container' s components. |
void |
setLookAndFeel(java.lang.String laf)
This method stores the current L&F, and calls updateLookAndFeel(). |
void |
setSkinTheme(java.lang.String skin)
This method sets the skin. |
void |
setStartupSkin()
This method loads a skin on startup. |
void |
setStatusFieldMessage()
This method tells the user to press key F3 to highlight results found by void search(). |
void |
showRomeo()
This method brings up Romeo by showing the frame. |
void |
showSplash()
This method creates and shows the splash screen. |
void |
updateLookAndFeel()
This method sets the current L&F on each frame. |
void |
updateSkinTheme(java.lang.String newSkin,
boolean useSkin)
This method loads/unloads a skin. |
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, setEnabled, 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 |
Field Detail |
public javax.swing.JTextField statusField
public javax.swing.JTextField statusField2
public javax.swing.JTextField statusField3
public javax.swing.JTextField statusField4
public javax.swing.JProgressBar progressBar
public javax.swing.JPanel statusPanel
public javax.swing.JPanel statusbarPanel
public Games games
public Info info
public Options options
protected javax.help.HelpSet helpSet
protected javax.help.HelpBroker helpBroker
Constructor Detail |
public Romeo()
printInfo()
,
createFrame()
,
initializeRomeo()
,
showSplash()
,
showRomeo()
,
Games.initGames()
,
checkNewRelease()
Method Detail |
public static void main(java.lang.String[] args)
args
- The command line argumentspublic void printInfo()
public void showSplash()
public void initializeRomeo()
createHelp()
,
createMenus()
,
createToggleButtons()
,
createToggleButtons2()
,
createStatusBar()
,
addContextHelp()
protected void createHelp()
public javax.swing.JMenuBar createMenus()
createMenuItem(JMenu, String, String, String, String, Action)
,
createCheckBoxMenuItem(JMenu, String, String, String, boolean, Action)
,
createLafMenuItem(JMenu, String, String, String, String)
,
createThemesMenuItem(JMenu, String, String, String, DefaultMetalTheme)
,
createLinkMenuItem(JMenu, String, String)
public javax.swing.JMenuItem createMenuItem(javax.swing.JMenu menu, java.lang.String label, java.lang.String mnemonic, java.lang.String accessibleDescription, java.lang.String filename, javax.swing.Action action)
menu
- The menu to add the menu item tolabel
- The menu item' s textmnemonic
- The keyboard mnemonic on the current componentaccessibleDescription
- The accessible description of this objectfilename
- The icon this component will displayaction
- The Action for the ActionEvent source
JMenuItem
for the menupublic javax.swing.JMenuItem createCheckBoxMenuItem(javax.swing.JMenu menu, java.lang.String label, java.lang.String mnemonic, java.lang.String accessibleDescription, boolean selected, javax.swing.Action action)
menu
- The menu to add the JCheckBoxMenuItem tolabel
- The components' s textmnemonic
- The keyboard mnemonic on the current componentaccessibleDescription
- The accessible description of this objectselected
- True if the component is selected, false otherwiseaction
- The Action for the ActionEvent source
JCheckBoxMenuItem
for the menupublic javax.swing.JMenuItem createLafMenuItem(javax.swing.JMenu menu, java.lang.String label, java.lang.String mnemonic, java.lang.String accessibleDescription, java.lang.String laf)
menu
- The menu to add the JRadioButtonMenuItem tolabel
- The components' s textmnemonic
- The keyboard mnemonic on the current componentaccessibleDescription
- The accessible description of this objectlaf
- The look and feel
JRadioButtonMenuItem
for the LnF menupublic javax.swing.JMenuItem createThemesMenuItem(javax.swing.JMenu menu, java.lang.String label, java.lang.String mnemonic, java.lang.String accessibleDescription, javax.swing.plaf.metal.DefaultMetalTheme theme)
menu
- The menu to add the JRadioButtonMenuItem tolabel
- The components' s textmnemonic
- The keyboard mnemonic on the current componentaccessibleDescription
- The accessible description of this objecttheme
- The theme to load
JRadioButtonMenuItem
for the Themes menupublic javax.swing.JMenuItem createLinkMenuItem(javax.swing.JMenu menu, java.lang.String label, java.lang.String address)
menu
- The menu to add the JMenuItem tolabel
- The components' s textaddress
- The internet address of the link
JMenuItem
for the Links menupublic void createToggleButtons()
public void createToggleButtons2()
public javax.swing.JPanel createStatusBar()
JPanel
public void showRomeo()
setStartupSkin()
public void setStartupSkin()
setSkinTheme(String)
public void updateSkinTheme(java.lang.String newSkin, boolean useSkin)
newSkin
- The path to the new skin to loaduseSkin
- True if a skin has to be loaded, false if the
the skin has to be unloadedupdateLookAndFeel()
public void setSkinTheme(java.lang.String skin)
skin
- The skin to loadprotected boolean isAvailableLookAndFeel(java.lang.String laf)
laf
- The look and feel
True
if the LookAndFeel is supported;
false
otherwise.public void setLookAndFeel(java.lang.String laf)
laf
- The LnFupdateLookAndFeel()
public void updateLookAndFeel()
public static javax.swing.JFrame getFrame()
JFrame
public javax.swing.JMenuBar getJMenuBar()
JMenuBar
public Romeo.ToggleButtonToolBar getToolBar()
ToggleButtonToolBar
public javax.swing.ButtonGroup getToolBarGroup()
ButtonGroup
public Romeo.ToggleButtonToolBar getToolBar2()
ToggleButtonToolBar
public javax.swing.ButtonGroup getToolBarGroup2()
ButtonGroup
public javax.swing.JTabbedPane getTabbedPane()
JTabbedPane
public java.awt.Container getContentPane()
Container
public javax.swing.JFrame createFrame()
public void setLocked(boolean locked, java.awt.Container c)
locked
- If true
unlocks all components;
else locks them.c
- The container containing the components to lock/unlockpublic boolean dispatchKeyEvent(java.awt.event.KeyEvent e)
dispatchKeyEvent
in interface java.awt.KeyEventDispatcher
e
- The KeyEvent to dispatch
true
if the key event has been consumed by
this method and false
if it has not.Games.highlightRow(JTable, int, int)
,
search(String)
public boolean gamesTabIsSelected()
True
if the first tab of the JtabbedPane
is selected, false
otherwise.public boolean searchFieldHasFocus(javax.swing.JTextField m_editor)
m_editor
- The combo box' s editor
True
if the search field has focus,
false
otherwise.protected void addContextHelp()
public void checkNewRelease()
public void search(java.lang.String keyword)
keyword
- The keyword to searchpublic void setStatusFieldMessage()
search(String)
protected void saveComponents() throws java.lang.Exception
Exception
- DOCUMENT ME!
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |