Examples of unregisterComponent()


Examples of javax.swing.ToolTipManager.unregisterComponent()

    setLocationRelativeTo(getOwner());
    updateEditor();
        ToolTipManager toolTipManager = ToolTipManager.sharedInstance();
        toolTipManager.registerComponent(this.instructionCombo);
        super.setVisible(true);
        toolTipManager.unregisterComponent(this.instructionCombo);
    }

    /**
     * Invoke the instruction editor with all available instructions
     */
 
View Full Code Here

Examples of javax.swing.ToolTipManager.unregisterComponent()

        this.instructionCombo.addItemListener(il);
        updateEditor();
        ToolTipManager toolTipManager = ToolTipManager.sharedInstance();
        toolTipManager.registerComponent(this.instructionCombo);
        super.setVisible(true);
        toolTipManager.unregisterComponent(this.instructionCombo);
        this.instructionCombo.removeItemListener(il);
    }

    private void addToPanel(Container parent, Component child, int pos) {
        parent.add(child, new GridBagConstraints(0, pos+1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
View Full Code Here

Examples of jfun.yan.Container.unregisterComponent()

        yan.verify();
        fail("should have failed with UnresolvedComponentException");
      }
      catch(UnresolvedComponentException e){
        assertEquals("badkey", e.getComponentKey());
        yan.unregisterComponent("use_bad");
      }
      yan.registerValue(char.class, new Character('a'));
      yan.registerComponent("use_badtype",
          Components.useType(createYanContainer(), char.class));
      try{
View Full Code Here

Examples of jfun.yan.Container.unregisterComponent()

        yan.verify();
        fail("should have failed with UnresolvedComponentException");
      }
      catch(UnresolvedComponentException e){
        assertEquals(char.class, e.getComponentKey());
        yan.unregisterComponent("use_badtype");
      }
    }
    public void testUseBadKeyAndType(){
      final Container yan = createYanContainer();
      yan.registerComponent("use_bad", Components.useKey("badkey"));
View Full Code Here

Examples of jfun.yan.Container.unregisterComponent()

        yan.verify();
        fail("should have failed with UnresolvedComponentException");
      }
      catch(UnresolvedComponentException e){
        assertEquals("badkey", e.getComponentKey());
        yan.unregisterComponent("use_bad");
      }
     
      yan.registerComponent("use_badtype",
          Components.useType(char.class));
      try{
View Full Code Here

Examples of jfun.yan.Container.unregisterComponent()

        yan.verify();
        fail("should have failed with UnresolvedComponentException");
      }
      catch(UnresolvedComponentException e){
        assertEquals(char.class, e.getComponentKey());
        yan.unregisterComponent("use_badtype");
      }
    }
   
    public void testBadUseContainerWithArguments(){
      final Container yan1 = createYanContainer();
View Full Code Here

Examples of jfun.yan.containers.DefaultContainer.unregisterComponent()

          fail();
      }
  }
    public void testRemovalNonRegisteredComponentAdapterWorksAndReturnsNull() {
        final DefaultContainer picoContainer = new DefaultContainer();
        picoContainer.unregisterComponent("COMPONENT DOES NOT EXIST");
    }
    public static class NeedsTouchable {
        public Touchable touchable;

        public NeedsTouchable(Touchable touchable) {
View Full Code Here

Examples of net.sf.katta.protocol.InteractionProtocol.unregisterComponent()

    this.notifyAll();
  }

  private synchronized void finishWatchdog() {
    InteractionProtocol protocol = _context.getProtocol();
    protocol.unregisterComponent(this);
    try {
      List<OperationResult> operationResults = new ArrayList<OperationResult>(_openOperationIds.size());
      for (OperationId operationId : _operationIds) {
        OperationResult operationResult = protocol.getNodeOperationResult(operationId, true);
        if (operationResult != null && operationResult.getUnhandledException() != null) {
View Full Code Here

Examples of net.sf.katta.protocol.InteractionProtocol.unregisterComponent()

    protocol.setMetric("node1", new MetricsRecord("node1"));
    Thread.sleep(500);
    protocol.setMetric("node1", new MetricsRecord("node1"));
    Thread.sleep(500);
    assertEquals(2, metricLogger.getLoggedRecords());
    protocol.unregisterComponent(metricLogger);
    protocol.disconnect();
  }
}
View Full Code Here

Examples of org.andromda.core.common.ComponentContainer.unregisterComponent()

     */
    public void setTranslator(final String translatorClass)
    {
        this.translatorClass = translatorClass;
        final ComponentContainer container = ComponentContainer.instance();
        container.unregisterComponent(translatorClass);
        container.registerComponentType(translatorClass);
    }

    /**
     * Gets the Translator instance that will perform processing of the template.
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.