Panel para matrices
La página “ElementsArrayPanel” no existe en Castellano todavía.
Puede ver la página correspondiente en Inglés (si existe) aquí debajo
(Available in the
palette of the Interface group.)
An ArrayPanel displays an array. The model changes the values in the 1D or 2D Data property and the array display is updated. The array does not change as the model evolves.

Click on the image to start the applet.
EJS ArrayPanel example: an ArrayPanel is used to display the multipls and powers of a given number. Download this example and unzip it in your source code directory.
Properties
Property values in the ArrayPanel inspector.
ArrayPanel  |
Main |
Name | Description | Values accepted | Default |
Data | The data for the element. | int[], int[][], int[][][], double[], double[][], double[][][], boolean[], boolean[][], boolean[][][], String[], String[][], String[][][], Object. | |
Static | Static elements are not automatically refreshed. | A boolean variable or one of the constants true or false. | |
Transposed | Whether to transpose the array. | A boolean variable or one of the constants true or false. | |
Format | The format used to display the value, i.e. the number of decimal digits with which to display the value. | Type 0.0 with one or more zeros. | |
Editable | Whether the displayed value can be changed. | A boolean variable or one of the constants true or false. | |
Columns Locked | Whether the column is locked and cannot be edited. | A boolean variable or one of the constants true or false. | |
Action | The action to invoke when the user interacts with the element. | The Java code to invoke for the action. | |
Graphical Aspect |
Name | Description | Values accepted | Default |
Columns Names | The names of the columns. | A string array, String[]. | |
Show Row Number | Whether to display the row numbers. | A boolean variable or one of the constants true or false. | |
First Row | The first row number to display. | An integer value. | |
First Column | The first row number to display. | An integer value. | |
Size | The double[] array with the size of the frame in each direction. | Type the two size values or use the editor provided. | |
Background | The background color for the element. | Use the editor provided or read about colors. | |
Foreground | The color to use when drawing or writing in the element. | Use the editor provided or read about colors. | |
Font | The font used to display text in the element. | Use the editor provided to select name, style and size of the font. | |
Tooltip | Text displayed when the mouse is over the element. | A string constant or variable. | |
Methods
Public methods of the ArrayPanel element that can be invoked in a code page.
Signature | Description |
void setArray(Object arrayObj) | Sets the array to be displayed. |
void appendRow(int[] x) | Appends a row of data with the given values to the table. |
void appendRow(byte[] x) | Appends a row of data with the given values to the table. |
void appendRow(Object[] x) | Appends a row of data with the given values to the table. |
void clearData() | Clears data from this table. Column names and format patterns are not affected. |
Further examples
(deliberately left empty)