Ejemplo n.º 1
0
 public String apply(SUT s) {
   Assert.notNull(s);
   Widget w = finder.apply(s.get(Tags.SystemState));
   Object[] tagValues = new Object[tags.length];
   for (int i = 0; i < tags.length; i++) tagValues[i] = w.get(tags[i], null);
   return String.format(formatString, tagValues);
 }
Ejemplo n.º 2
0
 public WidgetIterator(Widget start, Navigator navi) {
   Assert.notNull(start, navi);
   this.buffer = new LinkedList<Widget>();
   this.navi = navi;
   this.buffer.add(start);
   this.navi.run(this.buffer);
 }
Ejemplo n.º 3
0
 private Color(int red, int green, int blue, int alpha) {
   Assert.isTrue(
       red >= 0
           && green >= 0
           && blue >= 0
           && alpha >= 0
           && red <= 255
           && green <= 255
           && blue <= 255
           && alpha <= 255);
   this.red = red;
   this.green = green;
   this.blue = blue;
   this.alpha = alpha;
   this.argb32 = red + (green << 8) + (blue << 16) + (alpha << 24);
 }
Ejemplo n.º 4
0
 public AbsolutePosition(Point point) {
   Assert.notNull(point);
   p = point;
 }
Ejemplo n.º 5
0
 public DynWidgetDesc(Finder finder, String formatString, Tag<?>... tags) {
   Assert.notNull(formatString, finder, tags);
   this.formatString = formatString;
   this.finder = finder;
   this.tags = tags;
 }