edu.cs.ai.kreator.control.config
Class LoggingLevelStringSelectionConfigurationOption

java.lang.Object
  extended by edu.cs.ai.kreator.control.config.ConfigurationObject
      extended by edu.cs.ai.kreator.control.config.ConfigurationOption
          extended by edu.cs.ai.kreator.control.config.StringSelectionConfigurationOption
              extended by edu.cs.ai.kreator.control.config.LoggingLevelStringSelectionConfigurationOption
All Implemented Interfaces:
SideEffector

public class LoggingLevelStringSelectionConfigurationOption
extends StringSelectionConfigurationOption
implements SideEffector

This class represents a string selection configuration option for changing the logging level. It implements the SideEffector interface to inform the logging system of a new log level.

Author:
Matthias Thimm

Field Summary
 
Fields inherited from class edu.cs.ai.kreator.control.config.StringSelectionConfigurationOption
selectableValues
 
Fields inherited from class edu.cs.ai.kreator.control.config.ConfigurationOption
REQUIRES_NO_RESTART, REQUIRES_RESTART
 
Fields inherited from class edu.cs.ai.kreator.control.config.ConfigurationObject
IS_EDITABLE, IS_INVISIBLE, IS_NOT_EDITABLE, IS_VISIBLE, PATHCAPTION_DELIMITER, PATHID_DELIMITER
 
Constructor Summary
LoggingLevelStringSelectionConfigurationOption(java.lang.String id, java.lang.String caption, java.lang.String description)
           
LoggingLevelStringSelectionConfigurationOption(java.lang.String id, java.lang.String caption, java.lang.String description, int requiresRestart)
           
LoggingLevelStringSelectionConfigurationOption(java.lang.String id, java.lang.String caption, java.lang.String description, int visible, int editable)
           
LoggingLevelStringSelectionConfigurationOption(java.lang.String id, java.lang.String caption, java.lang.String description, int visible, int editable, int requiresRestart)
           
 
Method Summary
 void actionPerformed(java.lang.Object newValue)
          This method is invoked when the initial configuration is loaded and whenever the value of the given option changes.
 
Methods inherited from class edu.cs.ai.kreator.control.config.StringSelectionConfigurationOption
addSelectableValue, getSelectableValues, isValid, parseValue, writeValue
 
Methods inherited from class edu.cs.ai.kreator.control.config.ConfigurationOption
getDefaultValue, hasDefaultValue, requiresRestart, setDefaultValue
 
Methods inherited from class edu.cs.ai.kreator.control.config.ConfigurationObject
getCaption, getDescription, getId, getParent, getPathCaption, getPathId, hasParent, isEditable, isVisible, setParent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LoggingLevelStringSelectionConfigurationOption

public LoggingLevelStringSelectionConfigurationOption(java.lang.String id,
                                                      java.lang.String caption,
                                                      java.lang.String description)

LoggingLevelStringSelectionConfigurationOption

public LoggingLevelStringSelectionConfigurationOption(java.lang.String id,
                                                      java.lang.String caption,
                                                      java.lang.String description,
                                                      int visible,
                                                      int editable)

LoggingLevelStringSelectionConfigurationOption

public LoggingLevelStringSelectionConfigurationOption(java.lang.String id,
                                                      java.lang.String caption,
                                                      java.lang.String description,
                                                      int requiresRestart)

LoggingLevelStringSelectionConfigurationOption

public LoggingLevelStringSelectionConfigurationOption(java.lang.String id,
                                                      java.lang.String caption,
                                                      java.lang.String description,
                                                      int visible,
                                                      int editable,
                                                      int requiresRestart)
Method Detail

actionPerformed

public void actionPerformed(java.lang.Object newValue)
Description copied from interface: SideEffector
This method is invoked when the initial configuration is loaded and whenever the value of the given option changes. This methods informs the option of its new value.

Specified by:
actionPerformed in interface SideEffector
Parameters:
newValue - the new value.