Classes | Public Types | Public Member Functions

alma.acs.logging.preferences.ExpertPrefsDlg Class Reference

Inherits javax::swing::JDialog, and java::awt::event::ActionListener.

List of all members.

Classes

class  PassVerifier

Public Types

enum  NumberOption {
  UNLIMITED = ("Unlimited",0), K100 = ("100K",100000), K200 = ("200K",200000), K300 = ("300K",300000),
  K400 = ("400K",400000), K500 = ("500K",500000)
}
enum  TimeOption {
  UNLIMITED = ("Unlimited",0), H1 = ("1h",60), H3 = ("3h",180), H5 = ("5h",300),
  H12 = ("12h",720), D1 = ("1d",1440)
}
enum  OptionWidgets {
  MAX_NUM_OF_LOGS = ("Max num. of logs:",null), TIME_FRAME = ("Time frame:",null), MAX_INPUT_RATE, MAX_OUTPUT_RATE,
  DYNAMIC_DISCARD_LEVEL
}

Public Member Functions

 ExpertPrefsDlg (Component owner, UserPreferences prefs)
void actionPerformed (ActionEvent e)
boolean okPressed ()
UserPreferences getPreferences ()
void setVisible (boolean visible)

Detailed Description

A dialog to setup (expert) preferences.

Author:
acaproni

Member Enumeration Documentation

A class containing the options for the number of logs.

Each option is a couple <label, value> where

  • value is the value of the option
  • label is a label to show to the user for that option
Enumerator:
UNLIMITED 
K100 
K200 
K300 
K400 
K500 

OptionWidgets is essentially used to access the check boxes with a meaningful name.

Author:
acaproni
Enumerator:
MAX_NUM_OF_LOGS 
TIME_FRAME 
MAX_INPUT_RATE 
MAX_OUTPUT_RATE 
DYNAMIC_DISCARD_LEVEL 

A class containing the options for the time frame of logs

Each option is a couple <label, value> where

  • value is the value of the option
  • label is a label to show to the user for that option
Enumerator:
UNLIMITED 
H1 
H3 
H5 
H12 
D1 

Constructor & Destructor Documentation

alma.acs.logging.preferences.ExpertPrefsDlg.ExpertPrefsDlg ( Component  owner,
UserPreferences  prefs 
)

Member Function Documentation

void alma.acs.logging.preferences.ExpertPrefsDlg.actionPerformed ( ActionEvent  e  ) 
See also:
java.awt.event.ActionListener
java.awt.event.ActionEvent

References alma.acs.logging.preferences.UserPreferences.clone(), and alma.acs.logging.preferences.ExpertPrefsDlg.setVisible().

UserPreferences alma.acs.logging.preferences.ExpertPrefsDlg.getPreferences (  ) 
boolean alma.acs.logging.preferences.ExpertPrefsDlg.okPressed (  ) 

Return true if the user pressed the Ok button to approve the changes

Referenced by com.cosylab.logging.LoggingClient.EventHandler.actionPerformed().

void alma.acs.logging.preferences.ExpertPrefsDlg.setVisible ( boolean  visible  ) 

Override JDialog.setVisible to show this dialog over the LogsingClient component.

Referenced by alma.acs.logging.preferences.ExpertPrefsDlg.actionPerformed(), and alma.acs.logging.preferences.ExpertPrefsDlg.ExpertPrefsDlg().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties