public class ViewHTMLPanelHandler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
DEFAULT_SHOW_BACK_LAUNCH_FILES
The default for the "showBackLaunchFiles" option for the constructor.
|
Constructor and Description |
---|
ViewHTMLPanelHandler(IstiDialogUtil dialogUtilObj,
ILaunchBrowser launchBrowserObj)
Creates a handler for simple HTML viewer panels.
|
ViewHTMLPanelHandler(IstiDialogUtil dialogUtilObj,
ILaunchBrowser launchBrowserObj,
java.lang.String[] showBackLaunchFiles)
Creates a handler for simple HTML viewer panels.
|
Modifier and Type | Method and Description |
---|---|
ViewHTMLPanel |
buildShowViewerDialog(ViewHTMLPanel vPanelObj,
java.lang.String fNameStr,
java.awt.Component parentComponent,
java.lang.String titleStr,
boolean modalFlag,
java.lang.Object button1Obj,
java.lang.Object button2Obj,
boolean showBackLaunchFlag,
java.lang.String viewRefStr)
Displays an HTML-viewer-panel-based dialog window.
|
protected ViewHTMLPanel |
buildViewerDialog(java.lang.String fNameStr,
boolean showBackLaunchFlag,
java.lang.String initialRefStr)
Creates an HTML-viewer-panel-based dialog window.
|
static java.lang.String |
getFileNameForMenuName(java.lang.String menuNameStr)
Gets the file name for the specified menu name.
|
static boolean |
isShowFileMenuName(java.lang.String menuNameStr)
Determines if the menu name is a show file menu name.
|
void |
showFileDialog(java.lang.String nameStr,
java.lang.String titleStr,
java.awt.Component parentComponent)
Displays the specified file in a dialog window.
|
void |
showFileDialog(java.lang.String fNameStr,
java.lang.String titleStr,
java.awt.Component parentComponent,
java.lang.String viewRefStr)
Displays the specified HTML file in a dialog window.
|
void |
showFileDialog(java.lang.String fNameStr,
java.lang.String titleStr,
java.awt.Component parentComponent,
java.lang.String viewRefStr,
boolean showBackLaunchFlag)
Displays the specified HTML file in a dialog window.
|
public static final java.lang.String[] DEFAULT_SHOW_BACK_LAUNCH_FILES
public ViewHTMLPanelHandler(IstiDialogUtil dialogUtilObj, ILaunchBrowser launchBrowserObj)
dialogUtilObj
- the dialog utility object for popup messages or
null for none.launchBrowserObj
- an existing 'ILaunchBrowser' object, or
null to have this class create its own.
By default any "Settings" files will automatically show the "Back" and
"Launch Browser" buttons.public ViewHTMLPanelHandler(IstiDialogUtil dialogUtilObj, ILaunchBrowser launchBrowserObj, java.lang.String[] showBackLaunchFiles)
dialogUtilObj
- the dialog utility object for popup messages or
null for none.launchBrowserObj
- an existing 'ILaunchBrowser' object, or
null to have this class create its own.showBackLaunchFiles
- files to automatically show "Back" and
"Launch Browser" buttons or null for none.public ViewHTMLPanel buildShowViewerDialog(ViewHTMLPanel vPanelObj, java.lang.String fNameStr, java.awt.Component parentComponent, java.lang.String titleStr, boolean modalFlag, java.lang.Object button1Obj, java.lang.Object button2Obj, boolean showBackLaunchFlag, java.lang.String viewRefStr)
vPanelObj
- the HTML-viewer panel to use, or null to build
a new one.fNameStr
- the name of the HTML file to display.parentComponent
- the parent component for the dialog.titleStr
- the title to use.modalFlag
- true for a modal dialog, false for a modeless dialog
(that allows other windows to be active at the same time).button1Obj
- first button object to use (can be a button
component or a string), or null for none.button2Obj
- second button object to use (can be a button
component or a string), or null for none.showBackLaunchFlag
- true to show "Back" and "Launch Browser"
buttons.viewRefStr
- the reference (anchor) to display, null for none.public static java.lang.String getFileNameForMenuName(java.lang.String menuNameStr)
menuNameStr
- the menu name string.public static boolean isShowFileMenuName(java.lang.String menuNameStr)
menuNameStr
- the menu name string.public void showFileDialog(java.lang.String nameStr, java.lang.String titleStr, java.awt.Component parentComponent)
nameStr
- the file name string or menu name string.titleStr
- the title to use.parentComponent
- the parent component for the dialog.public void showFileDialog(java.lang.String fNameStr, java.lang.String titleStr, java.awt.Component parentComponent, java.lang.String viewRefStr)
fNameStr
- the name of the HTML file to display.titleStr
- the title to use.parentComponent
- the parent component for the dialog.viewRefStr
- the reference (anchor) to display, null for none.public void showFileDialog(java.lang.String fNameStr, java.lang.String titleStr, java.awt.Component parentComponent, java.lang.String viewRefStr, boolean showBackLaunchFlag)
fNameStr
- the name of the HTML file to display.titleStr
- the title to use.parentComponent
- the parent component for the dialog.viewRefStr
- the reference (anchor) to display, null for none.showBackLaunchFlag
- true to show "Back" and "Launch Browser"
buttons.protected ViewHTMLPanel buildViewerDialog(java.lang.String fNameStr, boolean showBackLaunchFlag, java.lang.String initialRefStr)
fNameStr
- the name of the HTML file to display.showBackLaunchFlag
- true to show "Back" and "Launch Browser"
buttons.initialRefStr
- the initial reference (anchor) to display in
the given file, or null for none.