public final class ServerAnwahlMgr extends java.lang.Object implements IRegisterForCaption
Constructor and Description |
---|
ServerAnwahlMgr(IOpModeKonfigurationObserver observer,
OpModeKonfiguration defaultModeKonfiguration) |
Modifier and Type | Method and Description |
---|---|
boolean |
deregisterAnwahlObserver(IServerAnwahlObserver anwahlObserver) |
void |
deregisterForCaption(java.lang.Object object) |
void |
deregisterForServerAnwahlColor(javax.swing.JComponent component) |
ServerAnwahl |
getAnwahl() |
ServerAnwahlListe |
getImplAnwahlen() |
boolean |
hatAnwahlImplementiert(int index) |
boolean |
hatAnwahlImplementiert(ServerAnwahl anwahl) |
void |
initAndRegisterServerAnwahlMenu(javax.swing.JMenu jMenuOptions,
int i,
IServerAnwahlObserver anwahlObserver) |
boolean |
registerAnwahlObserver(IServerAnwahlObserver anwahlObserver) |
void |
registerForCaption(javax.swing.AbstractButton menuItemOrButtonOrEtc) |
void |
registerForCaption(javax.swing.JLabel label) |
void |
registerForServerAnwahlColor(javax.swing.JComponent component) |
void |
setImplAnwahlen(ServerAnwahlListe implAnwahlen) |
void |
setImplOpModes(OpModeListe opModeListe) |
void |
setServerAnwahl(ServerAnwahl anwahl) |
public ServerAnwahlMgr(IOpModeKonfigurationObserver observer, OpModeKonfiguration defaultModeKonfiguration)
observer
- != nulldefaultModeKonfiguration
- != nullNullPointerException,
- falls observer oder konfiguration == nullpublic final ServerAnwahl getAnwahl()
public final void setServerAnwahl(ServerAnwahl anwahl)
anwahl
- gewuenschte ServerAnwahl (!= null, muss implementiert sein)java.lang.IllegalArgumentException
- gewuenschte ServerAnwahl ist nicht implementiertjava.lang.NullPointerException
- gewuenschte ServerAnwahl == nullpublic boolean hatAnwahlImplementiert(ServerAnwahl anwahl)
public boolean hatAnwahlImplementiert(int index)
public final void initAndRegisterServerAnwahlMenu(javax.swing.JMenu jMenuOptions, int i, IServerAnwahlObserver anwahlObserver)
jMenuOptions
- Hier werden die Untermenues drangehaengtanwahlObserver
- werden bei ServerAnwahlAenderung oder oefter aufgerufenjava.lang.NullPointerException
- theOptionMenu darf nicht null seinjava.lang.IllegalStateException
- darf nur genau einmal aufgerufen werden, menuIndex must be legalpublic final void registerForCaption(javax.swing.AbstractButton menuItemOrButtonOrEtc)
registerForCaption
in interface IRegisterForCaption
public final void registerForCaption(javax.swing.JLabel label)
registerForCaption
in interface IRegisterForCaption
public final void deregisterForCaption(java.lang.Object object)
deregisterForCaption
in interface IRegisterForCaption
public final ServerAnwahlListe getImplAnwahlen()
public final void setImplAnwahlen(ServerAnwahlListe implAnwahlen)
implAnwahlen
- ServerAnwahlListe mit implementierten ServerAnwahlen,
!= null, ServerAnwahlListe.EMPTY_LISTEjava.lang.NullPointerException
- falls implAnwahlen == nulljava.lang.IllegalArgumentException
- falls implAnwahlen == ServerAnwahlListe.EMPTY_LISTEpublic void setImplOpModes(OpModeListe opModeListe)
opModeListe
- OpModeListe mit implementierten OpModes,
!= null, OpModeListejava.lang.NullPointerException
- falls opModeListe == nulljava.lang.IllegalArgumentException
- falls opModeListe == EMPTY_LISTE, oder nicht Passwortfrei erreichbarpublic void registerForServerAnwahlColor(javax.swing.JComponent component)
public void deregisterForServerAnwahlColor(javax.swing.JComponent component)
public boolean registerAnwahlObserver(IServerAnwahlObserver anwahlObserver)
public boolean deregisterAnwahlObserver(IServerAnwahlObserver anwahlObserver)
13-September-2017 07:50 Deutsches Elektronen-Synchrotron DESY in der Helmholtz-Gemeinschaft