Package org.terasology.config

Examples of org.terasology.config.ServerInfo


            });
            WidgetUtil.trySubscribe(this, "join", new ActivateEventListener() {
                @Override
                public void onActivated(UIWidget button) {
                    config.save();
                    ServerInfo item = serverList.getSelection();
                    if (item != null) {
                        join(item.getAddress(), item.getPort());
                    }
                }
            });

            Binding<Boolean> hasSelection = new ReadOnlyBinding<Boolean>() {
View Full Code Here


                String address = addressText.getText();
                Integer port = Ints.tryParse(portText.getText());
               
                if (serverInfo == null) {
                    // create new
                    serverInfo = new ServerInfo(name, address, port);
                   
                    config.getNetwork().add(serverInfo);
                } else {
                    // update existing
                    serverInfo.setName(name);
View Full Code Here

TOP

Related Classes of org.terasology.config.ServerInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.