Package org.astrogrid.samp.client

Examples of org.astrogrid.samp.client.HubConnection


     *
     * @param  message   {@link org.astrogrid.samp.Message}-like map
     * @throws org.astrogrid.samp.client.SampException on error
     */
    public void notify( Map message ) throws SampException {
        HubConnection connection = connector_.getConnection();
        if ( connection != null ) {
            Client client = comboBoxModel_.getClient();
            if ( client == null ) {
                connection.notifyAll( message );
            }
            else {
                connection.notify( client.getId(), message );
            }
        }
    }
View Full Code Here


     *
     * @param  message   {@link org.astrogrid.samp.Message}-like map
     * @throws org.astrogrid.samp.client.SampException on error
     */
    public void call( Map message ) throws SampException {
        HubConnection connection = connector_.getConnection();
        if ( connection != null ) {
            Client client = comboBoxModel_.getClient();
            if ( client == null ) {
                connection.callAll( getTag(), message );
            }
            else {
                connection.call( client.getId(), getTag(), message );
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.astrogrid.samp.client.HubConnection

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.