Examples of View


Examples of org.apache.drill.exec.dotdrill.View

          }

          queryRowType = new DrillFixedRelDataTypeImpl(planner.getTypeFactory(), viewFieldNames);
        }

        View view = new View(createView.getName(), viewSql, queryRowType, workspaceSchemaPath);

        boolean replaced;
        if (drillSchema instanceof WorkspaceSchema) {
          WorkspaceSchema workspaceSchema = (WorkspaceSchema) drillSchema;
          if (!createView.getReplace() && workspaceSchema.viewExists(view.getName())) {
            return DirectPlan.createDirectPlan(context, false, "View with given name already exists in current schema");
          }
          replaced = ((WorkspaceSchema) drillSchema).createView(view);
        }else{
          return DirectPlan.createDirectPlan(context, false, "Schema provided was not a workspace schema.");
View Full Code Here

Examples of org.apache.geronimo.monitoring.console.data.View

    private void addViewAttribute(RenderRequest request, boolean includeGraphs) throws PortletException {
        int viewId = Integer.parseInt(request.getParameter("view_id"));
        try {
            userTransaction.begin();
            try {
                View view = entityManager.find(View.class, viewId);
                request.setAttribute("view", view);
                if (includeGraphs) {
                    List<Graph> graphs = view.getGraphs();
                    GraphsBuilder builder = new GraphsBuilder();
                    List<StatsGraph> statsGraphs = new ArrayList<StatsGraph>();
                    for (Graph graph: graphs) {
                       if(!graph.getNode().isEnabled())
                           continue;
View Full Code Here

Examples of org.apache.hadoop.yarn.webapp.View

  }

  public static <T> Injector testPage(Class<? extends View> page, Class<T> api,
                                      T impl, Map<String,String> params, Module... modules) {
    Injector injector = createMockInjector(api, impl, modules);
    View view = injector.getInstance(page);
    if(params != null) {
      for(Map.Entry<String, String> entry: params.entrySet()) {
        view.set(entry.getKey(), entry.getValue());
      }
    }
    view.render();
    flushOutput(injector);
    return injector;
  }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.View

    }

    protected void views(final Workspace workspace) {
        // AbstractView.debug = true;

        View view = new HelpView("Name", "Description summerising the named feature", "A very log help text");
        view.setLocation(new Location(50, 60));
        view.setSize(view.getMaximumSize());
        workspace.addView(view);
        /*
         * view = new TestCanvasView(); view.setLocation(new Location(300, 60)); view.setSize(new Size(216,
         * 300)); workspace.addView(view);
         *
 
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.View

    }

    private void drag(final MouseEvent me) {
        final Location location = createLocation(me.getPoint());
        spy.addAction("Mouse dragged " + location);
        final View target = viewer.identifyView(new Location(location), false);
        drag.drag(target, location, me.getModifiers());
    }
View Full Code Here

Examples of org.apache.myfaces.extensions.cdi.core.api.config.view.View

     *
     * @param annotatedType current annotated type
     */
    private void addPageBean(AnnotatedType annotatedType)
    {
        View view = annotatedType.getAnnotation(View.class);

        if(!"".equals(view.inline()[0]))
        {
            //TODO move exceptions to util class
            throw new IllegalStateException("Definition error at: " + annotatedType.getJavaClass().getName() +
                    " it isn't allowed to define a class level @" + View.class.getName() +
                    " without a typesafe view config. Please don't use @View(inline=\"...\") for this use-case!");
        }

        String viewId;
        for(Class<? extends ViewConfig> viewConfigClass : view.value())
        {
            ViewConfigEntry viewConfigEntry = ViewConfigCache.getViewDefinition(viewConfigClass);

            if(viewConfigEntry == null)
            {
View Full Code Here

Examples of org.apache.oodt.cas.workflow.gui.perspective.view.View

          int value = chooser.showOpenDialog(WorkflowGUI.this);
          if (value == JFileChooser.APPROVE_OPTION) {
            File file = chooser.getSelectedFile();
            XmlWorkflowModelRepositoryFactory factory = new XmlWorkflowModelRepositoryFactory();
            factory.setWorkspace(workspace.getAbsolutePath());
            View activeView = perspective.getActiveView();

            if (activeView != null) {
              // TODO: add code for import
            }
          }
View Full Code Here

Examples of org.apache.sentry.core.View

    case Db:
      return new Database(name);
    case Table:
      return new Table(name);
    case View:
      return new View(name);
    case URI:
      return new AccessURI(name);
    default:
      return null;
    }
View Full Code Here

Examples of org.apache.sentry.core.model.db.View

    Table table = (Table)DBModelAuthorizables.from("tAbLe=t1");
    assertEquals("t1", table.getName());
  }
  @Test
  public void testView() throws Exception {
    View view = (View)DBModelAuthorizables.from("vIeW=v1");
    assertEquals("v1", view.getName());
  }
View Full Code Here

Examples of org.apache.shindig.gadgets.spec.View

  public void setAuthority(Authority authority) {
    this.authority = authority;
  }

  public Uri makeRenderingUri(Gadget gadget) {
    View view = gadget.getCurrentView();
    return buildUri(view, gadget);
  }
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.