Tabnine Logo
RouteModel.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
slash.navigation.routes.impl.RouteModel
constructor

Best Java code snippets using slash.navigation.routes.impl.RouteModel.<init> (Showing top 3 results out of 315)

origin: cpesch/RouteConverter

public void addRoute(final CategoryTreeNode category, final String description, final File file, final String url, final AddRouteCallback callback) {
  operator.executeOperation(new RouteServiceOperator.Operation() {
    public String getName() {
      return "AddRoute";
    }
    public void run() throws IOException {
      Route route = file != null ? category.getCategory().createRoute(description, file) : category.getCategory().createRoute(description, url);
      final RouteModel routeModel = new RouteModel(category, route);
      callback.setRoute(routeModel);
      invokeLater(new Runnable() {
        public void run() {
          routesTableModel.addRoute(routeModel);
        }
      });
    }
  });
}
origin: cpesch/RouteConverter

public void setCurrentCategory(CategoryTreeNode category) {
  List<Route> routes = category.getRoutes();
  List<RouteModel> routeModels = new ArrayList<>();
  if (routes != null) {
    Route[] routesArray = routes.toArray(new Route[0]);
    sort(routesArray, routeComparator);
    for (Route route : routesArray)
      routeModels.add(new RouteModel(category, route));
  }
  getRoutesTableModel().setRoutes(routeModels);
}
origin: cpesch/RouteConverter

  public void run() throws IOException {
    Route route = file != null ? category.getCategory().createRoute(description, file) : category.getCategory().createRoute(description, url);
    final RouteModel routeModel = new RouteModel(category, route);
    callback.setRoute(routeModel);
    invokeLater(new Runnable() {
      public void run() {
        routesTableModel.addRoute(routeModel);
      }
    });
  }
});
slash.navigation.routes.implRouteModel<init>

Popular methods of RouteModel

  • getCategory
  • getRoute
  • getDescription
  • getName
  • getUrl

Popular in Java

  • Parsing JSON documents to java classes using gson
  • addToBackStack (FragmentTransaction)
  • setContentView (Activity)
  • requestLocationUpdates (LocationManager)
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now