Hiding a table column

I’m trying to hide a table column, and I’m sure there’s a simple thing I need to do, but just didn’t spot in the documentation.

Here is a bit of the code I’m using for the Container class:

public class EntryContainer extends IndexedContainer {

[indent]
public EntryContainer() {

[indent]
addContainerProperty(PROPERTY_OBJECT, Entry.class, null);
addContainerProperty(PROPERTY_NAME, String.class, null);
addContainerProperty(PROPERTY_EMAIL, String.class, null);

[/indent] }

public Item addEntry(Entry entry) {
	Item item = addItem(entry.getEntryID());
	item.getItemProperty(PROPERTY_OBJECT).setValue(entry);
	item.getItemProperty(PROPERTY_NAME).setValue(entry.getName());
	item.getItemProperty(PROPERTY_EMAIL).setValue(entry.getEmail());
	return item;

[/indent] }

public static final String PROPERTY_OBJECT = "object";
public static final String PROPERTY_NAME = "name";
public static final String PROPERTY_EMAIL = "email";

public static final String[] COLUMN_ORDER = new String[]

{ PROPERTY_NAME, PROPERTY_EMAIL };

public static final String[] COLUMN_HEADERS = new String[]

{ “Name”, “Email” };

}

When adding a single one of these entries as the data source for a form, I give the COLUMN_ORDER as argument as well, so I don’t see the object column.

Long story, but a short question: How do I set the columns to show in a table?

I think you are looking for setVisibleColumns(Object) in Table, e.g. table.setVisibleColumns(COLUMN_ORDER)

Exactly, thanks.

Bo.