/** Displays LoginScreen */ private void displayLogin() { // true back.setVisible(true); Login.setVisible(true); Login2.setVisible(true); SmallInput.setVisible(true); SmallInput2.setVisible(true); SmallInput3.setVisible(true); SmallInput4.setVisible(true); SmallInput5.setVisible(true); CreateNewAccount.setVisible(true); Create.setVisible(true); username.setVisible(true); password.setVisible(true); newUsername.setVisible(true); newPassword.setVisible(true); verifyPassword.setVisible(true); loginCreate.setVisible(true); loginCreate.setOpaque(false); // false serversError.setVisible(false); Credits.setVisible(false); NetworkMode.setVisible(false); Online.setVisible(false); Lan.setVisible(false); Servers.setVisible(false); BigInput2.setVisible(false); LongInput.setVisible(false); LongInput2.setVisible(false); Join.setVisible(false); Create2.setVisible(false); returnToMain.setVisible(false); ip.setVisible(false); serverName.setVisible(false); }
/** Displays Network screen. */ private void displayNetworkMode() { // true NetworkMode.setVisible(true); Online.setVisible(true); Lan.setVisible(true); back.setVisible(true); // false loginCreate.setVisible(false); PlayerVsComp.setVisible(false); PlayerVsPlayer.setVisible(false); TwoPlayerVsTwoPlayer.setVisible(false); Credits.setVisible(false); Login.setVisible(false); Login2.setVisible(false); SmallInput.setVisible(false); SmallInput2.setVisible(false); SmallInput3.setVisible(false); SmallInput4.setVisible(false); SmallInput5.setVisible(false); CreateNewAccount.setVisible(false); Create.setVisible(false); username.setVisible(false); password.setVisible(false); newUsername.setVisible(false); newPassword.setVisible(false); verifyPassword.setVisible(false); }
/** Displays New game Screen */ private void displayNewGame() { // true PlayerVsComp.setVisible(true); PlayerVsPlayer.setVisible(true); TwoPlayerVsTwoPlayer.setVisible(true); back.setVisible(true); // false gameErrors.setVisible(false); StarshipBattleTextStart.setVisible(false); BackgroundShip1.setVisible(false); BackgroundShip2.setVisible(false); NewgameText.setVisible(false); InstructionsSmallText.setVisible(false); HighscoreText.setVisible(false); ExitGameText.setVisible(false); Difficulty.setVisible(false); Easy.setVisible(false); Medium.setVisible(false); Hard.setVisible(false); NetworkMode.setVisible(false); Online.setVisible(false); Lan.setVisible(false); }
/** * The Docker networking mode to use for the containers in the task. The valid values are <code> * none</code>, <code>bridge</code>, and <code>host</code>. * * <p>If the network mode is <code>none</code>, the containers do not have external connectivity. * The default Docker network mode is <code>bridge</code>. The <code>host</code> network mode * offers the highest networking performance for containers because it uses the host network stack * instead of the virtualized network stack provided by the <code>bridge</code> mode. * * <p>For more information, see <a * href="https://docs.docker.com/engine/reference/run/#network-settings" >Network settings</a> in * the <i>Docker run reference</i>. * * @param networkMode The Docker networking mode to use for the containers in the task. The valid * values are <code>none</code>, <code>bridge</code>, and <code>host</code>. * <p>If the network mode is <code>none</code>, the containers do not have external * connectivity. The default Docker network mode is <code>bridge</code>. The <code>host</code> * network mode offers the highest networking performance for containers because it uses the * host network stack instead of the virtualized network stack provided by the <code>bridge * </code> mode. * <p>For more information, see <a href= * "https://docs.docker.com/engine/reference/run/#network-settings" >Network settings</a> in * the <i>Docker run reference</i>. * @see NetworkMode */ public void setNetworkMode(NetworkMode networkMode) { this.networkMode = networkMode.toString(); }