Examples of View


Examples of org.apache.sling.discovery.impl.common.View

        votingMap.put("votingStart", Calendar.getInstance());

        String clusterId = null;
        Calendar clusterIdDefinedAt = null;
        String clusterIdDefinedBy = null;
        final View currentlyEstablishedView = ViewHelper.getEstablishedView(resourceResolver, config);
        if (currentlyEstablishedView != null) {
          final ValueMap establishedViewValueMap = currentlyEstablishedView.getResource().adaptTo(ValueMap.class);
          clusterId = establishedViewValueMap.get(VIEW_PROPERTY_CLUSTER_ID, String.class);
          if (clusterId == null || clusterId.length() == 0) {
            clusterId = currentlyEstablishedView.getResource().getName();
          }
          Date date = establishedViewValueMap.get(VIEW_PROPERTY_CLUSTER_ID_DEFINED_AT, Date.class);
          if (date!=null) {
            clusterIdDefinedAt = Calendar.getInstance();
            clusterIdDefinedAt.setTime(date);
View Full Code Here

Examples of org.apache.struts2.sitegraph.entities.View

        }
    }

    public static View getView(String namespace, String actionName, String resultName, int type) {
        String viewId = namespace + "/" + actionName + "/" + resultName;
        View view = viewCache.get(viewId);
        if (view == null) {
            File viewFile = StrutsConfigRetriever.getViewFile(namespace, actionName, resultName);
            if (viewFile != null) {
                switch (type) {
                    case View.TYPE_JSP:
View Full Code Here

Examples of org.beryl.gui.View

 
  protected void fireModelEvent(ModelChangeEvent event) throws GUIException {
    if (views != null) {
      /* Update all views */
      for (Iterator i=views.iterator(); i.hasNext(); ) {
        View view = (View) i.next();
        /* Dont send events back to their source */
        if (view != event.getSource()) {
          view.modelChanged(event);
        }
      }
    }

    if (modelChangeListeners != null) {
View Full Code Here

Examples of org.bs.mdi.View

private void setMessages(DefaultStyledDocument doc) {
  for(
      Iterator<View> i = (Iterator<View>)scenery.getDocument().getViewIterator();
      i.hasNext();
  ) {
      View view = i.next();
      if(view instanceof it.uniroma1.dptu.stan.gui.View)
    ((it.uniroma1.dptu.stan.gui.View)view).setMessages(doc);
  }
    }
View Full Code Here

Examples of org.codinjutsu.tools.jenkins.model.View

    @Override
    protected void customizeCellRenderer(JList list, Object value, int index, boolean selected, boolean hasFocus) {

        if (value instanceof View) {
            View view = (View) value;
            append(view.getName(), SimpleTextAttributes.REGULAR_ATTRIBUTES);

            if (value instanceof FavoriteView) {
                setIcon(FAVORITE_ICON);
            }
        }
View Full Code Here

Examples of org.cruxframework.crux.core.rebind.screen.View

        for (String viewName : viewList)
        {
          URL url = Views.getView(viewName);
          if (Modules.getInstance().isResourceOnModulePathOrContext(url, moduleId))
          {
            View innerView = ViewFactory.getInstance().getView(viewName, getDeviceFeatures());
            views.add(innerView);
          }
        }
      }
      catch (ScreenConfigException e)
View Full Code Here

Examples of org.cytoscape.view.model.View

            // Calculate all node distances.  Keep track of the furthest.
           
            for (Iterator iterator = graphView.getNodeViews().iterator(); iterator.hasNext();)
      {
              View node_view = (View)iterator.next();
        PartialDerivatives partials = new PartialDerivatives(node_view);
        calculatePartials(partials, null, potential_energy, false);
        partials_list.add(partials);
        if (furthest_node_partials == null || partials.euclideanDistance > furthest_node_partials.euclideanDistance)
          furthest_node_partials = partials;
View Full Code Here

Examples of org.datastorm.gui.swt.View

* Show the Data Storm window and fire a sql query automatically.
*/
public void show(Connection connection, String sql) {
  try {
    IController controller = new Controller(connection);
    View view = new View(controller);
    controller.setView(view);
    controller.startUp(sql);
  }
  catch(SQLException e) {
    e.printStackTrace();
View Full Code Here

Examples of org.dmd.mvw.tools.mvwgenerator.extended.View

//        activity.getDMO().addUsesRunContextItem("eventBus");
      activities.put(def.getCamelCaseName(), activity);
      components.put(def.getCamelCaseName(), activity);
    }
    else if (def instanceof View){
      View view = (View) def;
      views.put(def.getCamelCaseName(), view);
     
      if (view.requiresEventBus()){
        view.getDMO().addUsesRunContextItem("eventBus");
      }
     
      // All Views are available for access from the run context. They are created on demand.
      RunContextItem rci = new RunContextItem();
      rci.setAutoCreated(true);
      RunContextItemCollection rcic = contexts.get(rci.getContextImpl());
     
      rci.setItemName(view.getViewName().getNameString() + "RCI");
      rci.setDescription("The auto generated run context item for the " + view.getViewName());
     
      if (view.getSubpackage() == null)
        rci.setUseClass(currentModule.getGenPackage() + ".extended." + view.getViewName());
      else
        rci.setUseClass(currentModule.getGenPackage() + ".extended." + view.getSubpackage() + "." + view.getViewName());
       
      if (view.getUsesRunContextItemHasValue()){
        if (view.isCodeSplit())
          rci.setConstruction("new " + view.getViewName() + "(presenter, thisContext)");
        else
          rci.setConstruction("new " + view.getViewName() + "(presenter, this)");
      }
      else
        rci.setConstruction("new " + view.getViewName() + "(presenter)");

//      // BIG NOTE: we don't specify the arguments to the constructor, this will depend on figuring
//      // out if the component needs run context items. We determine this in the RunContextItem.
//      rci.setConstruction("new " + view.getViewName());
     
     
      // NOTE: in addition to setting the construction mechanism, we also set the view
      // on the context item so that it knows how to create the on demand method that takes
      // the View's presenter.
      rci.setView(view);
      rci.setDefinedInModule(view.getDefinedInModule());
     
      if (rcic == null){
        rcic = new RunContextItemCollection(rci.getContextImpl());
        contexts.put(rci.getContextImpl(), rcic);
      }
      rcic.addItem(rci);
     
      // Add the item to its module
      rci.getDefinedInModule().addRunContextItem(rci);
     
      // We make it so that the view instance is created as required
      rci.setCreateOnDemand(true);
//      rci.setTheOne(view.isTheOne());
     
      // Tell the view its item
      view.setRunContextItem(rci);

    }
    else if (def instanceof Event){
      events.put(def.getCamelCaseName(), (Event) def);
    }
View Full Code Here

Examples of org.eclipse.gmf.runtime.notation.View

  public static List getCategoryAttributeCompartment_7001SemanticChildren(
      View view) {
    if (false == view.eContainer() instanceof View) {
      return Collections.EMPTY_LIST;
    }
    View containerView = (View) view.eContainer();
    if (!containerView.isSetElement()) {
      return Collections.EMPTY_LIST;
    }
    OntoUML.Category modelElement = (OntoUML.Category) containerView
        .getElement();
    List result = new LinkedList();
    for (Iterator it = modelElement.getAttribute().iterator(); it.hasNext();) {
      OntoUML.Property childElement = (OntoUML.Property) it.next();
      int visualID = OntoUML.diagram.part.OntoUMLVisualIDRegistry
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.