// Path: ddp-client/src/main/java/io/advantageous/ddp/repository/MeteorCollectionRepository.java
// public interface MeteorCollectionRepository {
//     void delete(String collectionName,
//                 String docId) throws IOException;
// 
//     void delete(String collectionName,
//                 String docId,
//                 RPCClient.SuccessHandler<Object> onSuccess,
//                 RPCClient.FailureHandler onFailure) throws IOException;
// 
//     void insert(String collectionName,
//                 Map<String, Object> insertParams,
//                 RPCClient.SuccessHandler<Object> onSuccess,
//                 RPCClient.FailureHandler onFailure) throws IOException;
// 
//     void update(String collectionName, String docId,
//                 Map<String, Object> updateParams,
//                 RPCClient.SuccessHandler<Object> onSuccess,
//                 RPCClient.FailureHandler onFailure) throws IOException;
// }


import java.net.URL;
import java.util.HashMap;
import java.util.Map;
import java.util.ResourceBundle;
import com.google.common.eventbus.EventBus;
import com.google.common.eventbus.Subscribe;
import io.advantageous.ddp.repository.MeteorCollectionRepository;
import javafx.application.Platform;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.VBox;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.inject.Inject;
import javax.inject.Singleton;
import java.io.IOException;
/*
 * Copyright (C) 2014. Geoffrey Chandler.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.advantageous.ddp.example;



@Singleton
@Presents("MainView.fxml")
public class MainViewController implements Initializable {

    private static final Logger LOGGER = LoggerFactory.getLogger(MainViewController.class);

    @FXML
    private VBox scrollingVBox;

    @FXML
    private AnchorPane root;

    @Inject
    private EventBus eventBus;

    @Inject
// Path: ddp-client/src/main/java/io/advantageous/ddp/repository/MeteorCollectionRepository.java
// public interface MeteorCollectionRepository {
//     void delete(String collectionName,
//                 String docId) throws IOException;
// 
//     void delete(String collectionName,
//                 String docId,
//                 RPCClient.SuccessHandler<Object> onSuccess,
//                 RPCClient.FailureHandler onFailure) throws IOException;
// 
//     void insert(String collectionName,
//                 Map<String, Object> insertParams,
//                 RPCClient.SuccessHandler<Object> onSuccess,
//                 RPCClient.FailureHandler onFailure) throws IOException;
// 
//     void update(String collectionName, String docId,
//                 Map<String, Object> updateParams,
//                 RPCClient.SuccessHandler<Object> onSuccess,
//                 RPCClient.FailureHandler onFailure) throws IOException;
// }


// Path: examples/java-fx/src/main/java/io/advantageous/ddp/example/MainViewController.java
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
import java.util.ResourceBundle;
import com.google.common.eventbus.EventBus;
import com.google.common.eventbus.Subscribe;
import io.advantageous.ddp.repository.MeteorCollectionRepository;
import javafx.application.Platform;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.VBox;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.inject.Inject;
import javax.inject.Singleton;
import java.io.IOException;

/*
 * Copyright (C) 2014. Geoffrey Chandler.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.advantageous.ddp.example;



@Singleton
@Presents("MainView.fxml")
public class MainViewController implements Initializable {

    private static final Logger LOGGER = LoggerFactory.getLogger(MainViewController.class);

    @FXML
    private VBox scrollingVBox;

    @FXML
    private AnchorPane root;

    @Inject
    private EventBus eventBus;

    @Inject
    private MeteorCollectionRepository meteorCollectionRepository;