Package name.shamansir.mvp4glayout.client.ui

Examples of name.shamansir.mvp4glayout.client.ui.Pluggable.changeState()


            PlugsContainer container = layout.getPluggable(where).getContainer();
            if (!(container instanceof HasStatesPanels)) throw new IllegalStateException("Container " + container + " at place " + where + " does not implements HasStatesPanels, so it can not change states");
            HasStatesPanels panels = (HasStatesPanels)container;
            // TODO: check if it is already in this state
            Pluggable plug = panels.getViewFor(state);
            plug.changeState(state);
            layout.plug(where, plug);
        }
    }
   
    public void plug(Place where, Pluggable what) {
View Full Code Here


    }
   
    public void plugState(Place where, State state) {
        if (view.hasViewFor(state)) {
            Pluggable plug = view.getViewFor(state);
            plug.changeState(state);
            eventBus.plug(where, plug);
        } else {
            Log.warn("No view regitstered for state " + state +
                     " to place it to " + where);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.