Cambios Recientes - Buscar:

Información

Instalación

Documentación

Sugerencias de usuarios

 

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 IO Elements 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  
NameDescriptionValues acceptedDefault
DataThe data for the element.int[], int[][], int[][][], double[], double[][], double[][][], boolean[], boolean[][], boolean[][][], String[], String[][], String[][][], Object. 
StaticStatic elements are not automatically refreshed.A boolean variable or one of the constants true or false. 
TransposedWhether to transpose the array.A boolean variable or one of the constants true or false. 
FormatThe 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. 
EditableWhether the displayed value can be changed.A boolean variable or one of the constants true or false. 
Columns LockedWhether the column is locked and cannot be edited.A boolean variable or one of the constants true or false. 
ActionThe action to invoke when the user interacts with the element.The Java code to invoke for the action. 
Graphical Aspect  
NameDescriptionValues acceptedDefault
Columns NamesThe names of the columns.A string array, String[]. 
Show Row NumberWhether to display the row numbers.A boolean variable or one of the constants true or false. 
First RowThe first row number to display.An integer value. 
First ColumnThe 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. 
BackgroundThe background color for the element.Use the editor provided or read about colors. 
ForegroundThe color to use when drawing or writing in the element.Use the editor provided or read about colors. 
FontThe font used to display text in the element.Use the editor provided to select name, style and size of the font. 
TooltipText 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.

 

SignatureDescription
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)

 



Editar - Historia - Imprimir - Cambios Recientes - Buscar
Última modificación de la página el 07 septiembre 2010 a las 00h11