Package be.gaudry.swing.brolmeter.menu
Enum Class BrolMetersMenuBar.ECards
- All Implemented Interfaces:
IBrolCard
,Serializable
,Comparable<BrolMetersMenuBar.ECards>
,Constable
- Enclosing class:
- BrolMetersMenuBar
public static enum BrolMetersMenuBar.ECards
extends Enum<BrolMetersMenuBar.ECards>
implements IBrolCard
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe general contract ofgetPanelTitle()
is providing a user readable title of the panel binded to theenum
, to display it in thestatus bar
.boolean
Most implementations will return false, but if the panel is the default panel it is not appropriate to show it in the panels that the user can delete, against this must still be present in the panels to be displayed if there is more than one opened panel.void
updateLanguage(ResourceBundle languageResourceBundle)
static BrolMetersMenuBar.ECards
Returns the enum constant of this class with the specified name.static BrolMetersMenuBar.ECards[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
METERS_LIST
-
METERS_DIFF
-
VEH_DIFF
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getPanelTitle
Description copied from interface:IBrolCard
The general contract ofgetPanelTitle()
is providing a user readable title of the panel binded to theenum
, to display it in thestatus bar
.- Specified by:
getPanelTitle
in interfaceIBrolCard
- Returns:
- the Title of the panel
-
updateLanguage
-
isHomePanel
public boolean isHomePanel()Description copied from interface:IBrolCard
Most implementations will return false, but if the panel is the default panel it is not appropriate to show it in the panels that the user can delete, against this must still be present in the panels to be displayed if there is more than one opened panel. If all panels may be removed, the method returns always false- Specified by:
isHomePanel
in interfaceIBrolCard
- Returns:
- false if the panel may be removed from the panel controller.
-