Package com.inet.viewer
Interface ToolBar
-
- All Superinterfaces:
ReportViewChangeListener
- All Known Implementing Classes:
SwingToolBar
public interface ToolBar extends ReportViewChangeListener
The toolbar which contains various buttons.- Since:
- 7.0
-
-
Field Summary
Fields Modifier and Type Field Description static int
BUTTON_EXPORT
Button responsible for the export actionstatic int
BUTTON_INFO
Button responsible for showing the info dialogstatic int
BUTTON_JRA_LOAD
Button responsible for action loading java report archive (JRA)static int
BUTTON_JRA_SAVE
Button responsible for action saving java report archive (JRA)static int
BUTTON_PRINT
Button responsible for the print actionstatic int
BUTTON_REFRESH
Button responsible for the refresh actionstatic int
BUTTON_SEARCH
Button responsible for the search actionstatic int
BUTTONS_GENERAL
Button group of all "general" buttonsstatic int
BUTTONS_NAVIGATION
Button group of all "navigation" buttons such as "next page", "previous page", etc.static int
BUTTONS_REPORT
Button group of all various "report" buttons such as "search", "export", and "refresh".static int
BUTTONS_VIEW
Button group of all "view" buttons such as "double page view", "single page view", etc.static int
BUTTONS_ZOOM
Button group of all "zoom" buttons, that is - "zoom in", "zoom out".
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.awt.Component
getComponent()
Returns the gui component of this toolbar.boolean
isButtonsVisible(int buttons)
Return true if the button or button group is visible otherwise false.boolean
isVisible()
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 Detail
-
BUTTONS_GENERAL
static final int BUTTONS_GENERAL
Button group of all "general" buttons- Since:
- 7.0
- See Also:
- Constant Field Values
-
BUTTONS_NAVIGATION
static final int BUTTONS_NAVIGATION
Button group of all "navigation" buttons such as "next page", "previous page", etc.- Since:
- 7.0
- See Also:
- Constant Field Values
-
BUTTONS_VIEW
static final int BUTTONS_VIEW
Button group of all "view" buttons such as "double page view", "single page view", etc.- Since:
- 7.0
- See Also:
- Constant Field Values
-
BUTTONS_ZOOM
static final int BUTTONS_ZOOM
Button group of all "zoom" buttons, that is - "zoom in", "zoom out".- Since:
- 7.0
- See Also:
- Constant Field Values
-
BUTTONS_REPORT
static final int BUTTONS_REPORT
Button group of all various "report" buttons such as "search", "export", and "refresh".- Since:
- 7.0
- See Also:
- Constant Field Values
-
BUTTON_PRINT
static final int BUTTON_PRINT
Button responsible for the print action- Since:
- 7.0
- See Also:
- Constant Field Values
-
BUTTON_REFRESH
static final int BUTTON_REFRESH
Button responsible for the refresh action- Since:
- 7.0
- See Also:
- Constant Field Values
-
BUTTON_EXPORT
static final int BUTTON_EXPORT
Button responsible for the export action- Since:
- 7.0
- See Also:
- Constant Field Values
-
BUTTON_SEARCH
static final int BUTTON_SEARCH
Button responsible for the search action- Since:
- 7.0
- See Also:
- Constant Field Values
-
BUTTON_INFO
static final int BUTTON_INFO
Button responsible for showing the info dialog- Since:
- 7.0
- See Also:
- Constant Field Values
-
BUTTON_JRA_LOAD
static final int BUTTON_JRA_LOAD
Button responsible for action loading java report archive (JRA)- Since:
- 7.0
- See Also:
- Constant Field Values
-
BUTTON_JRA_SAVE
static final int BUTTON_JRA_SAVE
Button responsible for action saving java report archive (JRA)- Since:
- 7.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
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:
BUTTON_EXPORT
,BUTTON_PRINT
,BUTTON_REFRESH
,BUTTON_SEARCH
,BUTTONS_GENERAL
,BUTTONS_NAVIGATION
,BUTTONS_REPORT
,BUTTONS_VIEW
,BUTTONS_ZOOM
,BUTTON_INFO
-
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:
BUTTON_EXPORT
,BUTTON_PRINT
,BUTTON_REFRESH
,BUTTON_SEARCH
,BUTTONS_GENERAL
,BUTTONS_NAVIGATION
,BUTTONS_REPORT
,BUTTONS_VIEW
,BUTTONS_ZOOM
,BUTTON_INFO
-
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
java.awt.Component getComponent()
Returns the gui component of this toolbar.- Returns:
- The gui component of this toolbar
- Since:
- 7.0
-
-