Examples of DataVisitor


Examples of org.ajax4jsf.model.DataVisitor

      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

        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

Examples of org.ajax4jsf.model.DataVisitor

     * .
     */
    @Test
    public final void testWalkFacesContextDataVisitorRangeObject() {
        final StringBuilder builder = new StringBuilder(5);
        table.walk(facesContext, new DataVisitor() {
            public DataVisitResult process(FacesContext context, Object rowKey, Object argument) {
                table.setRowKey(rowKey);
                builder.append(table.getRowData());
                return DataVisitResult.CONTINUE;
            }
View Full Code Here

Examples of org.ajax4jsf.model.DataVisitor

            }

            FacesContext context = FacesContext.getCurrentInstance();
            try {

                originalModel.walk(context, new DataVisitor() {
                    public void process(FacesContext context, Object rowKey,
                            Object argument) throws IOException {
                        originalModel.setRowKey(rowKey);
                        if (originalModel.isRowAvailable()) {
                            rowKeys.add(rowKey);
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

      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
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.