Package org.apache.commons.collections.set

Examples of org.apache.commons.collections.set.ListOrderedSet


  }

  public static void addStyleFile(FacesContext context, String script) {
    Set<String> set = (Set<String>) context.getAttributes().get(TOBAGO_STYLE_FILES);
    if (set == null) {
      set = new ListOrderedSet();
      context.getAttributes().put(TOBAGO_STYLE_FILES, set);
    }
    set.add(script);
  }
View Full Code Here


  }

  public static void addStyleBlock(FacesContext context, String script) {
    Set<String> set = (Set<String>) context.getAttributes().get(TOBAGO_STYLE_BLOCKS);
    if (set == null) {
      set = new ListOrderedSet();
      context.getAttributes().put(TOBAGO_STYLE_BLOCKS, set);
    }
    set.add(script);
  }
View Full Code Here

  }

  public static void addOnunloadScript(FacesContext context, String script) {
    Set<String> set = (Set<String>) context.getAttributes().get(TOBAGO_ONUNLOAD_SCRIPTS);
    if (set == null) {
      set = new ListOrderedSet();
      context.getAttributes().put(TOBAGO_ONUNLOAD_SCRIPTS, set);
    }
    set.add(script);
  }
View Full Code Here

  }

  public static void addOnexitScript(FacesContext context, String script) {
    Set<String> set = (Set<String>) context.getAttributes().get(TOBAGO_ONEXIT_SCRIPTS);
    if (set == null) {
      set = new ListOrderedSet();
      context.getAttributes().put(TOBAGO_ONEXIT_SCRIPTS, set);
    }
    set.add(script);
  }
View Full Code Here

  }

  public static void addOnsubmitScript(FacesContext context, String script) {
    Set<String> set = (Set<String>) context.getAttributes().get(TOBAGO_ONSUBMIT_SCRIPTS);
    if (set == null) {
      set = new ListOrderedSet();
      context.getAttributes().put(TOBAGO_ONSUBMIT_SCRIPTS, set);
    }
    set.add(script);
  }
View Full Code Here

  }

  public static void addMenuAcceleratorScript(FacesContext context, String script) {
    Set<String> set = (Set<String>) context.getAttributes().get(TOBAGO_MENU_ACCELERATORS);
    if (set == null) {
      set = new ListOrderedSet();
      context.getAttributes().put(TOBAGO_MENU_ACCELERATORS, set);
    }
    set.add(script);
  }
View Full Code Here

  }

  public static void addPopup(FacesContext context, AbstractUIPopup popup) {
    Set<AbstractUIPopup> set = (Set<AbstractUIPopup>) context.getAttributes().get(TOBAGO_POPUPS);
    if (set == null) {
      set = new ListOrderedSet();
      context.getAttributes().put(TOBAGO_POPUPS, set);
    }
    set.add(popup);
  }
View Full Code Here

        config.addPropertyDirect("list", list);

        assertEquals("first element of the 'list' property", "foo", config.resolveContainerStore("list"));

        // set of objects
        Set set = new ListOrderedSet();
        set.add("foo");
        set.add("bar");
        config.addPropertyDirect("set", set);

        assertEquals("first element of the 'set' property", "foo", config.resolveContainerStore("set"));

        // arrays of primitives
View Full Code Here

        /**
         * Default constructor.
         */
        public DefinedKeysVisitor()
        {
            keyList = new ListOrderedSet();
            parentKeys = new Stack();
        }
View Full Code Here

  private List<UIPopup> popups;

  public UIPage() {
    scriptFiles = SetUniqueList.decorate(new ArrayList());
    scriptBlocks = new ListOrderedSet();
    styleFiles = new ListOrderedSet();
    styleFiles.add(DEFAULT_STYLE);
    styleBlocks = new ListOrderedSet();
    onloadScripts = new ListOrderedSet();
    onunloadScripts = new ListOrderedSet();
    onexitScripts = new ListOrderedSet();
    popups = new ArrayList<UIPopup>();
  }
View Full Code Here

TOP

Related Classes of org.apache.commons.collections.set.ListOrderedSet

Copyright © 2018 www.massapicom. 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.