Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » Change default visibility of a column
Change default visibility of a column [message #580313] Fri, 09 April 2010 08:32
Eclipse UserFriend
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: Thu Jun 19 16:13:16 EDT 2025

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

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

Back to the top