Package com.inet.viewer
Interface ToolBar
- All Superinterfaces:
ReportViewChangeListener
- All Known Implementing Classes:
SwingToolBar
The toolbar which contains various buttons.
- Since:
- 7.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Button responsible for the export actionstatic final int
Button responsible for showing the info dialogstatic final int
Button responsible for action loading java report archive (JRA)static final int
Button responsible for action saving java report archive (JRA)static final int
Button responsible for the print actionstatic final int
Button responsible for the refresh actionstatic final int
Button responsible for the search actionstatic final int
Button group of all "general" buttonsstatic final int
Button group of all "navigation" buttons such as "next page", "previous page", etc.static final int
Button group of all various "report" buttons such as "search", "export", and "refresh".static final int
Button group of all "view" buttons such as "double page view", "single page view", etc.static final int
Button group of all "zoom" buttons, that is - "zoom in", "zoom out". -
Method Summary
Modifier and TypeMethodDescriptionReturns the gui component of this toolbar.boolean
isButtonsVisible
(int buttons) Return true if the button or button group is visible otherwise false.boolean
Determines whether this component should be visible when its parent is visible.void
setButtonsVisible
(int buttons, boolean visible) Sets a button or a button group visible or invisible.void
setVisible
(boolean vis) Shows or hides this component depending on the value of parameterb
.Methods inherited from interface com.inet.viewer.ReportViewChangeListener
reportViewChanged
-
Field Details
-
BUTTONS_GENERAL
static final int BUTTONS_GENERALButton group of all "general" buttons- Since:
- 7.0
- See Also:
-
BUTTONS_NAVIGATION
static final int BUTTONS_NAVIGATIONButton group of all "navigation" buttons such as "next page", "previous page", etc.- Since:
- 7.0
- See Also:
-
BUTTONS_VIEW
static final int BUTTONS_VIEWButton group of all "view" buttons such as "double page view", "single page view", etc.- Since:
- 7.0
- See Also:
-
BUTTONS_ZOOM
static final int BUTTONS_ZOOMButton group of all "zoom" buttons, that is - "zoom in", "zoom out".- Since:
- 7.0
- See Also:
-
BUTTONS_REPORT
static final int BUTTONS_REPORTButton group of all various "report" buttons such as "search", "export", and "refresh".- Since:
- 7.0
- See Also:
-
BUTTON_PRINT
static final int BUTTON_PRINTButton responsible for the print action- Since:
- 7.0
- See Also:
-
BUTTON_REFRESH
static final int BUTTON_REFRESHButton responsible for the refresh action- Since:
- 7.0
- See Also:
-
BUTTON_EXPORT
static final int BUTTON_EXPORTButton responsible for the export action- Since:
- 7.0
- See Also:
-
BUTTON_SEARCH
static final int BUTTON_SEARCHButton responsible for the search action- Since:
- 7.0
- See Also:
-
BUTTON_INFO
static final int BUTTON_INFOButton responsible for showing the info dialog- Since:
- 7.0
- See Also:
-
BUTTON_JRA_LOAD
static final int BUTTON_JRA_LOADButton responsible for action loading java report archive (JRA)- Since:
- 7.0
- See Also:
-
BUTTON_JRA_SAVE
static final int BUTTON_JRA_SAVEButton responsible for action saving java report archive (JRA)- Since:
- 7.0
- See Also:
-
-
Method Details
-
setButtonsVisible
void setButtonsVisible(int buttons, boolean visible) Sets a button or a button group visible or invisible.- Parameters:
buttons
- The identifier for the button or button groupvisible
- True if the button shoulb be visible otherwise false- Since:
- 7.0
- See Also:
-
isButtonsVisible
boolean isButtonsVisible(int buttons) Return true if the button or button group is visible otherwise false.- Parameters:
buttons
- The specified button or button group- Returns:
- true if it is visible otherwise false
- Since:
- 7.0
- See Also:
-
setVisible
void setVisible(boolean vis) Shows or hides this component depending on the value of parameterb
.- Parameters:
vis
- iftrue
, shows this component; otherwise, hides this component- Since:
- 7.0
-
isVisible
boolean isVisible()Determines whether this component should be visible when its parent is visible. Components are initially visible, with the exception of top level components such asFrame
objects.- Returns:
true
if the component is visible,false
otherwise- Since:
- 7.0
-
getComponent
Component getComponent()Returns the gui component of this toolbar.- Returns:
- The gui component of this toolbar
- Since:
- 7.0
-