Commit 7c0d6677 authored by Evaldas Latoškinas's avatar Evaldas Latoškinas Committed by Jeffrey I. Schiller

WidthPercent, HeightPercent, Width & Height Tooltips, Documentation (#1595)

parent 0341af0c
...@@ -94,7 +94,7 @@ public abstract class AndroidViewComponent extends VisibleComponent { ...@@ -94,7 +94,7 @@ public abstract class AndroidViewComponent extends VisibleComponent {
* @param width in pixels * @param width in pixels
*/ */
@Override @Override
@SimpleProperty @SimpleProperty(description = "Specifies the component's horizontal width, measured in pixels.")
public void Width(int width) { public void Width(int width) {
container.setChildWidth(this, width); container.setChildWidth(this, width);
lastSetWidth = width; lastSetWidth = width;
...@@ -110,7 +110,7 @@ public abstract class AndroidViewComponent extends VisibleComponent { ...@@ -110,7 +110,7 @@ public abstract class AndroidViewComponent extends VisibleComponent {
*/ */
@Override @Override
@SimpleProperty @SimpleProperty(description = "Specifies the component's horizontal width as a percentage of the Width of its parent Component.")
public void WidthPercent(int pCent) { public void WidthPercent(int pCent) {
if (pCent < 0 || pCent > 100) { if (pCent < 0 || pCent > 100) {
container.$form().dispatchErrorOccurredEvent(this, "WidthPercent", container.$form().dispatchErrorOccurredEvent(this, "WidthPercent",
...@@ -180,7 +180,7 @@ public abstract class AndroidViewComponent extends VisibleComponent { ...@@ -180,7 +180,7 @@ public abstract class AndroidViewComponent extends VisibleComponent {
* @param height in pixels * @param height in pixels
*/ */
@Override @Override
@SimpleProperty @SimpleProperty(description = "Specifies the component's vertical height, measured in pixels.")
public void Height(int height) { public void Height(int height) {
container.setChildHeight(this, height); container.setChildHeight(this, height);
lastSetHeight = height; lastSetHeight = height;
...@@ -196,7 +196,7 @@ public abstract class AndroidViewComponent extends VisibleComponent { ...@@ -196,7 +196,7 @@ public abstract class AndroidViewComponent extends VisibleComponent {
*/ */
@Override @Override
@SimpleProperty @SimpleProperty(description = "Specifies the component's vertical height as a percentage of the height of its parent Component.")
public void HeightPercent(int pCent) { public void HeightPercent(int pCent) {
if (pCent < 0 || pCent > 100) { if (pCent < 0 || pCent > 100) {
container.$form().dispatchErrorOccurredEvent(this, "HeightPercent", container.$form().dispatchErrorOccurredEvent(this, "HeightPercent",
......
...@@ -528,17 +528,17 @@ ...@@ -528,17 +528,17 @@
<dt><code>BackgroundColor</code></dt> <dt><code>BackgroundColor</code></dt>
<dd>Returns the component's background color</dd> <dd>Returns the component's background color</dd>
<dt><code>Height</code></dt> <dt><code>Height</code></dt>
<dd></dd> <dd>Specifies the component's vertical height, measured in pixels.</dd>
<dt><code>HeightPercent</code></dt> <dt><code>HeightPercent</code></dt>
<dd></dd> <dd>Specifies the component's vertical height as a percentage of the height of its parent Component.</dd>
<dt><code>Image</code></dt> <dt><code>Image</code></dt>
<dd>Specifies the path of the component's image. If there is both an Image and a BackgroundColor, only the Image will be visible.</dd> <dd>Specifies the path of the component's image. If there is both an Image and a BackgroundColor, only the Image will be visible.</dd>
<dt><code>Visible</code></dt> <dt><code>Visible</code></dt>
<dd>Specifies whether the component should be visible on the screen. Value is true if the component is showing and false if hidden.</dd> <dd>Specifies whether the component should be visible on the screen. Value is true if the component is showing and false if hidden.</dd>
<dt><code>Width</code></dt> <dt><code>Width</code></dt>
<dd></dd> <dd>Specifies the component's horizontal width, measured in pixels.</dd>
<dt><code>WidthPercent</code></dt> <dt><code>WidthPercent</code></dt>
<dd></dd> <dd>Specifies the component's horizontal width as a percentage of the Width of its parent Component.</dd>
</dl> </dl>
<h2 id="TableArrangement"> TableArrangement </h2> <h2 id="TableArrangement"> TableArrangement </h2>
...@@ -642,17 +642,17 @@ ...@@ -642,17 +642,17 @@
<dt><code>BackgroundColor</code></dt> <dt><code>BackgroundColor</code></dt>
<dd>Returns the component's background color</dd> <dd>Returns the component's background color</dd>
<dt><code>Height</code></dt> <dt><code>Height</code></dt>
<dd></dd> <dd>Specifies the component's vertical height, measured in pixels.</dd>
<dt><code>HeightPercent</code></dt> <dt><code>HeightPercent</code></dt>
<dd></dd> <dd>Specifies the component's vertical height as a percentage of the height of its parent Component.</dd>
<dt><code>Image</code></dt> <dt><code>Image</code></dt>
<dd>Specifies the path of the component's image. If there is both an Image and a BackgroundColor, only the Image will be visible.</dd> <dd>Specifies the path of the component's image. If there is both an Image and a BackgroundColor, only the Image will be visible.</dd>
<dt><code>Visible</code></dt> <dt><code>Visible</code></dt>
<dd>Specifies whether the component should be visible on the screen. Value is true if the component is showing and false if hidden.</dd> <dd>Specifies whether the component should be visible on the screen. Value is true if the component is showing and false if hidden.</dd>
<dt><code>Width</code></dt> <dt><code>Width</code></dt>
<dd></dd> <dd>Specifies the component's horizontal width, measured in pixels.</dd>
<dt><code>WidthPercent</code></dt> <dt><code>WidthPercent</code></dt>
<dd></dd> <dd>Specifies the component's horizontal width as a percentage of the Width of its parent Component.</dd>
</dl> </dl>
</div> </div>
</div> </div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment