|
|
Re: No way to hide search Form in SWING?? [message #1585916 is a reply to message #1585445] |
Mon, 26 January 2015 10:07  |
Eclipse User |
|
|
|
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.02996 seconds