Examples of DataVisitor


Examples of org.ajax4jsf.model.DataVisitor

        final ArrayList list = new ArrayList(getRowCount());
       
        Object key = getRowKey();
        captureOrigValue(context);
       
        walk(context, new DataVisitor() {
          public void process(FacesContext context, Object rowKey,
              Object argument) throws IOException {

            setRowKey(context, rowKey);
            list.add(getRowData());
View Full Code Here

Examples of org.ajax4jsf.model.DataVisitor

          argument2.argument = argument;
          // setup current model
          argument2.model = model;
          argument2.range = range;
         
          scalarModel.walk(context, new DataVisitor() {

            public void process(FacesContext context,
                Object rowKey, Object argument)
                throws IOException {
View Full Code Here

Examples of org.ajax4jsf.model.DataVisitor

       
        visitor.process(context, entry.getKey(), argument);
      }
     
    } else {
      sourceModel.walk(context, new DataVisitor() {

        public void process(FacesContext context, Object rowKey,
            Object argument) throws IOException {

          ListShuttleRowKey key = new ListShuttleRowKey(rowKey, true);
          visitor.process(context, key, argument);
        }
      }, range, argument);

      targetModel.walk(context, new DataVisitor() {

        public void process(FacesContext context, Object rowKey,
            Object argument) throws IOException {

          ListShuttleRowKey key = new ListShuttleRowKey(rowKey, false);
View Full Code Here

Examples of org.ajax4jsf.model.DataVisitor

      if (clientSelection.isReset() || clientSelection.isSelectAll()) {
        simpleSelection.clear();
        simpleSelection.setSelectAll(clientSelection.isSelectAll());
      }
      try {
        grid.walk(context, new DataVisitor() {
          public void process(FacesContext context, Object rowKey,
              Object argument) throws IOException {

            int i = state.getRowIndex();
View Full Code Here

Examples of org.ajax4jsf.model.DataVisitor

          new SimpleSelection() :
            grid.getSelection();
    final ClientSelection clientSelection = new ClientSelection();
   
    grid.walk(context,
      new DataVisitor() {
        public void process(FacesContext context, Object rowKey,
            Object argument) throws IOException {
       
          if (gridSelection.isSelected(rowKey)) {
View Full Code Here

Examples of org.ajax4jsf.model.DataVisitor

      try {
       
        Object key = getRowKey();
        captureOrigValue(context);
       
        walk(context, new DataVisitor() {

          public void process(FacesContext context, Object rowKey,
              Object argument) throws IOException {

            setRowKey(context, rowKey);
View Full Code Here

Examples of org.ajax4jsf.model.DataVisitor

  public void encodeChildren(FacesContext context, UIComponent component)
      throws IOException {
    final UIRepeat repeater = (UIRepeat) component;
    repeater.captureOrigValue(context);
    try {
      DataVisitor visitor = new DataVisitor() {

        public void process(FacesContext context, Object rowKey, Object argument) throws IOException {
          repeater.setRowKey(rowKey);
          ListIterator childIterator = repeater.getChildren()
              .listIterator();
View Full Code Here

Examples of org.ajax4jsf.model.DataVisitor

        final ArrayList list = new ArrayList(getRowCount());
       
        Object key = getRowKey();
        captureOrigValue(context);
       
        walk(context, new DataVisitor() {
          public void process(FacesContext context, Object rowKey,
              Object argument) throws IOException {

            setRowKey(context, rowKey);
            list.add(getRowData());
View Full Code Here

Examples of org.ajax4jsf.model.DataVisitor

            if (clientSelection.isReset() || clientSelection.isSelectAll()) {
                simpleSelection.clear();
            }

            try {
                table.walk(context, new DataVisitor() {
                    public void process(FacesContext context, Object rowKey,
                            Object argument) throws IOException {

                        // TableHolder holder = (TableHolder) argument;
                        // int i = state.getRowIndex();
View Full Code Here

Examples of org.ajax4jsf.model.DataVisitor

        final Selection gridSelection = table.getSelection() == null ? new SimpleSelection()
                : table.getSelection();
        final ClientSelection clientSelection = new ClientSelection();

        table.walk(context, new DataVisitor() {
            public void process(FacesContext context, Object rowKey,
                    Object argument) throws IOException {

                // TableHolder holder = (TableHolder) argument;
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.