Examples of BeanAdapter


Examples of DisplayProject.binding.beans.BeanAdapter

     */
    public PresentationModel(
        ValueModel beanChannel,
        ValueModel triggerChannel) {
        this.beanChannel = beanChannel;
        this.beanAdapter = new BeanAdapter(beanChannel, true);
        this.triggerChannel = triggerChannel;
        this.wrappedBuffers = new HashMap<String, WrappedBuffer>();
        this.bufferingUpdateHandler = new BufferingStateHandler();
        this.changed = false;
        this.changedUpdateHandler = new UpdateHandler();
View Full Code Here

Examples of DisplayProject.binding.beans.BeanAdapter

     */
    public PresentationModel(
        ValueModel beanChannel,
        ValueModel triggerChannel) {
        this.beanChannel = beanChannel;
        this.beanAdapter = new BeanAdapter(beanChannel, true);
        this.triggerChannel = triggerChannel;
        this.wrappedBuffers = new HashMap<String, WrappedBuffer>();
        this.bufferingUpdateHandler = new BufferingStateHandler();
        this.changed = false;
        this.changedUpdateHandler = new UpdateHandler();
View Full Code Here

Examples of com.caucho.jaxb.adapters.BeanAdapter

  public <A extends XmlAdapter> A getAdapter(Class<A> type)
  {
    A a = (A)_adapters.get(type);

    if (a == null)
      return (A)new BeanAdapter();

    return a;
  }
View Full Code Here

Examples of com.caucho.jaxb.adapters.BeanAdapter

  public <A extends XmlAdapter> A getAdapter(Class<A> type)
  {
    A a = super.getAdapter(type);

    if (a == null)
      return (A)new BeanAdapter();

    return a;
  }
View Full Code Here

Examples of com.jgoodies.binding.beans.BeanAdapter

    protected final BeanAdapter projectModel;
    protected final BeanAdapter orgModel;

    public GeneralInfoPanel(final PsiProject psiProject) {
        project = psiProject;
        projectModel = new BeanAdapter(project, true);
        orgModel = new BeanAdapter(project.getOrganization(), true);

        final VirtualFile virtualFile = project.getXmlFile().getVirtualFile();
        if (virtualFile == null)
            throw new IllegalStateException("PSI file has no virtual project.");
        final VirtualFile dir = virtualFile.getParent();
View Full Code Here

Examples of com.jgoodies.binding.beans.BeanAdapter

    protected final PsiProject project;
    protected final BeanAdapter model;

    public DeploymentPanel(final PsiProject psiProject) {
        project = psiProject;
        model = new BeanAdapter(project, true);

        layoutComponents();
        bindComponents();
    }
View Full Code Here

Examples of com.jgoodies.binding.beans.BeanAdapter

    /**
     * Creates an instance for the given project and document.
     */
    public SourcesPanel(final PsiProject pProject) {
        model = new BeanAdapter(pProject, true);

        resourcesPanel = new ResourcesPanel(pProject.getResources());
        layoutComponents();
        bindComponents();
    }
View Full Code Here

Examples of com.jgoodies.binding.beans.BeanAdapter

    /**
     * Creates an instance for the given file.
     */
    public TestingPanel(final PsiProject pProject) {
        final BeanAdapter model = new BeanAdapter(pProject, true);

        resources = new ResourcesPanel(pProject.getTestResources());
        Bindings.bind(testsSourceDirField,
                      model.getValueModel("unitTestSourceDirectory"));

        layoutComponents();
    }
View Full Code Here

Examples of com.jgoodies.binding.beans.BeanAdapter

    protected final PsiScmRepository scmRepository;
    protected final BeanAdapter model;

    public ScmPanel(final PsiProject pProject) {
        scmRepository = pProject.getScmRepository();
        model = new BeanAdapter(scmRepository, true);

        bindComponents();

        versionsPanel = new VersionsPanel(pProject);
        branchesPanel = new BranchesPanel(pProject);
View Full Code Here

Examples of com.jgoodies.binding.beans.BeanAdapter

    decimalFormat.setParseIntegerOnly(true);
    if (article != null) {
      articleName = article.getArticleName();

      //BeanAdapter beanAdapterArticle = new BeanAdapter(article);
      BeanAdapter beanAdapterArticle = new BeanAdapter(new IArticleModel(article));
      textFieldNumberOf = BasicComponentFactory.createFormattedTextField(
          //beanAdapterArticle.getValueModel("numberOfItemsLong"),
          beanAdapterArticle.getValueModel(IArticleModel.PROPERTY_NUMBER_OF_ITEMS_LONG),
          decimalFormat);

      textFieldOrder = BasicComponentFactory
          .createIntegerField(beanAdapterArticle
              .getValueModel("dialogOrder"));
    }
    if (attributes != null && attributes.size() != 0) {
      textFields = new LinkedHashMap<String, JTextField>();
      textFieldDialogOrders = new LinkedHashMap<String, JTextField>();
      checkBoxes = new LinkedHashMap<String, JCheckBox>();
      comboBoxes = new LinkedHashMap<String, JComboBox>();

      // g�r gjennom alle attributter og lager et tekstfelt, checkboks
      // eller comboboks for hver
      for (IArticleAttribute attribute : attributes) {
        BeanAdapter beanAdapter = new BeanAdapter(new IArticleAttributeModel(attribute), true);
        beans.add(beanAdapter);

        if (attribute.isYesNo()) {
          checkBoxes.put(attribute.getAttributeName(),
              BasicComponentFactory.createCheckBox(beanAdapter
                  //.getValueModel("attributeValueBool"), ""));
                  .getValueModel(IArticleAttributeModel.PROPERTY_ATTRIBUTE_VALUE_BOOL), ""));
          //beanAdapter.setValue("attributeValueBool", Boolean.FALSE);
          beanAdapter.setValue(IArticleAttributeModel.PROPERTY_ATTRIBUTE_VALUE_BOOL, Boolean.FALSE);
        } else if (attribute.getChoices() != null
            && attribute.getChoices().size() != 0) {
          comboBoxes.put(attribute.getAttributeName(),
              new JComboBox(new ComboBoxAdapter(attribute
                  .getChoices(), beanAdapter
                  //.getValueModel("attributeValue"))));
                  .getValueModel(IArticleAttributeModel.PROPERTY_ATTRIBUTE_VALUE))));
        } else {

          textFields.put(attribute.getAttributeName(),
              BasicComponentFactory.createTextField(beanAdapter
                  //.getValueModel("attributeValue")));
                  .getValueModel(IArticleAttributeModel.PROPERTY_ATTRIBUTE_VALUE)));

        }
          textFieldDialogOrders
              .put(
                  attribute.getAttributeName(),
                  BasicComponentFactory
                      .createIntegerField(beanAdapter
                          //.getValueModel("dialogOrderAttribute")));
                          .getValueModel(IArticleAttributeModel.PROPERTY_DIALOG_ORDER_ATTRIBUTE)));

      }
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.