示例#1
0
 public virtual Element SetXY(int x, int y, ElementFxConfig animate)
 {
     this.Call("setXY", new int[] { x, y }, new JRawValue(new ClientConfig().Serialize(animate)));
     return this;
 }
示例#2
0
 public virtual Element Toggle(ElementFxConfig animate)
 {
     this.Call("toggle", new JRawValue(new ClientConfig().Serialize(animate)));
     return this;
 }
示例#3
0
 public virtual Element SetWidth(int width, ElementFxConfig animate)
 {
     this.Call("setWidth", width, new JRawValue(new ClientConfig().Serialize(animate)));
     return this;
 }
示例#4
0
 public virtual Element SetX(int x, ElementFxConfig animate)
 {
     this.Call("setX", x, new JRawValue(new ClientConfig().Serialize(animate)));
     return this;
 }
示例#5
0
 public virtual Element SetOpacity(double opacity, ElementFxConfig animate)
 {
     this.Call("setOpacity", opacity, new JRawValue(new ClientConfig().Serialize(animate)));
     return this;
 }
示例#6
0
 public virtual Element SetVisible(bool visible, ElementFxConfig animate)
 {
     this.Call("setVisible", visible, new JRawValue(new ClientConfig().Serialize(animate)));
     return this;
 }
示例#7
0
 public virtual Element SetBox(Box box, bool adjust, ElementFxConfig animate)
 {
     this.Call("setBox", new JRawValue(box.Serialize()), adjust, new JRawValue(new ClientConfig().Serialize(this, true)));
     return this;
 }
示例#8
0
 public virtual Element SetHeight(int value, ElementFxConfig animate)
 {
     this.Call("setHeight", value, new JRawValue(new ClientConfig().Serialize(animate)));
     return this;
 }
示例#9
0
 public virtual Element ScrollTo(Direction side, int value, ElementFxConfig animate)
 {
     if (!(side == Direction.Left || side == Direction.Top))
     {
         throw new ArgumentException("Side can accept the following values only: Top, Left", "side");
     }
     this.Call("scrollTo", side.ToString().ToLowerCamelCase(), value, new JRawValue(new ClientConfig().Serialize(animate, true)));
     return this;
 }
示例#10
0
 public virtual Element SetBounds(int x, int y, int width, int height, ElementFxConfig animate)
 {
     this.Call("setBounds", x, y, width, height, new JRawValue(new ClientConfig().Serialize(animate, true)));
     return this;
 }
示例#11
0
 public virtual Element Scroll(Direction direction, int distance, ElementFxConfig animate)
 {
     this.Call("scrollEx", direction.ToString().ToLowerCamelCase(), distance, new JRawValue(new ClientConfig().Serialize(animate, true)));
     return this;
 }
示例#12
0
 public virtual Element MoveTo(int x, int y, ElementFxConfig animate)
 {
     this.Call("moveTo", x, y, new JRawValue(new ClientConfig().Serialize(animate, true)));
     return this;
 }
示例#13
0
 public virtual Element Hide(ElementFxConfig animate)
 {
     this.Call("hide", new JRawValue(new ClientConfig().Serialize(animate, true)));
     return this;
 }
示例#14
0
 public virtual Element AnchorTo(Element element, string position, int[] offsets, ElementFxConfig animate)
 {
     this.Call("anchorTo", new JRawValue(element.Descriptor), position, offsets, new JRawValue(new ClientConfig().Serialize(animate, true)));
     return this;
 }
示例#15
0
 public virtual Element AnchorTo(Element element, string position, int[] offsets, ElementFxConfig animate, bool monitorScroll, JFunction callback)
 {
     this.Call("anchorTo", new JRawValue(element.Descriptor), position, offsets, new JRawValue(new ClientConfig().Serialize(animate, true)), monitorScroll, callback);
     return this;
 }