Package docking
Class DialogComponentProvider
- java.lang.Object
-
- docking.DialogComponentProvider
-
- All Implemented Interfaces:
ActionContextProvider,StatusListener,TaskListener
- Direct Known Subclasses:
AboutDialog,ActionDialog,AddEditDialog,AskAddrDialog,AskDialog,BatchImportDialog,ChangedFilesDialog,CheckoutDialog,CheckoutDialog,CheckoutsDialog,ChooseColumnsDialog,ColumnFilterArchiveDialog,ColumnFilterDialog,DataTreeDialog,DataTypeSelectionDialog,EditFieldNameDialog,ErrLogDialog,ErrLogExpandableDialog,ExtensionTableProvider,FilterOptionsEditorDialog,FindCheckoutsDialog,FindDialog,GhidraFileChooser,GoToAddressLabelDialog,ImageDialogProvider,ImporterDialog,ImporterLanguageDialog,InputDialog,InputWithChoicesDialog,KeyEntryDialog,LibraryPathsDialog,ListSelectionDialog,ListSelectionTableDialog,ManagePluginsDialog,MultiLineInputDialog,MultiLineMessageDialog,MultipleOptionsDialog,NumberInputDialog,ObjectChooserDialog,OptionDialog,OptionsDialog,OptionsDialog,PasswordChangeDialog,PasswordDialog,PickToolDialog,PluginInstallerDialog,ProjectInfoDialog,ReadTextDialog,RecipeEditorDialog,SaveDataDialog,SaveToolConfigDialog,SelectChangedToolDialog,SelectColumnsDialog,SelectFromListDialog,SelectLanguageDialog,SetEquateDialog,SettingsDialog,TableChooserDialog,TaskDialog,UndoActionDialog,UserAgreementDialog,VersionControlDialog,VersionHistoryDialog,WizardManager
public class DialogComponentProvider extends java.lang.Object implements TaskListener, StatusListener, ActionContextProvider
Base class used for creating dialogs in Ghidra. Subclass this to create a dialog provider that has all the gui elements to appear in the dialog, then use tool.showDialog() to display your dialog.
-
-
Field Summary
Fields Change Modifier and Type Field Description NEW protected javax.swing.JButtonapplyButtonNEW protected javax.swing.JButtoncancelButtonNEW protected javax.swing.JButtondismissButtonNEW protected javax.swing.JButtonokButtonNEW protected javax.swing.JPanelrootPanel
-
Constructor Summary
Constructors Change Modifier Constructor Description protectedDialogComponentProvider(java.lang.String title)Constructor for a GhidraDialogComponent that be modal and will include a status line and a button panel.protectedDialogComponentProvider(java.lang.String title, boolean modal)Constructor for a GhidraDialogComponent that will include a status line and a button panel.protectedDialogComponentProvider(java.lang.String title, boolean modal, boolean includeStatus, boolean includeButtons, boolean canRunTasks)Constructs a new GhidraDialogComponent.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Change Modifier and Type Method Description voidaddAction(DockingActionIf action)Add an action to this dialog.NEW protected voidaddApplyButton()Adds an "Apply" button to the button panel.NEW protected voidaddButton(javax.swing.JButton button)Adds a button to the button panel at the bottom of the dialog.NEW protected voidaddCancelButton()Adds a "Cancel" button to the button panel.NEW protected voidaddDismissButton()Adds a "Dismiss" button to the button panel.NEW protected voidaddOKButton()Adds an "OK" button to the button panel.NEW protected voidaddWorkPanel(javax.swing.JComponent comp)Used by derived classes to add dialog specific gui elementsNEW protected voidalertMessage()Signals for this dialog to visually draw the user's attention to the status textNEW protected voidalertMessage(Callback alertFinishedCallback)Signals for this dialog to visually draw the user's attention to the status textNEW protected voidapplyCallback()The callback method for when the "Apply" button is pressed.NEW protected voidcancelCallback()The callback method for when the "Cancel" button is pressed.NEW protected voidcancelCurrentTask()Cancel the task that is running.NEW protected voidclearScheduledTask()voidclearStatusText()Clears the text from the dialog's status line.voidclose()NEW protected voiddialogClosed()Override this method if you want to do something when the dialog is made invisibleNEW protected voiddialogShown()Override this method if you want to do something when the dialog is made visibleNEW protected voiddismissCallback()The callback method for when the "Dismiss" button is pressed.NEW protected voiddoInitialize()a callback mechanism for children to do workNEW protected voidescapeCallback()The callback method for when the escape key is pressed.NEW protected voidexecuteProgressTask(Task task, int delay)Execute a non-modal task that has progress and can be cancelled.ActionContextgetActionContext(java.awt.event.MouseEvent event)An optional extension point for subclasses to provider action context for the actions used by this provider.java.util.Set<DockingActionIf>getActions()java.awt.ColorgetBackground()Gets the background color of this component.NEW protected java.awt.RectanglegetBounds()Gets the bound of this dialog component.javax.swing.JComponentgetComponent()javax.swing.JButtongetDefaultButton()Returns the default button for the dialog.java.awt.DimensiongetDefaultSize()NEW protected java.awt.DimensiongetDialogSize()java.awt.ComponentgetFocusComponent()Returns the component that will receive focus when the dialog is shownNEW protected java.awt.ComponentgetGlassPane()java.awt.PointgetIntialLocation()Returns the initial location for the dialog or null if none was setNEW protected java.awt.PointgetLocationOnScreen()Gets the location of this provider on the screen.java.awt.DimensiongetPreferredSize()Returns the preferred size of this component.booleangetRemberSize()Returns true if this dialog remembers its size from one invocation to the next.booleangetRememberLocation()Returns true if this dialog remembers its location from one invocation to the next.NEW protected javax.swing.JLabelgetStatusLabel()java.lang.StringgetStatusText()returns the current status in the dialogs status line=NEW protected TaskMonitorComponentgetTaskMonitorComponent()NEW protected TaskSchedulergetTaskScheduler()Get the task scheduler for the dialogjava.lang.StringgetTitle()Returns the title for this componentbooleangetUseSharedLocation()Returns true if this dialog uses shared location and size information.voidhideTaskMonitorComponent()Will hide the progress panel if it was showing.NEW protected booleanisApplyEnabled()Returns true if the apply button is enabledNEW protected booleanisCancelEnabled()Returns true if the cancel button is enabledbooleanisModal()Returns true if this component should be displayed in a modal dialogNEW protected booleanisOKEnabled()Returns true if the OK button is enabledbooleanisResizeable()booleanisRunningTask()Returns true if this dialog is running a task.booleanisShowing()booleanisTransient()Returns true if this dialog is intended to be shown and hidden relatively quickly.booleanisVisible()static voidmain(java.lang.String[] args)NEW protected voidnotifyContextChanged()Signals to this provider that it needs to updated the enabled state of its managed actions.NEW protected voidokCallback()The callback method for when the "OK" button is pressed.voidremoveAction(DockingActionIf action)NEW protected voidremoveButton(javax.swing.JButton button)Remove the given button from the dialogNEW protected voidremoveWorkPanel()NEW protected voidrepack()NEW protected voidsetApplyEnabled(boolean state)Sets the enablement state of the "Apply" button.NEW protected voidsetApplyToolTip(java.lang.String tooltip)Sets the Tooltip for the Apply buttonvoidsetBackground(java.awt.Color color)Sets the background on this component.NEW protected voidsetCancelButtonText(java.lang.String text)NEW protected voidsetCancelEnabled(boolean state)Sets the enablement state of the "CANCEL" button.NEW protected voidsetCancelToolTip(java.lang.String tooltip)Sets the Tooltip for the Cancel buttonvoidsetCursor(java.awt.Cursor cursor)Sets the cursor on the root panel for the dialog component.voidsetDefaultButton(javax.swing.JButton button)Sets the button to make "Default" when the dialog is shown.voidsetDefaultSize(int width, int height)NEW protected voidsetDialogSize(java.awt.Dimension d)NEW protected voidsetDismissToolTip(java.lang.String tooltip)Sets the Tooltip for the Dismiss buttonvoidsetFocusComponent(java.awt.Component focusComponent)Sets the component that should be given focus when the dialog is activated.NEW protected voidsetGlassPane(java.awt.Component component)voidsetHelpLocation(HelpLocation helpLocation)Set the help Location for this dialog.voidsetInitialLocation(int x, int y)Sets the initial location for the dialogvoidsetMinimumSize(int width, int height)voidsetMinimumSize(java.awt.Dimension minSize)Sets the minimum size of the dialogNEW protected voidsetOkButtonText(java.lang.String text)NEW protected voidsetOkEnabled(boolean state)Sets the enablement state of the "OK" button.NEW protected voidsetOkToolTip(java.lang.String tooltip)Sets the Tooltip for the OK buttonvoidsetPreferredSize(int width, int height)Sets the preferred size of the dialog.voidsetRememberLocation(boolean rememberLocation)Sets this dialog to remember its location from one invocation to the next.voidsetRememberSize(boolean rememberSize)Sets this dialog to remember its size from one invocation to the next.voidsetResizable(boolean resizeable)Sets the resizable property for the corresponding dialog.voidsetStatusJustification(int justification)Sets the horizontal position of the status label.voidsetStatusText(java.lang.String text)Sets the text in the dialog's status line using the default colorvoidsetStatusText(java.lang.String message, MessageType type)Sets the text in the dialog's status line using the specified message type to control the color.voidsetStatusText(java.lang.String message, MessageType type, boolean alert)Set the current status as the specified typevoidsetTitle(java.lang.String title)Sets the title to be displayed in the dialogs title barvoidsetTransient(boolean isTransient)Sets this dialog to be transient (seeisTransient()voidsetUseSharedLocation(boolean useSharedLocation)Specifies whether or not this dialog component should use the same remembered location (and size) no matter which window this dialog is launched from.NEW protected voidshowProgressBar(java.lang.String localTitle, boolean hasProgress, boolean canCancel, int delay)TaskMonitorshowTaskMonitorComponent(java.lang.String localTitle, boolean hasProgress, boolean canCancel)Shows the progress bar for this dialog.NEW protected voidstopProgressTimer()Stop the timer if one was started to delay showing the progress bar.voidtaskCancelled(Task task)Notification that the task was canceled; the progress panel is removed.voidtaskCompleted(Task task)Notification that the given task completed so that the progress panel can be removed.voidtoFront()Moves the dialog associated with this provider to the front.java.lang.StringtoString()voidwaitForCurrentTask()Blocks the calling thread until the current task has completed; used by JUnit tests.
-
-
-
Field Detail
Constructor Detail
-
DialogComponentProvider
protected DialogComponentProvider(java.lang.String title)
Constructor for a GhidraDialogComponent that be modal and will include a status line and a button panel. Its title will be the same as its name.- Parameters:
title- the dialog title.
-
DialogComponentProvider
protected DialogComponentProvider(java.lang.String title, boolean modal)Constructor for a GhidraDialogComponent that will include a status line and a button panel.- Parameters:
title- the title for this dialog.modal- true if this dialog should be modal.
-
DialogComponentProvider
protected DialogComponentProvider(java.lang.String title, boolean modal, boolean includeStatus, boolean includeButtons, boolean canRunTasks)Constructs a new GhidraDialogComponent.- Parameters:
title- the title for this dialog.modal- true if this dialog should be modal.includeStatus- true if this dialog should include a status line.includeButtons- true if this dialog will have a button panel at the bottom.canRunTasks- true means this dialog can execute tasks (executeProgressTask(Task, int)and it will show a progress monitor when doing so.
-
-
Method Detail
-
getComponent
public javax.swing.JComponent getComponent()
-
setBackground
public void setBackground(java.awt.Color color)
Sets the background on this component.- Parameters:
color- The color to set.
-
getBackground
public java.awt.Color getBackground()
Gets the background color of this component.- Returns:
- The background color of this component.
-
setPreferredSize
public void setPreferredSize(int width, int height)Sets the preferred size of the dialog. Note that if you set the preferred size, the dialog will ignore any natural preferred size of your components.- Parameters:
width- the preferred widthheight- the preferred height;
-
setDefaultSize
public void setDefaultSize(int width, int height)
-
getDefaultSize
public java.awt.Dimension getDefaultSize()
-
setMinimumSize
public void setMinimumSize(int width, int height)
-
setMinimumSize
public void setMinimumSize(java.awt.Dimension minSize)
Sets the minimum size of the dialog- Parameters:
minSize- the min size of the dialog
-
getBounds NEW
protected java.awt.Rectangle getBounds()
Gets the bound of this dialog component. This is relative the parent of this provider.- Returns:
- the bound of this dialog component.
- See Also:
Component.getBounds()
-
getLocationOnScreen NEW
protected java.awt.Point getLocationOnScreen()
Gets the location of this provider on the screen. CallinggetBounds()provides a relative location. This method provides a location absolute on the screen.- Returns:
- the location of this provider on the screen.
- See Also:
Component.getLocationOnScreen()
-
getPreferredSize
public java.awt.Dimension getPreferredSize()
Returns the preferred size of this component.- Returns:
- the preferred size of this component.
-
setCursor
public void setCursor(java.awt.Cursor cursor)
Sets the cursor on the root panel for the dialog component.- Parameters:
cursor- the cursor to use.
-
addWorkPanel NEW
protected void addWorkPanel(javax.swing.JComponent comp)
Used by derived classes to add dialog specific gui elements- Parameters:
comp- the Component containing the derived class's components.
-
addButton NEW
protected void addButton(javax.swing.JButton button)
Adds a button to the button panel at the bottom of the dialog. Buttons will be added from left to right.Implementation Note: Calling this method will set the given button as the default button on this dialog when:
- No button has yet been added, and
- No default button has been assigned
setDefaultButton(JButton)with the desired default button.- Parameters:
button- the button
-
removeButton NEW
protected void removeButton(javax.swing.JButton button)
Remove the given button from the dialog- Parameters:
button- the button
-
executeProgressTask NEW
protected void executeProgressTask(Task task, int delay)
Execute a non-modal task that has progress and can be cancelled.- Parameters:
task- task to execute; a progress bar is displayed next to the status field in this dialog if the task has progress; for indeterminate tasks, a "spinning globe" is displayed to indicate that something is happening.delay- number of milliseconds to delay until progress bar is displayed; a value less than or equal to 0 means to show the progress bar immediately- Throws:
java.lang.IllegalArgumentException- if the given task is modal
-
waitForCurrentTask
public void waitForCurrentTask()
Blocks the calling thread until the current task has completed; used by JUnit tests.
-
isRunningTask
public boolean isRunningTask()
Returns true if this dialog is running a task.- Returns:
- true if this dialog is running a task.
-
addOKButton NEW
protected void addOKButton()
Adds an "OK" button to the button panel. The protected method okCallback() will be invoked whenever the "OK" button is pressed.
-
addCancelButton NEW
protected void addCancelButton()
Adds a "Cancel" button to the button panel. The protected method CancelCallback() will be invoked whenever the "Cancel" button is pressed.
-
addDismissButton NEW
protected void addDismissButton()
Adds a "Dismiss" button to the button panel. The protected method dismissCallback() will be invoked whenever the "Dismiss" button is pressed.
-
addApplyButton NEW
protected void addApplyButton()
Adds an "Apply" button to the button panel. The protected method applyCallback() will be invoked whenever the "Apply" button is pressed.
-
setApplyToolTip NEW
protected void setApplyToolTip(java.lang.String tooltip)
Sets the Tooltip for the Apply button- Parameters:
tooltip- the tooltip
-
setOkToolTip NEW
protected void setOkToolTip(java.lang.String tooltip)
Sets the Tooltip for the OK button- Parameters:
tooltip- the tooltip
-
setCancelToolTip NEW
protected void setCancelToolTip(java.lang.String tooltip)
Sets the Tooltip for the Cancel button- Parameters:
tooltip- the tooltip
-
setDismissToolTip NEW
protected void setDismissToolTip(java.lang.String tooltip)
Sets the Tooltip for the Dismiss button- Parameters:
tooltip- the tooltip
-
setOkEnabled NEW
protected void setOkEnabled(boolean state)
Sets the enablement state of the "OK" button.- Parameters:
state- true to enable the button, false to disable the button.
-
setCancelEnabled NEW
protected void setCancelEnabled(boolean state)
Sets the enablement state of the "CANCEL" button.- Parameters:
state- true to enable the button, false to disable the button.
-
setApplyEnabled NEW
protected void setApplyEnabled(boolean state)
Sets the enablement state of the "Apply" button.- Parameters:
state- true to enable the button, false to disable the button.
-
isCancelEnabled NEW
protected boolean isCancelEnabled()
Returns true if the cancel button is enabled- Returns:
- true if the cancel button is enabled
-
isOKEnabled NEW
protected boolean isOKEnabled()
Returns true if the OK button is enabled- Returns:
- true if the OK button is enabled
-
isApplyEnabled NEW
protected boolean isApplyEnabled()
Returns true if the apply button is enabled- Returns:
- true if the apply button is enabled
-
setStatusText
public void setStatusText(java.lang.String text)
Sets the text in the dialog's status line using the default color- Specified by:
setStatusTextin interfaceStatusListener- Parameters:
text- the text to display in the status line
-
setStatusText
public void setStatusText(java.lang.String message, MessageType type)Sets the text in the dialog's status line using the specified message type to control the color.- Specified by:
setStatusTextin interfaceStatusListener- Parameters:
message- the messagetype- the message type
-
setStatusText
public void setStatusText(java.lang.String message, MessageType type, boolean alert)Description copied from interface:StatusListenerSet the current status as the specified type- Specified by:
setStatusTextin interfaceStatusListener- Parameters:
message- status texttype- status typealert- true to grab the user's attention
-
alertMessage NEW
protected void alertMessage()
Signals for this dialog to visually draw the user's attention to the status text
-
alertMessage NEW
protected void alertMessage(Callback alertFinishedCallback)
Signals for this dialog to visually draw the user's attention to the status text- Parameters:
alertFinishedCallback- this will be called when the alert is finished. This allows clients to perform work, like re-enabling buttons that were disabled before calling this method
-
stopProgressTimer NEW
protected void stopProgressTimer()
Stop the timer if one was started to delay showing the progress bar.
-
hideTaskMonitorComponent
public void hideTaskMonitorComponent()
Will hide the progress panel if it was showing.
-
showProgressBar NEW
protected void showProgressBar(java.lang.String localTitle, boolean hasProgress, boolean canCancel, int delay)
-
clearStatusText
public void clearStatusText()
Clears the text from the dialog's status line.- Specified by:
clearStatusTextin interfaceStatusListener
-
getStatusText
public java.lang.String getStatusText()
returns the current status in the dialogs status line=- Returns:
- the status text
-
getTaskScheduler NEW
protected TaskScheduler getTaskScheduler()
Get the task scheduler for the dialog- Returns:
- the task scheduler
-
getTaskMonitorComponent NEW
protected TaskMonitorComponent getTaskMonitorComponent()
-
showTaskMonitorComponent
public TaskMonitor showTaskMonitorComponent(java.lang.String localTitle, boolean hasProgress, boolean canCancel)
Shows the progress bar for this dialog.- Parameters:
localTitle- the name of the taskhasProgress- true if the progress bar should show progress; false to be indeterminatecanCancel- true if the task can be cancelled- Returns:
- the
TaskMonitorused by to communicate progress - See Also:
hideTaskMonitorComponent()
-
applyCallback NEW
protected void applyCallback()
The callback method for when the "Apply" button is pressed.
-
cancelCallback NEW
protected void cancelCallback()
The callback method for when the "Cancel" button is pressed. The default behavior is to call setVisible(false) and dispose() on the dialog.
-
close
public void close()
-
dismissCallback NEW
protected void dismissCallback()
The callback method for when the "Dismiss" button is pressed. The default behavior is to call the cancel Callback.
-
escapeCallback NEW
protected void escapeCallback()
The callback method for when the escape key is pressed. The default behavior is the call setVisible(false) on the dialog.
-
isModal
public boolean isModal()
Returns true if this component should be displayed in a modal dialog- Returns:
- true if this component should be displayed in a modal dialog
-
setStatusJustification
public void setStatusJustification(int justification)
Sets the horizontal position of the status label.- Parameters:
justification- One of the following constants defined inSwingConstants:LEFT,CENTER(the default for image-only labels),RIGHT,
-
taskCancelled
public void taskCancelled(Task task)
Notification that the task was canceled; the progress panel is removed.- Specified by:
taskCancelledin interfaceTaskListener- Parameters:
task- task that was canceled
-
taskCompleted
public void taskCompleted(Task task)
Notification that the given task completed so that the progress panel can be removed.- Specified by:
taskCompletedin interfaceTaskListener- Parameters:
task- task that completed
-
setFocusComponent
public void setFocusComponent(java.awt.Component focusComponent)
Sets the component that should be given focus when the dialog is activated.Implementation Note: If the given component is a JButton, then that component will be made the default button.
- Parameters:
focusComponent- the component that should receive default focus.- See Also:
setFocusComponent(Component)
-
getFocusComponent
public java.awt.Component getFocusComponent()
Returns the component that will receive focus when the dialog is shown- Returns:
- the component
-
setHelpLocation
public void setHelpLocation(HelpLocation helpLocation)
Set the help Location for this dialog.- Parameters:
helpLocation- the helpLocation for this dialog.
-
setDefaultButton
public void setDefaultButton(javax.swing.JButton button)
Sets the button to make "Default" when the dialog is shown. If no default button is desired, then pass null as the button value.- Parameters:
button- the button to make default enabled.
-
getDefaultButton
public javax.swing.JButton getDefaultButton()
Returns the default button for the dialog.- Returns:
- the button
-
setTitle
public void setTitle(java.lang.String title)
Sets the title to be displayed in the dialogs title bar- Parameters:
title- the title
-
getTitle
public java.lang.String getTitle()
Returns the title for this component- Returns:
- the title
-
toFront
public void toFront()
Moves the dialog associated with this provider to the front.
-
isVisible
public boolean isVisible()
-
isShowing
public boolean isShowing()
-
dialogShown NEW
protected void dialogShown()
Override this method if you want to do something when the dialog is made visible
-
dialogClosed NEW
protected void dialogClosed()
Override this method if you want to do something when the dialog is made invisible
-
setInitialLocation
public void setInitialLocation(int x, int y)Sets the initial location for the dialog- Parameters:
x- the x coordinatey- the y coordinate
-
getIntialLocation
public java.awt.Point getIntialLocation()
Returns the initial location for the dialog or null if none was set- Returns:
- the point
-
setResizable
public void setResizable(boolean resizeable)
Sets the resizable property for the corresponding dialog.- Parameters:
resizeable- if false the user will not be able to resize the dialog.
-
isResizeable
public boolean isResizeable()
-
getActionContext
public ActionContext getActionContext(java.awt.event.MouseEvent event)
An optional extension point for subclasses to provider action context for the actions used by this provider.- Specified by:
getActionContextin interfaceActionContextProvider- Parameters:
event- The mouse event used (may be null) to generate a popup menu
-
notifyContextChanged NEW
protected void notifyContextChanged()
Signals to this provider that it needs to updated the enabled state of its managed actions.
-
addAction
public void addAction(DockingActionIf action)
Add an action to this dialog. Only actions with icons are added to the toolbar.- Parameters:
action- popup menu action
-
getActions
public java.util.Set<DockingActionIf> getActions()
-
removeAction
public void removeAction(DockingActionIf action)
-
setRememberLocation
public void setRememberLocation(boolean rememberLocation)
Sets this dialog to remember its location from one invocation to the next. The default is to remember location.- Parameters:
rememberLocation- true to remember, false otherwise.
-
getRememberLocation
public boolean getRememberLocation()
Returns true if this dialog remembers its location from one invocation to the next.- Returns:
- true if this dialog remembers its location from one invocation to the next.
-
setRememberSize
public void setRememberSize(boolean rememberSize)
Sets this dialog to remember its size from one invocation to the next. The default is to remember size.- Parameters:
rememberSize- true to remember, false otherwise.
-
getRemberSize
public boolean getRemberSize()
Returns true if this dialog remembers its size from one invocation to the next.- Returns:
- true if this dialog remembers its size from one invocation to the next.
-
getUseSharedLocation
public boolean getUseSharedLocation()
Returns true if this dialog uses shared location and size information.- Returns:
- true if this dialog uses shared location and size information.
- See Also:
setUseSharedLocation(boolean)
-
setUseSharedLocation
public void setUseSharedLocation(boolean useSharedLocation)
Specifies whether or not this dialog component should use the same remembered location (and size) no matter which window this dialog is launched from. The default is not to use shared location and size, which means that there is a remembered location and size for this dialog for each window that has launched it (i.e. the window is the parent of the dialog).- Parameters:
useSharedLocation- true to share locations
-
isTransient
public boolean isTransient()
Returns true if this dialog is intended to be shown and hidden relatively quickly. This is used to determine if this dialog should be allowed to parent other components. The default is false.- Returns:
- true if this dialog is transient
-
setTransient
public void setTransient(boolean isTransient)
Sets this dialog to be transient (seeisTransient()- Parameters:
isTransient- true for transient; false is the default
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception- Throws:
java.lang.Exception
-
-