Package jme3utilities.ui
Class Combo
java.lang.Object
jme3utilities.ui.Combo
Represent a Hotkey combined with positive and/or negative signals. Immutable.
-
Constructor Summary
ConstructorDescriptionInstantiate a Combo with the specified universal code and a single signal.Instantiate a Combo with the specified Hotkey, signal names, and positive flags.Instantiate a Combo with the specified Hotkey and a single signal. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Test for exact equivalence with another Object.int
hashCode()
Generate the hash code for this instance.toString()
Represent this instance as a String, using the US name of the hotkey.Represent this instance as a String, using the local name of the hotkey.
-
Constructor Details
-
Combo
Instantiate a Combo with the specified universal code and a single signal.- Parameters:
universalCode
- the code that will trigger the Combo (≥0)signalName
- the name of the signal to be tested (not null, not empty)positiveFlag
- true→signal required, false→signal prohibited
-
Combo
Instantiate a Combo with the specified Hotkey and a single signal.- Parameters:
hotkey
- the Hotkey that will trigger the Combo (not null)signalName
- the name of the signal to be tested (not null, not empty)positiveFlag
- true→signal required, false→signal prohibited
-
Combo
Instantiate a Combo with the specified Hotkey, signal names, and positive flags.- Parameters:
hotkey
- the Hotkey that will trigger this Combo (not null)names
- the names of all signals to be tested (not null, not empty, no duplicates)flags
- for each signal tested: true→required, false→prohibited (not null)
-
-
Method Details
-
toStringLocal
Represent this instance as a String, using the local name of the hotkey.- Returns:
- a descriptive string of text (not null, not empty)
-
equals
Test for exact equivalence with another Object. -
hashCode
public int hashCode()Generate the hash code for this instance. -
toString
Represent this instance as a String, using the US name of the hotkey.
-