# Using an Array as VISIBLEPROP

**URL:** <https://techcommunity.softwareag.com/t/using-an-array-as-visibleprop/57097>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Application-Composer\
**Created:** [December 1, 2005, 8:02pm UTC](https://techcommunity.softwareag.com/t/using-an-array-as-visibleprop/57097 "2005-12-01T20:02:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Theo\_Straeten](https://avatars.discourse-cdn.com/v4/letter/t/f07891/32.png) [@Theo\_Straeten](https://techcommunity.softwareag.com/u/Theo_Straeten)\
**Post date:** [December 1, 2005, 8:02pm UTC](https://techcommunity.softwareag.com/t/using-an-array-as-visibleprop/57097/1 "2005-12-01T20:02:01Z")

</div>

Is it possible to have an array as value for property “VISIBLEPROP” e.g. for a ROWAREA. Purpose is to have n ROWAREA’s on a page and switch between rowareas programmatically by means of visibility. Neccessary coding shall me as small as possible like for example:

public void doChangePage(int pageNumber) {

m\_rowAreaVisible[\*] = false;  
m\_rowAreaVisible[pageNumber] = true;

}

---

<div class="post-metadata">

**Author:** ![Bjoern\_Mueller](https://avatars.discourse-cdn.com/v4/letter/b/e9bcb4/32.png) [@Bjoern\_Mueller](https://techcommunity.softwareag.com/u/Bjoern_Mueller)\
**Post date:** [December 4, 2005, 11:06am UTC](https://techcommunity.softwareag.com/t/using-an-array-as-visibleprop/57097/2 "2005-12-04T11:06:51Z")

</div>

Theo,

this is possible - but not as “boolean array” but a “structured array”:

Define a class like this:

public class AREAData  
{  
private boolean m\_visible;  
public boolean getVisible() { return m\_visible; }  
}

Then the adapter similar to:  
public class XYZAdapter extends Adapter  
{  
private m\_areas = new AREAData[5]; // 5 just an example…  
public AREAData getAreas() { return m\_areas; }  
}

Now you can reference from the VISIBLEPROP in the area: areas[0].visible, areas[1].visible…

Please pay attention to not overload the page. We call these page “iceberg” pages: the user only sees 10% but the performance of the page refers to the whole 100%…

Bjoern

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:38pm UTC](https://techcommunity.softwareag.com/t/using-an-array-as-visibleprop/57097/3 "2021-04-02T14:38:24Z")

</div>


