Examples of BeanDictionary


Examples of org.apache.pivot.beans.BeanDictionary

        for (Object item : items) {
            Dictionary<String, Object> itemDictionary;
            if (item instanceof Dictionary<?, ?>) {
                itemDictionary = (Dictionary<String, Object>)item;
            } else {
                itemDictionary = new BeanDictionary(item);
            }

            for (int i = 0, n = keys.getLength(); i < n; i++) {
                String key = keys.get(i);
View Full Code Here

Examples of org.apache.pivot.beans.BeanDictionary

            && context.containsKey(contextKey)) {
            Object value = context.get(contextKey);
            if (value instanceof Dictionary<?, ?>) {
                context = (Map<String, Object>)value;
            } else {
                context = new BeanDictionary(value);
            }
        }

        for (Component component : components) {
            component.load(context);
View Full Code Here

Examples of org.apache.pivot.beans.BeanDictionary

                // Bound value is expected to be a sub-context
                Object value = context.get(contextKey);
                if (value instanceof Dictionary<?, ?>) {
                    context = (Map<String, Object>)value;
                } else {
                    context = new BeanDictionary(value);
                }
            }

            for (Component component : components) {
                component.store(context);
View Full Code Here

Examples of org.apache.pivot.beans.BeanDictionary

        if (this.skin != null) {
            throw new IllegalStateException("Skin is already installed.");
        }

        this.skin = skin;
        styles = new BeanDictionary(skin);
        skin.install(this);

        invalidate();
        repaint();
    }
View Full Code Here

Examples of org.apache.pivot.beans.BeanDictionary

     * the given context to a bean dictionary.
     *
     * @param context
     */
    public final void load(Object context) {
        load(new BeanDictionary(context));
    }
View Full Code Here

Examples of org.apache.pivot.beans.BeanDictionary

     * the given context to a bean dictionary.
     *
     * @param context
     */
    public final void store(Object context) {
        store(new BeanDictionary(context));
    }
View Full Code Here

Examples of pivot.beans.BeanDictionary

                item = itemClass.newInstance();

                if (item instanceof Dictionary) {
                    itemDictionary = (Dictionary<String, Object>)item;
                } else {
                    itemDictionary = new BeanDictionary(item);
                }
            } catch(IllegalAccessException exception) {
                throw new SerializationException(exception);
            } catch(InstantiationException exception) {
                throw new SerializationException(exception);
View Full Code Here

Examples of pivot.beans.BeanDictionary

        for (Object item : items) {
            Dictionary<String, Object> itemDictionary;
            if (item instanceof Dictionary) {
                itemDictionary = (Dictionary<String, Object>)item;
            } else {
                itemDictionary = new BeanDictionary(item);
            }

            for (int i = 0, n = keys.getLength(); i < n; i++) {
                String key = keys.get(i);
View Full Code Here

Examples of pivot.beans.BeanDictionary

     * to a bean dictionary.
     *
     * @param context
     */
    public void load(Object context) {
      load(new BeanDictionary(context));
    }
View Full Code Here

Examples of pivot.beans.BeanDictionary

            // Bound value is expected to be a sub-context
          Object value = context.get(contextKey);
          if (value instanceof Dictionary<?, ?>) {
                context = (Map<String, Object>)value;
          } else {
                context = new BeanDictionary(value);
          }
        }

        for (Component component : components) {
            component.store(context);
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.