de.jreality.ui.viewerapp.actions.view
Class Maximize
java.lang.Object
javax.swing.AbstractAction
de.jreality.ui.viewerapp.actions.AbstractJrAction
de.jreality.ui.viewerapp.actions.view.Maximize
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
public class Maximize
- extends AbstractJrAction
Toggles full screen of the ViewerApp.
There is only one instance of this action.
- Author:
- msommer
- See Also:
- Serialized Form
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
sharedInstance
public static Maximize sharedInstance(String name,
Frame frame)
- Returns a shared instance of this action depending on the specified frame
(i.e. there is a shared instance for each frame).
The action's name is overwritten by the specified name.
- Parameters:
name
- name of the actionframe
- the frame to toggle
- Returns:
- shared instance of ToggleFullScreen with specified name
- Throws:
UnsupportedOperationException
- if frame equals null
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformed
in interface ActionListener
- Specified by:
actionPerformed
in class AbstractJrAction