Exemplo n.º 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;
 }
Exemplo n.º 2
0
 public virtual Element Toggle(ElementFxConfig animate)
 {
     this.Call("toggle", new JRawValue(new ClientConfig().Serialize(animate)));
     return this;
 }
Exemplo n.º 3
0
 public virtual Element SetWidth(int width, ElementFxConfig animate)
 {
     this.Call("setWidth", width, new JRawValue(new ClientConfig().Serialize(animate)));
     return this;
 }
Exemplo n.º 4
0
 public virtual Element SetX(int x, ElementFxConfig animate)
 {
     this.Call("setX", x, new JRawValue(new ClientConfig().Serialize(animate)));
     return this;
 }
Exemplo n.º 5
0
 public virtual Element SetOpacity(double opacity, ElementFxConfig animate)
 {
     this.Call("setOpacity", opacity, new JRawValue(new ClientConfig().Serialize(animate)));
     return this;
 }
Exemplo n.º 6
0
 public virtual Element SetVisible(bool visible, ElementFxConfig animate)
 {
     this.Call("setVisible", visible, new JRawValue(new ClientConfig().Serialize(animate)));
     return this;
 }
Exemplo n.º 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;
 }
Exemplo n.º 8
0
 public virtual Element SetHeight(int value, ElementFxConfig animate)
 {
     this.Call("setHeight", value, new JRawValue(new ClientConfig().Serialize(animate)));
     return this;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 13
0
 public virtual Element Hide(ElementFxConfig animate)
 {
     this.Call("hide", new JRawValue(new ClientConfig().Serialize(animate, true)));
     return this;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }