Package apps
Class CheckForUpdateAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.util.swing.JmriAbstractAction
-
- apps.CheckForUpdateAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
public class CheckForUpdateAction extends JmriAbstractAction
Swing action to check for more recent JMRI version. Checks a jmri.org URL for information.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class jmri.util.swing.JmriAbstractAction
context, hint, wi
-
-
Constructor Summary
Constructors Constructor Description CheckForUpdateAction()
CheckForUpdateAction(java.lang.String s, javax.swing.Icon i, WindowInterface wi)
CheckForUpdateAction(java.lang.String s, WindowInterface wi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent ev)
(package private) java.lang.String
getNumber(java.io.BufferedReader reader)
JmriPanel
makePanel()
-
Methods inherited from class jmri.util.swing.JmriAbstractAction
dispose, setContext, setHint, setName, setParameter, setParameter, setWindowInterface, toString
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
CheckForUpdateAction
public CheckForUpdateAction(@Nonnull java.lang.String s, @Nonnull WindowInterface wi)
-
CheckForUpdateAction
public CheckForUpdateAction(@Nonnull java.lang.String s, @Nonnull javax.swing.Icon i, @Nonnull WindowInterface wi)
-
CheckForUpdateAction
public CheckForUpdateAction()
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent ev)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
- Overrides:
actionPerformed
in classJmriAbstractAction
-
getNumber
@Nonnull java.lang.String getNumber(@Nonnull java.io.BufferedReader reader) throws java.io.IOException
- Throws:
java.io.IOException
-
makePanel
public JmriPanel makePanel()
- Specified by:
makePanel
in classJmriAbstractAction
-
-