Examples of PropertyModel


Examples of org.apache.wicket.model.PropertyModel

    @Override
    public void buildItems(Fragment fragment, final LanguageBean field)
    {
        JetspeedServiceLocator locator = ((AbstractAdminWebApplication) getApplication()).getServiceLocator();
        fragment.add(new TextField<String>("title", new PropertyModel(new LanguageBeanModel(locator, paNodeBean, field), "title")));
        fragment.add(new TextField<String>("shortTitle", new PropertyModel(new LanguageBeanModel(locator, paNodeBean, field), "shortTitle")));
        fragment.add(new TextField<String>("keywords", new PropertyModel(new LanguageBeanModel(locator, paNodeBean, field), "keywords")));
        fragment.add(new TextField<String>("locale", new PropertyModel(new LanguageBeanModel(locator, paNodeBean, field), "localeString")));
    }
View Full Code Here

Examples of org.apache.wicket.model.PropertyModel

    @Override
    public void buildNew(Fragment fragment)
    {
        fragment.add(new TextField<String>("newMimeType", new PropertyModel<String>(this, "newMimeType")));
        fragment.add(new CheckBoxMultipleChoice("newPortletModes", new PropertyModel(this, "newPortletModes"), availablePortletModes));
    }
View Full Code Here

Examples of org.byteliberi.easydriver.generator.model.PropertyModel

        final int dataType = rs.getInt(5);
        fpa.setNullable( "YES".equals( rs.getString(18) ) );
       
        switch (dataType) {
        case Types.NUMERIC: case Types.DECIMAL:
          fpa.setProp(new PropertyModel(Visibility.PRIVATE, BigDecimalField.class.getSimpleName(), propName));
          break;
        case Types.BIT: case Types.BOOLEAN:
          fpa.setProp(new PropertyModel(Visibility.PRIVATE, BooleanField.class.getSimpleName(), propName));         
          break;
        case Types.CHAR:
          fpa.setProp(new PropertyModel(Visibility.PRIVATE, CharField.class.getSimpleName(), propName));
          break;
        case Types.DATE:
          fpa.setProp(new PropertyModel(Visibility.PRIVATE, DateField.class.getSimpleName(), propName));
          break;
        case Types.DOUBLE:
          fpa.setProp(new PropertyModel(Visibility.PRIVATE, DoubleField.class.getSimpleName(), propName));
          break;
        case Types.INTEGER:
          fpa.setProp(new PropertyModel(Visibility.PRIVATE, IntField.class.getSimpleName(), propName));
          break;
        case Types.TIMESTAMP:
          fpa.setProp(new PropertyModel(Visibility.PRIVATE, TimestampField.class.getSimpleName(), propName));
          break;
        case Types.BINARY:
          fpa.setProp(new PropertyModel(Visibility.PRIVATE, ByteArrayField.class.getSimpleName(), propName));
          break;
        case Types.OTHER:  // TODO What if it is not UUID ?
          fpa.setProp(new PropertyModel(Visibility.PRIVATE, UUIDField.class.getSimpleName(), propName));
          break;
        case Types.VARCHAR:
          fpa.setProp(new PropertyModel(Visibility.PRIVATE, VarcharField.class.getSimpleName(), propName));
          break;
        default:
          Logger.getLogger(MetaEasyDriverFactory.class.getSimpleName()).severe(columnName + " " + rs.getString(6) + " " + dataType);
        }
     
View Full Code Here

Examples of org.jwildfire.create.tina.dance.model.PropertyModel

  public void refreshFlamePropertiesTree(JTree pFlamePropertiesTree, DancingFlameProject pProject) {
    FlamePropertiesTreeNode<Object> root = new FlamePropertiesTreeNode<Object>("Flames", null, true);
    for (Flame flame : pProject.getFlames()) {
      FlamePropertiesTreeNode<Flame> flameNode = new FlamePropertiesTreeNode<Flame>(getFlameCaption(flame), flame, true);
      PropertyModel model = AnimationModelService.createModel(flame);
      addNodesToTree(model, flameNode);
      root.add(flameNode);
    }
    pFlamePropertiesTree.setModel(new DefaultTreeModel(root));
  }
View Full Code Here

Examples of org.jwildfire.create.tina.dance.model.PropertyModel

    pProject.getMotions().add(amp11);
    pProject.getMotions().add(amp12);
    pProject.getMotions().add(amp14);

    for (Flame flame : pProject.getFlames()) {
      PropertyModel model = AnimationModelService.createModel(flame);
      for (int layerIdx = 0; layerIdx < flame.getLayers().size(); layerIdx++) {
        Layer layer = flame.getLayers().get(layerIdx);
        if (layer.getXForms().size() > 0) {
          addXFormLink(model, amp0, flame, layerIdx, 0, AnimationModelService.PROPNAME_ANGLE);
          addXFormLink(model, amp1, flame, layerIdx, 0, AnimationModelService.PROPNAME_ORIGIN_X);
View Full Code Here

Examples of org.qi4j.runtime.property.PropertyModel

        Property<T> property = (Property<T>) state.get( accessor );

        if( property == null )
        {
            PropertyModel entityPropertyModel = stateModel.getProperty( accessor );
            if (entityPropertyModel == null)
                throw new IllegalArgumentException("No such property:"+accessor);

            property = new EntityPropertyInstance<T>( entityState instanceof BuilderEntityState ? entityPropertyModel.getBuilderInfo() : entityPropertyModel, entityState);
            state.put( accessor, property );
        }

        return property;
    }
View Full Code Here

Examples of org.switchyard.config.model.property.PropertyModel

                Assert.assertEquals(true, remoteRest.isUseFormBasedAuth());
            }
        } else {
            Assert.fail("couldn't find container, resources, remoteJms, or remoteRest");
        }
        PropertyModel property = rules.getProperties().getProperties().get(0);
        Assert.assertEquals("foo", property.getName());
        Assert.assertEquals("bar", property.getValue());
    }
View Full Code Here

Examples of wicket.model.PropertyModel

  }

  private void createComponents()
  {
    CheckBox checkBox;
    checkBox = new CheckBox("etat", new PropertyModel(this.afterSaison,
        "active"));
    this.add(checkBox);

    this.add(new Label("nom", this.afterSaison.getNom()));
    this.add(new Label("labelTitre",
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.