Package org.apache.jmeter.gui.action
Class LookAndFeelCommand
-
- All Implemented Interfaces:
-
org.apache.jmeter.gui.action.Command
@AutoService(value = Command.class) public class LookAndFeelCommand extends AbstractAction
Implements the Look and Feel menu item.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
LookAndFeelCommand.MenuItem
-
Constructor Summary
Constructors Constructor Description LookAndFeelCommand()
-
Method Summary
Modifier and Type Method Description static Collection<LookAndFeelCommand.MenuItem>
getMenuItems()
static String
getJMeterLaf()
Get LookAndFeel classname from the following properties: - User preferences key: "laf"
- jmeter.laf.<os.name> - lowercased; spaces replaced by '_'
- jmeter.laf.<os.family> - lowercased.
- jmeter.laf
- UIManager.getCrossPlatformLookAndFeelClassName()
static String
getPreferredLafCommand()
Returns a command that would activate the preferred LaF. static boolean
isDarklafTheme()
static boolean
isDark()
static void
activateLookAndFeel(String command)
void
doAction(ActionEvent ev)
Set<String>
getActionNames()
-
-
Method Detail
-
getMenuItems
static Collection<LookAndFeelCommand.MenuItem> getMenuItems()
-
getJMeterLaf
@Deprecated() static String getJMeterLaf()
Get LookAndFeel classname from the following properties:
- User preferences key: "laf"
- jmeter.laf.<os.name> - lowercased; spaces replaced by '_'
- jmeter.laf.<os.family> - lowercased.
- jmeter.laf
- UIManager.getCrossPlatformLookAndFeelClassName()
- Returns:
LAF classname
-
getPreferredLafCommand
static String getPreferredLafCommand()
Returns a command that would activate the preferred LaF.
- Returns:
command that would activate the preferred LaF
-
isDarklafTheme
static boolean isDarklafTheme()
-
isDark
static boolean isDark()
-
activateLookAndFeel
static void activateLookAndFeel(String command)
-
doAction
void doAction(ActionEvent ev)
-
getActionNames
Set<String> getActionNames()
-
-
-