No way to hide search Form in SWING?? [message #1577158] |
Wed, 21 January 2015 18:54 |
|
Is there no way to hide the search form in a Table Page when using Swing??
I have tried to set minimized and un-ticked 'modular'. Am I missing a config setting? Or is this just not possible?
|
|
|
|
Re: No way to hide search Form in SWING?? [message #1585916 is a reply to message #1585445] |
Mon, 26 January 2015 15:07 |
|
You Rock Jeremie!! Thanks for your input. I wanted to achieve this with a toggle button so here is how I implemented:
@Order(10.0)
public class SearchTool extends AbstractFormToolButton {
@Override
protected String getConfiguredIconId() {
return AbstractIcons.SmartFieldBrowse;
}
@Override
protected String getConfiguredText() {
return TEXTS.get("Search");
}
@Override
protected boolean getConfiguredToggleAction() {
return false;
}
@Override
protected void execAction() throws ProcessingException {
IForm searchForm = getPageSearchForm();
if (searchForm.isShowing() == true) {
removeForm(searchForm);
}
else {
addForm(searchForm);
}
}
}
|
|
|
Powered by
FUDForum. Page generated in 0.03171 seconds