Class OptionalConfigSpecifier

  extended by<>
      extended by
          extended by
All Implemented Interfaces:<>

public class OptionalConfigSpecifier
extends ConfigSpecifier

ConfigSpecifier subclass that adds checkboxes for some of its component specifiers, indicating whether those specifiers should be used for the result or not. Where they are not used, the relevant GUI controls are disabled.

This is quite like AutoConfigSpecifier, but the override value is not reflected in the GUI. Perhaps the two classes should be combined?

18 Mar 2013
Mark Taylor

Nested Class Summary
Nested classes/interfaces inherited from class
Constructor Summary
OptionalConfigSpecifier(<?>[] allKeys,<?>[] optKeys, String optionText)
Method Summary
 void configureFrom(OptionalConfigSpecifier template)
          Configures this specifier with the current state of a supplied template. getSpecifiedValue()
Methods inherited from class
checkConfig, checkRangeSense, createComponent, getConfigKeys, getSpecifier, reportError, setSpecifiedValue, submitReport
Methods inherited from class
addActionListener, fireAction, getActionForwarder, getChangeForwarder, getComponent, isXFill, removeActionListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public OptionalConfigSpecifier(<?>[] allKeys,
                     <?>[] optKeys,
                               String optionText)

allKeys - all of the keys
optKeys - subset of allKeys which should be annotated with activation checkboxes; any entries not contained in allKeys are ignored
optionText - text to annotate the checkboxes
Method Detail


public getSpecifiedValue()
Specified by:
getSpecifiedValue in interface<>
getSpecifiedValue in class ConfigSpecifier


public void configureFrom(OptionalConfigSpecifier template)
Configures this specifier with the current state of a supplied template.

template - specifier supplying required configuration

Copyright © 2003-2019 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.