Examples of Container


Examples of de.willuhn.jameica.gui.util.Container

  /**
   * @see de.willuhn.jameica.gui.dialogs.AbstractDialog#paint(org.eclipse.swt.widgets.Composite)
   */
  protected void paint(Composite parent) throws Exception
  {
    Container c = new SimpleContainer(parent);
   
    final SelectInput version = this.getPainVersionInput();
    final FileInput target    = this.getFileInput();
    final LabelInput msg      = this.getMessage();
   
    c.addInput(version);
    c.addInput(target);
    c.addInput(msg);
   
    ButtonArea buttons = new ButtonArea();
    this.ok = new Button(i18n.tr("Export starten"),new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        painVersion = (PainVersion) version.getValue();
        if (painVersion == null)
        {
          msg.setValue(i18n.tr("Bitte w�hlen Sie eine Schema-Version aus."));
          return;
        }
       
        String s = StringUtils.trimToNull((String) target.getValue());
        if (s == null)
        {
          msg.setValue(i18n.tr("Bitte w�hlen Sie eine Datei aus"));
          return;
        }
       
        file = new File(s);
        if (file.exists() && file.canRead())
        {
          try
          {
            if (!Application.getCallback().askUser(i18n.tr("Datei existiert bereits. �berschreiben?")))
              return;
          }
          catch (OperationCanceledException oce)
          {
            return;
          }
          catch (Exception e)
          {
            Logger.error("error while asking user to overwrite file",e);
            Application.getMessagingFactory().sendMessage(new StatusBarMessage(i18n.tr("Export fehlgeschlagen: {0}",e.getMessage()),StatusBarMessage.TYPE_ERROR));
          }
        }
        close();
      }
    },null,true,"ok.png");
    buttons.addButton(ok);
   
    buttons.addButton(i18n.tr("Abbrechen"), new Action()
    {
      public void handleAction(Object context) throws ApplicationException
      {
        throw new OperationCanceledException();
      }
    },null,false,"process-stop.png");
   
    c.addButtonArea(buttons);
    getShell().setMinimumSize(getShell().computeSize(WINDOW_WIDTH,SWT.DEFAULT));
  }
View Full Code Here

Examples of edu.mit.simile.fresnel.util.Container

            throws InvalidResultSetException {
        // put statements in a vector and create a statement iterator based off the vector iterator
        Vector<Statement> statements = new Vector<Statement>();
        URI mem = (URI) FresnelCore.member;
        if (Container.isContainer(in, selected)) {
            Container con = new Container(in, selected);
            for (Iterator it = con.iterator(); it.hasNext(); ) {
                statements.add(new StatementImpl(selected, mem, (Value) it.next()));
            }
        } else if (RDFList.isRDFList(in, selected)) {
            List list = new RDFList(in, selected).asJavaList();
            for (Iterator it = list.iterator(); it.hasNext(); ) {
View Full Code Here

Examples of fr.dyade.aaa.jndi2.server.Container

      agentEP.setRequestManager(manager);
     
      HAEntryPoint haEP = new HAEntryPoint();
      haEP.setHARequestManager(haManager);

      Container container = new Container();   
      container.addEntryPoint(agentEP);
      container.addEntryPoint(haEP);
      container.setLifeCycleListener(haManager);
      container.setBagSerializer(haManager);
      manager.setContainer(container);
      container.deploy();
    }
  }
View Full Code Here

Examples of io.fabric8.api.Container

  @Override
  public void update(ViewerCell cell) {
    Object element = cell.getElement();
    ContainerViewBean bean = ContainerViewBean.toContainerViewBean(element);
    if (bean != null) {
      Container container = bean.container();
      boolean managed = container.isManaged();
      String image = "yellow-dot.png";
      String status = bean.getStatus();
      Fabric8JMXPlugin.getLogger().debug(
          "Container: " + container.getId() + " alive: "
              + container.isAlive() + " managed: "
              + container.isManaged() + " pending: "
              + container.isProvisioningPending() + " complete: "
              + container.isProvisioningComplete() + " status: "
              + container.getProvisionStatus());
      if (!bean.isAlive()) {
        image = "gray-dot.png";
      }
      if (container.isProvisioningPending()) {
        // image = "pending.gif";
        image = "yellow-dot.png";
        managed = true;
      } else if (status != null) {
        String lowerStatus = status.toLowerCase();
View Full Code Here

Examples of java.awt.Container

        JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    pref.height = Math.min(pref.height, pref.width * 3 / 2);
    scroll.setPreferredSize(pref);
    scroll.getViewport().setBackground(editor.getBackground());

    Container contents = getContentPane();
    contents.add(scroll, BorderLayout.CENTER);
    contents.add(buttonPanel, BorderLayout.SOUTH);

    LocaleManager.addLocaleListener(myListener);
    myListener.localeChanged();
    pack();
   
View Full Code Here

Examples of jfun.yan.Container

public class InvocationOrderTestCase extends TestCase {
  public void test1()
  throws Exception{
    final NutsProcessor proc = new NutsProcessor();
    proc.processResource("tests/jfun/finecontrol/config.xml");
    final Container yan = proc.getContainer();
    yan.getInstance("a");
  }
View Full Code Here

Examples of juzu.impl.inject.spi.cdi.Container

    return this;
  }

  @Override
  public InjectionContext<?, ?> create(Handler<Class<?>, Boolean> filter) throws Exception {
    final Container container = new WeldContainer(classLoader, scopeController, scopes);
    for (ReadFileSystem<?> fs : fileSystems) {
      container.addFileSystem(fs);
    }
    CDIContext cdiContext = new CDIContext(this, filter) {
      @Override
      public ClassLoader getClassLoader() {
        return container.getClassLoader();
      }
      @Override
      public BeanManager getBeanManager() {
        return container.getManager();
      }
      @Override
      public void close() {
        container.stop();
      }
      @Override
      public InjectorProvider getProvider() {
        return InjectorProvider.WELD;
      }
    };

    // Do the real boot
    CDIContext.boot.set(cdiContext);
    try {
      container.start();
    }
    finally {
      CDIContext.boot.set(cdiContext);
    }
View Full Code Here

Examples of lab5.common.Container

    private void update()
    {
      try
        {
            model.setDataState(false);
            Container container = clientRequestManager.SendPoints(new Container(model.getR(), model.getPoints()));
            model.addPoints(container.getPoints());
            model.setDataState(true);
        }
        catch(IOException ioex)
        {
            System.out.println(ioex);
View Full Code Here

Examples of mdes.slick.sui.Container

    this.setFont(GameClient.getFontSmall());
    this.setBackground(new Color(0, 0, 0, 85));
    this.setForeground(new Color(255, 255, 255));
    for (int i = 0; i < 6; i++) {
      final int j = i;
      m_container[i] = new Container();
      m_container[i].setSize(170, 42);
      m_container[i].setVisible(true);
      m_container[i].setLocation(2, y+10);
      m_container[i].setBackground(new Color(0, 0, 0, 0));
      System.out.println("Y: "+y);
View Full Code Here

Examples of net.datacrow.core.objects.helpers.Container

    /**
     * Creates a new instance of an item belonging to this module.
     */
    @Override
    public DcObject createItem() {
        return new Container();
    }
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.