public class AuditProfileDialog
extends java.lang.Object
implements java.awt.event.ActionListener, javax.swing.event.ChangeListener, javax.swing.event.ListDataListener
This panel has a profile selector and action buttons at the top. The profile selector controls which profile the dialog will display and modify. The actions allow the selected profile to be saved, deleted, restored to default values, and exported, and allow an external profile to be imported (and become the selected profile).
The contents of the selected profile are shown below the profile selector: the rules or metrics are shown in a tree; the properties, including a description, of the selected rule or metric are shown in an adjoining property sheet.
ProfileModel
,
Profile
,
ProfileTransaction
Constructor and Description |
---|
AuditProfileDialog(ProfileModel model) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
Handles user actions from button, menu item, or checkbox.
|
void |
contentsChanged(javax.swing.event.ListDataEvent event)
Reports that the selection changed in the combobox (index of -1) or that
an attribute of a particular profile changed.
|
protected java.awt.Component |
createComponent() |
void |
intervalAdded(javax.swing.event.ListDataEvent event)
Reports that a profile was added to the combobox.
|
void |
intervalRemoved(javax.swing.event.ListDataEvent event)
Reports that a profile was removed from the combobox.
|
Profile |
show()
Shows a modal dialog using this panel and returns the selected profile, or
null if none was selected.
|
Profile |
show(java.awt.Component parent)
Shows a modal dialog using this panel and returns the selected profile, or
null if none was selected.
|
void |
stateChanged(javax.swing.event.ChangeEvent event)
Reports the selected tabbed pane changed.
|
public AuditProfileDialog(ProfileModel model)
public Profile show()
public Profile show(java.awt.Component parent)
parent
- The parent component for the dialog.protected java.awt.Component createComponent()
public void intervalAdded(javax.swing.event.ListDataEvent event)
intervalAdded
in interface javax.swing.event.ListDataListener
public void intervalRemoved(javax.swing.event.ListDataEvent event)
intervalRemoved
in interface javax.swing.event.ListDataListener
public void contentsChanged(javax.swing.event.ListDataEvent event)
contentsChanged
in interface javax.swing.event.ListDataListener
public void stateChanged(javax.swing.event.ChangeEvent event)
stateChanged
in interface javax.swing.event.ChangeListener
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener