public enum Beep extends Enum<Beep>
The parameter takes one or several parameters listed below, separated by ':'.
*
MSGBOX
INVALID
MOUSE
HOST
HOST_ERR
TERMINAL
SERVER
Enum Constant and Description |
---|
HOST
Host induced 3270/5250 terminal alarm.
|
HOST_ERR
Alarm for server error in 3270/5250 terminal.
|
INVALID
Beep for general invalid operations.
|
MOUSE
Beep for invalid mouse operation such as click, drag, etc.
|
MSGBOX
Beep when message box is shown with non-question types.
|
SERVER
Server-side API induced beep (REXX, Java or System).
|
TERMINAL
Beep for invalid 3270/5250 terminal operations.
|
Modifier and Type | Method and Description |
---|---|
void |
enable(boolean on)
Enables or disables the beep.
|
boolean |
isEnabled()
Verifies if the beep is enabled.
|
static void |
parse(String spec)
Parses the command line option parameter NOBEEP, after the string
NOBEEP: . |
void |
play()
Plays the beep, perhaps disabled using command line options, using the default
Toolkit . |
void |
play(Component component)
Plays the beep, perhaps disabled using command line options.
|
static Beep |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Beep[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Beep MSGBOX
public static final Beep INVALID
public static final Beep MOUSE
public static final Beep HOST
public static final Beep HOST_ERR
public static final Beep TERMINAL
public static final Beep SERVER
public static Beep[] values()
for (Beep c : Beep.values()) System.out.println(c);
public static Beep valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic void play()
Toolkit
.public void play(Component component)
component
- The component, or null
to use the default Toolkit
.public void enable(boolean on)
on
- Flag for beep enabled if true
, disabled when false
.public boolean isEnabled()
true
if the beep is enabled, false
if disabled.public static void parse(String spec)
NOBEEP:
.
The console will print the disabled and enabled beeps.spec
- The parameters for NOBEEP option separated by ':'.Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.