Interface StandardProgramGroupHandle
public interface StandardProgramGroupHandle
Drives the "Standard program group" system screen. The screen has two platform-specific
variants: Windows shows a Start-menu program-group selector with an "install for all users"
toggle, Unix shows a symlink directory chooser.
Reach this handle via ScreenHandle.standardProgramGroup().
-
Method Summary
Modifier and TypeMethodDescriptionassertAllUsers(boolean expected) assertLinkDirectory(File expected) assertProgramGroupName(String expected) The symlink directory typed into the selector (Unix only,nullon Windows).The program-group name typed into the selector (Windows only, empty on Unix).booleanWhether the "install for all users" toggle is selected (Windows only,falseon Unix).booleanState of the enable checkbox ("Create a program group" on Windows, "Create symlinks" on Unix).booleanWhether the screen is rendering the Windows variant.setAllUsers(boolean allUsers) Toggle the "install for all users" checkbox.setLinkDirectory(File directory) Set the symlink directory.setProgramGroupEnabled(boolean enabled) Toggle the enable checkbox.setProgramGroupName(String name) Set the program-group name.
-
Method Details
-
isWindowsVariant
boolean isWindowsVariant()Whether the screen is rendering the Windows variant.falsemeans the Unix variant. -
isProgramGroupEnabled
boolean isProgramGroupEnabled()State of the enable checkbox ("Create a program group" on Windows, "Create symlinks" on Unix). -
setProgramGroupEnabled
Toggle the enable checkbox. -
assertProgramGroupEnabled
-
assertProgramGroupDisabled
-
getProgramGroupName
The program-group name typed into the selector (Windows only, empty on Unix). -
setProgramGroupName
Set the program-group name. No-op on Unix. -
assertProgramGroupName
-
isAllUsers
boolean isAllUsers()Whether the "install for all users" toggle is selected (Windows only,falseon Unix). -
setAllUsers
Toggle the "install for all users" checkbox. No-op on Unix. -
assertAllUsers
-
getLinkDirectory
The symlink directory typed into the selector (Unix only,nullon Windows). -
setLinkDirectory
Set the symlink directory. No-op on Windows. -
assertLinkDirectory
-