Examples of ViewREF


Examples of com.tll.client.mvc.view.ViewRef

      }
    }
    else {
      // not in stack - add it at head
      Log.debug("ViewCache.cache() - adding view to stack: " + key);
      stack.add(0, new ViewRef(e.init, e.vc.getView().getShortViewName(), e.vc.getView().getLongViewName()));
    }

    CView expired = null;

    // queue capacity check
View Full Code Here

Examples of com.tll.client.mvc.view.ViewRef

   * Creates a {@link ViewRef} given a {@link CView}.
   * @param e the view
   * @return Newly created {@link ViewRef}.
   */
  private static ViewRef ref(CView e) {
    return new ViewRef(e.init, e.vc.getView().getShortViewName(), e.vc.getView().getLongViewName());
  }
View Full Code Here

Examples of com.tll.client.mvc.view.ViewRef

  private ViewRef findViewRef(double viewKeyHash) {
    // try visited view ref cache
    final Iterator<ViewRef> vitr = cache.visitedRefIterator();
    if(vitr != null) {
      while(vitr.hasNext()) {
        final ViewRef r = vitr.next();
        final int hc = r.getViewKey().hashCode();
        if(hc == viewKeyHash) {
          return r;
        }
      }
    }
View Full Code Here

Examples of com.tll.client.mvc.view.ViewRef

    final ArrayList<ViewRef> plist = new ArrayList<ViewRef>();

    final Iterator<ViewRef> ritr = cache.visitedRefIterator();
    if(ritr != null) {
      while(ritr.hasNext() && count < capacity) {
        ViewRef r = ritr.next();
        if(current.compareTo(r) == 0) {
          // don't include the current view
          r = null;
        }
        else if(!includePopped) {
          final CView e = cache.peekQueue(r.getViewKey());
          if(e != null && e.vc.isPopped()) {
            r = null;
          }
        }
        if(r != null) {
View Full Code Here

Examples of com.tll.client.mvc.view.ViewRef

        // user pressed the back button or a non-show type view request was invoked or equivalant
        CView e = findView(viewKeyHash);
        if(e == null) {
          // probably the user is clicking the back button a number of times beyond the cache capacity
          // resort to the visited view ref cache
          final ViewRef r = findViewRef(viewKeyHash);
          if(r == null) {
            Log.warn("Un-resolved view hash: " + viewKeyHash);
          }
          else {
            setCurrentView(r.getViewInitializer());
            return;
          }
          // this should only happen when the user mucks with the view key hash in the query string
          // resort to the initial view
          e = initial;
View Full Code Here

Examples of org.dmd.mvw.tools.mvwgenerator.generated.types.ViewREF

        super(ai);
    }

    @Override
    protected ViewREF getNewHelper(){
        return(new ViewREF());
    }
View Full Code Here

Examples of org.dmd.mvw.tools.mvwgenerator.generated.types.ViewREF

        return(false);
    }

    @Override
    protected ViewREF typeCheck(Object value) throws DmcValueException {
        ViewREF rc = null;

        if (value instanceof ViewREF)
            rc = (ViewREF)value;
        else if (value instanceof ViewDMO)
            rc = new ViewREF((ViewDMO)value);
        else if (value instanceof CamelCaseName)
            rc = new ViewREF((CamelCaseName)value);
        else if (value instanceof String)
            rc = new ViewREF((String)value);
        else
            throw(new DmcValueException("Object of class: " + value.getClass().getName() + " passed where object compatible with ViewREF, ViewDMO or String expected."));

        return(rc);
    }
View Full Code Here

Examples of org.dmd.mvw.tools.mvwgenerator.generated.types.ViewREF

        value.serializeIt(dos);
    }

    @Override
    public ViewREF deserializeValue(DmcInputStreamIF dis) throws Exception {
        ViewREF rc = new ViewREF();
        rc.deserializeIt(dis);
        return(rc);
    }
View Full Code Here

Examples of org.dmd.mvw.tools.mvwgenerator.generated.types.ViewREF

        return(rc);
    }

    @Override
    public ViewREF cloneValue(ViewREF value){
        return(new ViewREF(value));
    }
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.