Examples of PropertyAdapter


Examples of com.googlecode.richrest.client.event.PropertyAdapter

      refreshConfigurationList();
    } catch (Throwable t) {
      // ignore
    }

    configurationListener = new ConfigurationDelegate(new PropertyAdapter() {
      public void onPropertyChanged(final PropertyEvent event) {
        PropertyInfo configuration = event.getPropertyInfo();
        synchronized (configurationModel) {
          configurationModel.removeElement(configuration);
          configurationModel.addElement(configuration);
View Full Code Here

Examples of com.jgoodies.binding.beans.PropertyAdapter

    {
        initRadioButtons(bbsAllowed, triggerChannel);

        tfDeliciousUser = new JTextField();
        tfDeliciousUser.setDocument(new DocumentAdapter(new BufferedValueModel(
            new PropertyAdapter(this.userPrefs, UserPreferences.PROP_TAGS_DELICIOUS_USER),
            triggerChannel)));

        tfDeliciousPassword = new JPasswordField();
        tfDeliciousPassword.setDocument(new DocumentAdapter(new BufferedValueModel(
            new PropertyAdapter(this.userPrefs, UserPreferences.PROP_TAGS_DELICIOUS_PASSWORD),
            triggerChannel)));

        ValueModel autoFetchModel = new BufferedValueModel(
            new PropertyAdapter(userPrefs, UserPreferences.PROP_TAGS_AUTOFETCH),
            triggerChannel);

        chAutoFetch = ComponentsFactory.createCheckBox(
            Strings.message("userprefs.tab.tags.autofetch"),
            new ToggleButtonAdapter(autoFetchModel));

        lbBBSWording = ComponentsFactory.createWrappedMultilineLabel(
            Strings.message("userprefs.tab.tags.wording.bbservice"));

        lbDIUWording = ComponentsFactory.createWrappedMultilineLabel(
            Strings.message("userprefs.tab.tags.wording.delicious"));

        chPinTagging = ComponentsFactory.createCheckBox(
            "Tag pins with",
            new ToggleButtonAdapter(new BufferedValueModel(
                new PropertyAdapter(userPrefs, UserPreferences.PROP_PIN_TAGGING),
                triggerChannel)));

        tfPinTags = new JTextField();
        tfPinTags.setDocument(new DocumentAdapter(new BufferedValueModel(
            new PropertyAdapter(userPrefs, UserPreferences.PROP_PIN_TAGS),
            triggerChannel)));
    }
View Full Code Here

Examples of org.apache.tapestry.ioc.services.PropertyAdapter

        ComponentResources resources = mockComponentResources();
        Component container = mockComponent();
        PropertyAccess access = newPropertyAccess();
        ClassPropertyAdapter classPropertyAdapter = newClassPropertyAdapter();
        PropertyAdapter propertyAdapter = newPropertyAdapter();
        BindingSource bindingSource = mockBindingSource();
        Binding binding = mockBinding();
        ComponentResources containerResources = mockComponentResources();

        train_getId(resources, id);
View Full Code Here

Examples of org.apache.tapestry.ioc.services.PropertyAdapter

        ComponentResources resources = mockComponentResources();
        Component container = mockComponent();
        PropertyAccess access = newPropertyAccess();
        ClassPropertyAdapter classPropertyAdapter = newClassPropertyAdapter();
        PropertyAdapter propertyAdapter = newPropertyAdapter();
        BindingSource bindingSource = mockBindingSource();
        Binding binding = mockBinding();
        ComponentResources containerResources = mockComponentResources();

        train_getId(resources, id);
View Full Code Here

Examples of org.apache.tapestry.ioc.services.PropertyAdapter

    @Test
    public void property_adapter_read_only_property()
    {
        ClassPropertyAdapter cpa = _access.getAdapter(Bean.class);
        PropertyAdapter pa = cpa.getPropertyAdapter("readOnly");

        assertTrue(pa.isRead());
        assertFalse(pa.isUpdate());

        assertNull(pa.getWriteMethod());
        assertEquals(pa.getReadMethod(), findMethod(Bean.class, "getReadOnly"));
    }
View Full Code Here

Examples of org.apache.tapestry.ioc.services.PropertyAdapter

    @Test
    public void property_adapter_write_only_property()
    {
        ClassPropertyAdapter cpa = _access.getAdapter(Bean.class);
        PropertyAdapter pa = cpa.getPropertyAdapter("writeOnly");

        assertFalse(pa.isRead());
        assertTrue(pa.isUpdate());

        assertEquals(pa.getWriteMethod(), findMethod(Bean.class, "setWriteOnly"));
        assertNull(pa.getReadMethod());
    }
View Full Code Here

Examples of org.apache.tapestry.ioc.services.PropertyAdapter

    }

    @Test
    public void get_annotation_when_annotation_not_present()
    {
        PropertyAdapter pa = _access.getAdapter(AnnotatedBean.class)
                .getPropertyAdapter("readWrite");

        assertNull(pa.getAnnotation(Scope.class));
    }
View Full Code Here

Examples of org.apache.tapestry5.ioc.services.PropertyAdapter

        private ExpressionTermInfo infoForPropertyOrPublicField(Class activeType, Tree node)
        {
            String propertyName = node.getText();

            ClassPropertyAdapter classAdapter = access.getAdapter(activeType);
            final PropertyAdapter adapter = classAdapter.getPropertyAdapter(propertyName);

            if (adapter == null)
            {
                List<String> names = classAdapter.getPropertyNames();
View Full Code Here

Examples of org.apache.tapestry5.ioc.services.PropertyAdapter

    @Test
    public void property_adapter_read_only_property()
    {
        ClassPropertyAdapter cpa = access.getAdapter(Bean.class);
        PropertyAdapter pa = cpa.getPropertyAdapter("readOnly");

        assertTrue(pa.isRead());
        assertFalse(pa.isUpdate());
        assertFalse(pa.isCastRequired());

        assertNull(pa.getWriteMethod());
        assertEquals(pa.getReadMethod(), findMethod(Bean.class, "getReadOnly"));
    }
View Full Code Here

Examples of org.apache.tapestry5.ioc.services.PropertyAdapter

    @Test
    public void property_adapter_write_only_property()
    {
        ClassPropertyAdapter cpa = access.getAdapter(Bean.class);
        PropertyAdapter pa = cpa.getPropertyAdapter("writeOnly");

        assertFalse(pa.isRead());
        assertTrue(pa.isUpdate());

        assertEquals(pa.getWriteMethod(), findMethod(Bean.class, "setWriteOnly"));
        assertNull(pa.getReadMethod());
    }
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.