Examples of DataVisitor


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

    }
   
    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

    }
   
    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()) {
            collection.add(originalModel.getRowData());
View Full Code Here

Examples of org.ajax4jsf.model.DataVisitor

  /**
   * Test method for {@link org.richfaces.model.ModifiableModel#walk(javax.faces.context.FacesContext, org.ajax4jsf.model.DataVisitor, org.ajax4jsf.model.Range, java.lang.Object)}.
   */
  public final void testWalk() {
    SequenceRange range = new SequenceRange(0, -1);
    DataVisitor visitor = new DataVisitor(){
      public void process(FacesContext context, Object rowKey,
          Object argument) throws IOException {
        Object key = model.getRowKey();
        model.setRowKey(rowKey);
        Object key2 = originalModel.getRowKey();
View Full Code Here

Examples of org.ajax4jsf.model.DataVisitor

  /**
   * Test method for {@link org.richfaces.model.ListSequenceDataModel#walk(javax.faces.context.FacesContext, org.ajax4jsf.model.DataVisitor, org.ajax4jsf.model.Range, java.lang.Object)}
   * and {@link org.richfaces.model.ListSequenceDataModel#getRowData()}.
   */
  public final void testWalk() {
    DataVisitor visitor = new DataVisitor(){
      public void process(FacesContext context, Object rowKey,
          Object argument) throws IOException {
        Object key = model.getRowKey();
        model.setRowKey(rowKey);
        assertEquals(model.getRowData(), list.get(((Integer)rowKey).intValue()));
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

          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

    }
   
    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

    }
   
    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

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