Class ServerAnwahlMgr

  • All Implemented Interfaces:
    IRegisterForCaption

    public final class ServerAnwahlMgr
    extends java.lang.Object
    implements IRegisterForCaption
    Management of Serveranwahl und der OpModeKonfigurationen. Bei Wechsel der Serveranwahl wird der OpModeMgr auf die alte opModeKonfiguration zurueckgesetzt.
    • Method Detail

      • setServerAnwahl

        public final void setServerAnwahl​(ServerAnwahl anwahl)
        Parameters:
        anwahl - gewuenschte ServerAnwahl (!= null, muss implementiert sein)
        Throws:
        java.lang.IllegalArgumentException - gewuenschte ServerAnwahl ist nicht implementiert
        java.lang.NullPointerException - gewuenschte ServerAnwahl == null
      • hatAnwahlImplementiert

        public boolean hatAnwahlImplementiert​(ServerAnwahl anwahl)
      • hatAnwahlImplementiert

        public boolean hatAnwahlImplementiert​(int index)
      • initAndRegisterServerAnwahlMenu

        public final void initAndRegisterServerAnwahlMenu​(javax.swing.JMenu jMenuOptions,
                                                          int i,
                                                          IServerAnwahlObserver anwahlObserver)
        Parameters:
        jMenuOptions - Hier werden die Untermenues drangehaengt
        anwahlObserver - werden bei ServerAnwahlAenderung oder oefter aufgerufen
        Throws:
        java.lang.NullPointerException - theOptionMenu darf nicht null sein
        java.lang.IllegalStateException - darf nur genau einmal aufgerufen werden, menuIndex must be legal
      • setImplAnwahlen

        public final void setImplAnwahlen​(ServerAnwahlListe implAnwahlen)
        Parameters:
        implAnwahlen - ServerAnwahlListe mit implementierten ServerAnwahlen, != null, ServerAnwahlListe.EMPTY_LISTE
        Throws:
        java.lang.NullPointerException - falls implAnwahlen == null
        java.lang.IllegalArgumentException - falls implAnwahlen == ServerAnwahlListe.EMPTY_LISTE
      • setImplOpModes

        public void setImplOpModes​(OpModeListe opModeListe)
        Parameters:
        opModeListe - OpModeListe mit implementierten OpModes, != null, OpModeListe
        Throws:
        java.lang.NullPointerException - falls opModeListe == null
        java.lang.IllegalArgumentException - falls opModeListe == EMPTY_LISTE, oder nicht Passwortfrei erreichbar
      • registerForServerAnwahlColor

        public void registerForServerAnwahlColor​(javax.swing.JComponent component)
      • deregisterForServerAnwahlColor

        public void deregisterForServerAnwahlColor​(javax.swing.JComponent component)
      • registerAnwahlObserver

        public boolean registerAnwahlObserver​(IServerAnwahlObserver anwahlObserver)
      • deregisterAnwahlObserver

        public boolean deregisterAnwahlObserver​(IServerAnwahlObserver anwahlObserver)