public class JavaFXButtons extends Object implements GUIButtons
To initialise the object/class call init()
| Constructor and Description |
|---|
JavaFXButtons() |
| Modifier and Type | Method and Description |
|---|---|
void |
addButton(int line,
String toolTip,
String path,
int ID,
GUIMenuItems fxMenuItems,
GUIFactory currentGUI,
CommandListener currentCommandListener,
javafx.scene.control.ToolBar pagesToolBar,
javafx.scene.control.ToolBar navToolBar) |
void |
alignLayoutMenuOption(int mode)
Aligns the layout menu option to the current view mode
|
void |
checkButtonSeparators()
Ensure buttons separators only appear in their logical places based on buttons present.
|
void |
disableUnimplementedItems(int ID)
Temporary Method to Disable unimplemented Viewer Items.
|
void |
dispose()
Prepares all objects for the trash collector
|
GUIButton |
getButton(int ID)
Returns the button associated with the ID.
|
ArrayList<javafx.scene.control.CheckMenuItem> |
getLayoutGroup()
Getter for layoutGroup.
|
javafx.scene.control.ToolBar |
getTopButtons()
Get the tool bar used to display the viewers top button bar
|
void |
hideRedundentNavButtons(GUIFactory currentGUI)
When page changes make sure only relevant navigation buttons are displayed
|
void |
init(boolean isSingle)
Initialises the buttons
|
void |
setBackNavigationButtonsEnabled(boolean flag)
Enables or disables all the back navigation buttons.
|
void |
setEnabled(boolean set)
Set the buttons tool bar to be enabled or disabled
|
void |
setForwardNavigationButtonsEnabled(boolean flag)
Enables or disables all the forward navigation buttons.
|
void |
setPageLayoutButtonsEnabled(boolean flag)
Enables or disables all the page layout buttons.
|
static void |
setupButtonStyle()
setupButtonStyle is unsupported in OpenViewerFX
|
void |
setVisible(boolean set)
Set the buttons tool bar visibility
|
public void init(boolean isSingle)
isSingle - is of type booleanpublic GUIButton getButton(int ID)
getButton in interface GUIButtonsID - int value specifying a buttonpublic void dispose()
public void setBackNavigationButtonsEnabled(boolean flag)
setBackNavigationButtonsEnabled in interface GUIButtonsflag - true to enable buttons, false to disablepublic void setForwardNavigationButtonsEnabled(boolean flag)
setForwardNavigationButtonsEnabled in interface GUIButtonsflag - true to enable buttons, false to disablepublic void setPageLayoutButtonsEnabled(boolean flag)
setPageLayoutButtonsEnabled in interface GUIButtonsflag - true to enable buttons, false to disablepublic void alignLayoutMenuOption(int mode)
alignLayoutMenuOption in interface GUIButtonsmode - int value specifying the display view modepublic ArrayList<javafx.scene.control.CheckMenuItem> getLayoutGroup()
public void checkButtonSeparators()
checkButtonSeparators in interface GUIButtonspublic javafx.scene.control.ToolBar getTopButtons()
public void addButton(int line,
String toolTip,
String path,
int ID,
GUIMenuItems fxMenuItems,
GUIFactory currentGUI,
CommandListener currentCommandListener,
javafx.scene.control.ToolBar pagesToolBar,
javafx.scene.control.ToolBar navToolBar)
public void hideRedundentNavButtons(GUIFactory currentGUI)
hideRedundentNavButtons in interface GUIButtonscurrentGUI - The user interface used for the viewerpublic static void setupButtonStyle()
public void setVisible(boolean set)
setVisible in interface GUIButtonsset - true to make the tool bar and button visible, false to make invisiblepublic void setEnabled(boolean set)
setEnabled in interface GUIButtonsset - true to enable the tool bar, false to disablepublic void disableUnimplementedItems(int ID)
Copyright © 2017. All rights reserved.