isCOBOL Evolve : Appendices : Internal Objects : SearchPanelSettings (com.iscobol.gui.server.SearchPanelSettings)
SearchPanelSettings (com.iscobol.gui.server.SearchPanelSettings)
The search panel that appears on Grid, List-Box and Tree-View when you press Ctrl-F or when you set the SEARCH-PANEL property to 1 has the following layout:
The above layout can be changed globally by setting the iscobol.gui.search_panel_settings configuration property.
If you need to change the layout for specific controls in specific programs, you can use the SearchPanelSettings object.
The SearchPanelSettings object has the following constructor:
SearchPanelSettings(com.iscobol.rts.INumericVar handle)
Note - handle must be a USAGE HANDLE data item associated to a Grid, a List-Box or a Tree-View, otherwise a java.lang.IllegalArgumentException is thrown.
The following table shows the javadoc of the SearchPanelSettings methods.
boolean
isCaseSensitiveEnabled()
Returns if the search with case sensitive is enabled
boolean
isFilterEnabled()
Returns if data filtering is enabled
boolean
isShowCaseSensitiveButton()
Returns if the case sensitive button is visible
boolean
isShowCleanButton()
Returns if the Clean button is visible
boolean
isShowFilterButton()
Returns if the Filter button is visible
boolean
isShowNavigationButtons()
Returns if the navigation buttons are visible
void
setCaseSensitiveEnabled(boolean caseSensitiveEnabled)
Enables or disables the Case Sensitive search
void
setFilterEnabled(boolean filterEnabled)
Enables or disable data filtering
void
setShowCaseSensitiveButton(boolean showCaseSensitiveButton)
Show or hide the Case Sensitive button
void
setShowCleanButton(boolean showCleanButton)
Show or hide the Clean button
void
setShowFilterButton(boolean showFilterButton)
Show or hide the Filter button
void
setShowNavigationButtons(boolean showNavigationButton)
Show or hide navigation buttons