Examples of revalidate()


Examples of com.volantis.shared.dependency.Dependency.revalidate()

                     freshness == Freshness.FRESH && i.hasNext();) {
                    Map.Entry entry = (Map.Entry) i.next();
                    Dependency nested = (Dependency) entry.getKey();
                    freshness = (Freshness) entry.getValue();
                    if (freshness == Freshness.REVALIDATE) {
                        freshness = nested.revalidate(this);
                    }
                }
            }
        } finally {
            checked = null;
View Full Code Here

Examples of com.volantis.shared.dependency.Dependency.revalidate()

        generateSimpleElement(target, freshness.toString(),
                "freshness");

        // Generate an element containing the revalidated freshness.
        if (freshness == Freshness.REVALIDATE) {
            Freshness revalidated = dependency.revalidate(context);
            generateSimpleElement(target, revalidated.toString(),
                    "revalidated");
        }

        Cacheability cacheability = dependency.getCacheability();
View Full Code Here

Examples of com.volantis.shared.dependency.Dependency.revalidate()

        Dependency dependency = tracker.extractDependency();
        assertEquals(Cacheability.CACHEABLE, dependency.getCacheability());
        assertEquals(Period.INDEFINITELY, dependency.getTimeToLive());
        TestCaseAbstract.assertEquals(Freshness.FRESH, dependency.freshness(contextMock));
        try {
            dependency.revalidate(contextMock);
            fail("Did not detect invalid call to revalidate");
        } catch(IllegalStateException e) {
            // Expected.
        }
View Full Code Here

Examples of com.volantis.shared.dependency.Dependency.revalidate()

        assertEquals(Period.inSeconds(100), timeToLive);

        Freshness freshness = aggregate.freshness(contextMock);
        assertEquals(Freshness.REVALIDATE, freshness);

        Freshness revalidate = aggregate.revalidate(contextMock);
        assertEquals(Freshness.FRESH, revalidate);
    }
}
View Full Code Here

Examples of com.volantis.shared.dependency.Dependency.revalidate()

                        final Dependency dependency = value.getDependency();
                        Freshness freshness =
                            dependency.freshness(dependencyContext);
                        if (freshness == Freshness.REVALIDATE) {
                            freshness =
                                dependency.revalidate(dependencyContext);
                        }

                        // if the dependency is fresh, cache can play the
                        // content back
                        if (freshness == Freshness.FRESH) {
View Full Code Here

Examples of de.yaams.maker.programm.ress.RessPanel.revalidate()

        // add element
        ress.removeAll();
        ress.add(YFactory.createHorizontPanel(left, ress.getList(), "ressX.panel"));
        ress.invalidate();
        ress.revalidate();

      }
    });

    // add preview
View Full Code Here

Examples of java.awt.Container.revalidate()

          }
          else if(d.equals(Direction.DOWN)){
            size.height -= (point2.y - point.y);
          }
          resizedComponent.setPreferredSize(new Dimension(Math.max(size.width, 0), Math.max(size.height, 0)));
          parent.revalidate();
          parent.repaint();
          fireSizeChanged(resizedComponent);
        }
        else{
          index = getIndex();
View Full Code Here

Examples of javax.swing.JComponent.revalidate()

      for (int i = 0; i < comps.size(); i++) {
        BeanInstance bi = (BeanInstance)comps.elementAt(i);
        JComponent c = (JComponent)bi.getBean();
        Dimension d = c.getPreferredSize();
        c.setBounds(bi.getX(), bi.getY(), d.width, d.height);
        c.revalidate();
      }
    }
  }

  /**
 
View Full Code Here

Examples of javax.swing.JComponent.revalidate()

                        JComponent c = (JComponent) e.getComponent();
                        Rectangle r = c.getBounds();
                        full.setBounds(r);
                        pip.setBounds(r);
                        controls.setBounds(r);
                        c.revalidate();
                    }
                   
                });
                for (int i = 1; i < files.length; ++i) {
                    String uri = files[i];                   
View Full Code Here

Examples of javax.swing.JComponent.revalidate()

      for (int i = 0; i < comps.size(); i++) {
        BeanInstance bi = (BeanInstance)comps.elementAt(i);
        JComponent c = (JComponent)bi.getBean();
        Dimension d = c.getPreferredSize();
        c.setBounds(bi.getX(), bi.getY(), d.width, d.height);
        c.revalidate();
      }
    }
  }

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