Tabnine Logo
RouteModel.getCategory
Code IndexAdd Tabnine to your IDE (free)

How to use
getCategory
method
in
slash.navigation.routes.impl.RouteModel

Best Java code snippets using slash.navigation.routes.impl.RouteModel.getCategory (Showing top 6 results out of 315)

origin: cpesch/RouteConverter

public static List<CategoryTreeNode> asParentsFromRoutes(List<RouteModel> routes) {
  List<CategoryTreeNode> parents = new ArrayList<>(routes.size());
  for (RouteModel routeModel : routes) {
    parents.add(routeModel.getCategory());
  }
  return parents;
}
origin: cpesch/RouteConverter

public boolean equals(Object o) {
  if (this == o) return true;
  if (o == null || getClass() != o.getClass()) return false;
  RouteModel that = (RouteModel) o;
  return Objects.equals(getCategory(), that.getCategory()) &&
      Objects.equals(getRoute(), that.getRoute());
}
origin: cpesch/RouteConverter

  public int hashCode() {
    return Objects.hash(getCategory(), getRoute());
  }
}
origin: cpesch/RouteConverter

  public void run() throws IOException {
    route.getRoute().update(route.getCategory().getCategory(), name);
    invokeLater(new Runnable() {
      public void run() {
        routesTableModel.updateRoute(route);
        if (invokeLaterRunnable != null)
          invokeLaterRunnable.run();
      }
    });
  }
});
origin: cpesch/RouteConverter

public DeleteRoutes(UndoCatalogModel catalogModel, List<RouteModel> routes) {
  this.catalogModel = catalogModel;
  this.routes = routes;
  for (RouteModel route : routes) {
    categories.add(route.getCategory());
    descriptions.add(route.getDescription() != null ? route.getDescription() : route.getName());
    try {
      files.add(route.getRoute().getUrl());
    } catch (IOException e) {
      files.add(null);
    }
    urls.add(route.getRoute().getHref());
  }
}
origin: cpesch/RouteConverter

  public void run() throws IOException {
    for (int i = 0; i < routes.size(); i++) {
      RouteModel route = routes.get(i);
      CategoryTreeNode parent = parents.get(i);
      CategoryTreeNode category = route.getCategory();
      if (category.isLocal() && parent.isRemote())
        throw new IOException("cannot move local route " + route.getName() + " to remote parent " + parent.getName());
      if (category.isRemote() && parent.isLocal())
        throw new IOException("cannot move remote route " + route.getName() + " to local parent " + parent.getName());
      route.getRoute().update(parent.getCategory(), route.getDescription() != null ? route.getDescription() : route.getName());
    }
    invokeLater(new Runnable() {
      public void run() {
        for (CategoryTreeNode parent : parents) {
          setCurrentCategory(parent);
        }
        if (invokeLaterRunnable != null)
          invokeLaterRunnable.run();
      }
    });
  }
});
slash.navigation.routes.implRouteModelgetCategory

Popular methods of RouteModel

  • getRoute
  • <init>
  • getDescription
  • getName
  • getUrl

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • startActivity (Activity)
  • onRequestPermissionsResult (Fragment)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Collectors (java.util.stream)
  • JComboBox (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Best IntelliJ plugins
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