Examples of AbstractComponent


Examples of ca.uhn.hl7v2.conf.spec.message.AbstractComponent

    return field;
  }

  /** Parses a component profile */
  private AbstractComponent parseComponentProfile(Element elem, boolean isSubComponent) throws ProfileException {
    AbstractComponent comp = null;
    if (isSubComponent) {
      log.debug("      Parsing subcomp profile: " + elem.getAttribute("Name"));
      comp = new SubComponent();
    } else {
      log.debug("    Parsing comp profile: " + elem.getAttribute("Name"));
View Full Code Here

Examples of ca.uhn.hl7v2.conf.spec.message.AbstractComponent

  }

  /** Parses a component profile */
  private AbstractComponent parseComponentProfile(Element elem, boolean isSubComponent)
      throws ProfileException {
    AbstractComponent comp = null;
    if (isSubComponent) {
      log.debug("      Parsing subcomp profile: " + elem.getAttribute("Name"));
      comp = new SubComponent();
    } else {
      log.debug("    Parsing comp profile: " + elem.getAttribute("Name"));
View Full Code Here

Examples of com.clearnlp.component.AbstractComponent

    convert(s_headruleFile, s_language, s_mergeLabels, s_inputPath, s_parseExt, s_propExt, s_senseExt, s_vclassExt, s_nameExt, s_outputExt);
  }
 
  public void convert(String headruleFile, String language, String mergeLabels, String inputPath, String parseExt, String propExt, String senseExt, String vclassExt, String nameExt, String outputExt) throws Exception
  {
    AbstractComponent morph = NLPGetter.getMPAnalyzer(s_language);
    AbstractC2DConverter c2d = NLPGetter.getC2DConverter(s_language, s_headruleFile, s_mergeLabels);
   
    convertRec(c2d, morph, language, inputPath, parseExt, propExt, senseExt, vclassExt, nameExt, outputExt);
  }
View Full Code Here

Examples of com.greentea.relaxation.jnmf.gui.components.AbstractComponent

      {
         DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode) value;

         if (treeNode.getUserObject() instanceof AbstractComponent)
         {
            AbstractComponent userComponent = (AbstractComponent) treeNode.getUserObject();

            Icon icon = userComponent.getIcon();

            if (icon != null)
            {
               component.setIcon(icon);
            }

            Color color = userComponent.getForegroundColor();
            if (color != null)
            {
               component.setForeground(color);
            }
            else
View Full Code Here

Examples of com.greentea.relaxation.jnmf.gui.components.AbstractComponent

      {
         public void mouseClicked(MouseEvent e)
         {
            if (e.getButton() == MouseEvent.BUTTON3)
            {
               AbstractComponent selectedComponent = getSelectedComponent();

               if (selectedComponent != null)
               {
                  JPopupMenu menu = selectedComponent.getMenu();

                  if (menu != null)
                  {
                     menu.show(projectTree, e.getX(), e.getY());
                  }
               }
            }
         }
      });
      projectTree.addTreeSelectionListener(new TreeSelectionListener()
      {
         public void valueChanged(TreeSelectionEvent e)
         {
            AbstractComponent oldComponent = getComponent(e.getOldLeadSelectionPath());

            if (oldComponent != null)
            {
               oldComponent.onComponentLeave();
            }

            AbstractComponent selectedComponent = getSelectedComponent();

            if (componentSelectedListener != null)
            {
               componentSelectedListener.fireComponentSelected(selectedComponent);
            }
View Full Code Here

Examples of com.greentea.relaxation.jnmf.gui.components.AbstractComponent

      projectTree.addTreeWillExpandListener(new TreeWillExpandListener()
      {
         public void treeWillExpand(TreeExpansionEvent event) throws ExpandVetoException
         {
            AbstractComponent component = getComponent(event.getPath());

            if (!component.isExpandEnabled())
            {
               throw new ExpandVetoException(event);
            }
         }

         public void treeWillCollapse(TreeExpansionEvent event) throws ExpandVetoException
         {
            AbstractComponent component = getComponent(event.getPath());

            if (!component.isCollapseEnabled())
            {
               throw new ExpandVetoException(event);
            }
         }
      });
View Full Code Here

Examples of com.greentea.relaxation.jnmf.gui.components.AbstractComponent

      });
   }

   private AbstractComponent getComponent(TreePath path)
   {
      AbstractComponent component = null;

      if (path != null)
      {
         DefaultMutableTreeNode node = (DefaultMutableTreeNode) path.getLastPathComponent();
View Full Code Here

Examples of com.greentea.relaxation.jnmf.gui.components.AbstractComponent

      return getComponent(projectTree.getSelectionPath());
   }

   private ProjectComponent getSelectedProject()
   {
      AbstractComponent component = getComponent(projectTree.getSelectionPath());

      ProjectComponent project = null;

      if (component != null)
      {
         while (component != null && !(component instanceof ProjectComponent))
         {
            component = component.getParentComponent();
         }

         project = (ProjectComponent) component;
      }
View Full Code Here

Examples of com.vaadin.ui.AbstractComponent

    }

    private void checkButton(Class<? extends Button> class1) {
        boolean ok = false;
        AbstractComponent b;
        try {
            b = class1.newInstance();
            b.setCaption("Button of type " + class1.getSimpleName());
            ok = true;
        } catch (Exception e1) {
            e1.printStackTrace();
        }
View Full Code Here

Examples of com.vaadin.ui.AbstractComponent

        mainWindow.addComponent(tabsheet);
        mainWindow.addComponent(panelC);
    }

    private AbstractComponent getRandomComponent(int caption) {
        AbstractComponent result = null;
        final int randint = seededRandom.nextInt(7);
        switch (randint) {
        case 0:
            // Label
            result = new Label();
            result.setCaption("Label component " + caption);
            break;
        case 1:
            // Button
            result = new Button();
            result.setCaption("Button component " + caption);
            break;
        case 2:
            // TextField
            result = new TextField();
            result.setCaption("TextField component " + caption);
            break;
        case 3:
            // Select
            result = new Select("Select " + caption);
            result.setCaption("Select component " + caption);
            ((Select) result).addItem("First item");
            ((Select) result).addItem("Second item");
            ((Select) result).addItem("Third item");
            break;
        case 4:
            // Link
            result = new Link("", new ExternalResource("http://www.vaadin.com"));
            result.setCaption("Link component " + caption);
            break;
        case 5:
            // Link
            VerticalLayout panelLayout = new VerticalLayout();
            panelLayout.setMargin(true);
            result = new Panel(panelLayout);
            result.setCaption("Panel component " + caption);
            panelLayout
                    .addComponent(new Label(
                            "Panel is a container for other components, by default it draws a frame around it's "
                                    + "extremities and may have a caption to clarify the nature of the contained components' purpose."
                                    + " Panel contains an layout where the actual contained components are added, "
                                    + "this layout may be switched on the fly."));
            ((Panel) result).setWidth("250px");
            break;
        case 6:
            // Datefield
            result = new DateField();
            ((DateField) result).setStyleName("calendar");
            ((DateField) result).setValue(new java.util.Date());
            result.setCaption("Calendar component " + caption);
            break;
        case 7:
            // Datefield
            result = new DateField();
            ((DateField) result).setValue(new java.util.Date());
            result.setCaption("Calendar component " + caption);
            break;
        }

        return result;
    }
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.