Public Types | |
enum | NumberOption { Unlimited, K, K, K, K, K, lbl, value } |
enum | TimeOption { Unlimited, h, h, h, h, d, lbl, value } |
enum | OptionWidgets { logs, null, frame, null, NC } |
Public Member Functions | |
ExpertPrefsDlg (Component owner, UserPreferences prefs) | |
void | actionPerformed (ActionEvent e) |
boolean | okPressed () |
UserPreferences | getPreferences () |
Override void | setVisible (boolean visible) |
Package Types | |
Private Member Functions | |
void | initGUI () |
void | buildWidgets () |
void | ratioWidgets () |
void | enableOption (JCheckBox cB) |
Private Attributes | |
UserPreferences | preferences |
UserPreferences | originalPreferences |
JButton | okBtn |
JButton | cancelBtn |
JButton | restoreBtn |
boolean | okBtnPressed = false |
Component | owner |
JComboBox | maxLogsInTableCB = new JComboBox(NumberOption.values()) |
JComboBox | timeFrameCB = new JComboBox(TimeOption.values()) |
JTextField | inputRateTF = new JTextField("0",8) |
JTextField | outputRateTF = new JTextField("0",8) |
JTextField | dynThresholdTF = new JTextField("0",6) |
JTextField | dynDampingTF = new JTextField("0",6) |
JTextField | dynIntervalTF = new JTextField("0",6) |
|
|
|
|
A class containing the options for the time frame of logs
Each option is a couple
|
|
Constructor
|
|
|
|
Build the widgets shown in the dialog |
|
Enable or disable the option of the given check box.
|
|
Return the user preferences defined in the dialog.
|
|
Builds the GUI DISABLED |
|
Return true if the user pressed the Ok button to approve the changes |
|
Ratio the content of the widgets getting their values from
|
|
Override |
|
|
|
The damping factor for the dynamic discarding of logs |
|
The time interval for the dynamic discarding of logs |
|
The threshold for the dynamic discarding of logs |
|
The rate of logs from the NC |
|
The max number of logs in table |
|
|
|
Say if the user pressed the OK or the Cancel button |
|
The preferences received in the constructor and used to reset. |
|
The rate of logs into the table |
|
The component to show this dialog over |
|
The preferences shown and changed by this panel
This is a copy of the object received in the constructor.
|
|
|
|
The max time frame to keep in the table |