Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Change default visibility of a column
Change default visibility of a column [message #580313] Fri, 09 April 2010 12:32
Alex Schroeder is currently offline Alex SchroederFriend
Messages: 38
Registered: February 2010
Location: Zürich, Switzerland
Member

I have a table page that is shown below a project and on its own. When shown below a project, I want the country column to be invisible:


@Override
public void execInitPage() throws ProcessingException {
getTable().getCountryColumn().setVisible(getProjectNr()==nul l);
}


My problem was that hitting the reset menu from the column headers will revert the column to its default configured state (ie. the visible property of the column) ignoring the code in execInitPage.

What is the recommended practice in this situation?

Right now I use the following on the column level in addition to the above:


@Override
public boolean getConfiguredVisible() {
return getProjectNr()==null;
}


The SDK shows this as "Unaccepted value!" but it works. :)
Previous Topic:Interested Parties
Next Topic:Re: Change default visibility of a column
Goto Forum:
  


Current Time: Tue Dec 10 05:34:52 GMT 2024

Powered by FUDForum. Page generated in 0.03202 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top