/**
* The configuration dialog.
- *
+ *
* @author <a href="mailto:dr@ina-germany.de">David Roden</a>
*/
public class ConfigurationDialog extends JDialog implements I18nable {
/**
* Creates a new configuration dialog.
- *
+ *
* @param swingInterface
* The Swing interface
*/
/**
* Returns whether the dialog was cancelled or confirmed. If the dialog was
* cancelled, no further processing should be done.
- *
+ *
* @return <code>true</code> if the dialog was cancelled,
* <code>false</code> otherwise
*/
/**
* Returns whether the advanced mode is selected.
- *
+ *
* @return <code>true</code> if the advanced mode is selected,
* <code>false</code> otherwise
*/
/**
* Sets whether the advanced mode is selected.
- *
+ *
* @param advancedMode
* <code>true</code> if the advanced mode is selected,
* <code>false</code> otherwise
* Returns whether the “beautify” checkbox has been selected. The result of
* this method should not be used if {@link #wasCancelled()} returned
* <code>true</code>!
- *
+ *
* @return <code>true</code> if the checkbox was selected,
* <code>false</code> otherwise
*/
/**
* Sets the state of the “antialias” checkbox.
- *
+ *
* @param antialias
* The state of the checkbox
*/
/**
* Returns the font for the controls.
- *
+ *
* @return The control font, or <code>null</code> if no custom control
* font is to be used
*/
/**
* Sets the font for the controls.
- *
+ *
* @param controlFont
* The control font, or <code>null</code> if no custom control
* font is to be used
/**
* Returns the font for user input.
- *
+ *
* @return The font for user input, or <code>null</code> if no custom user
* input font is to be used
*/
/**
* Sets the font for user input.
- *
+ *
* @param userFont
* The font for user input, or <code>null</code> if no custom
* user input font is to be used
/**
* Returns the class name of the selected look and feel, if a custom look
* and feel is selected.
- *
+ *
* @return The class name of the look and feel to load, or <code>null</code>
* if no special look and feel should be used
*/
/**
* Sets the given look and feel.
- *
+ *
* @param lookAndFeel
* The class name of the look and feel, or <code>null</code> to
* not select a custom look and feel
/**
* Creates the interface configuration panel.
- *
+ *
* @return The interface configuration panel
*/
private JComponent createInterfaceConfig() {
/**
* Creates the panel for the interface tweaks configuration.
- *
+ *
* @return The interface tweaks configuration panel
*/
private JComponent createInterfaceTweaksConfig() {
LookAndFeelInfo[] lookAndFeelInfos = UIManager.getInstalledLookAndFeels();
List<LookAndFeelWrapper> lookAndFeelWrappers = new ArrayList<LookAndFeelWrapper>();
- for (LookAndFeelInfo lookAndFeelInfo: lookAndFeelInfos) {
+ for (LookAndFeelInfo lookAndFeelInfo : lookAndFeelInfos) {
lookAndFeelWrappers.add(new LookAndFeelWrapper(lookAndFeelInfo.getClassName(), lookAndFeelInfo.getName()));
}
customLAFComboBox = new JComboBox(lookAndFeelWrappers.toArray(new LookAndFeelWrapper[0]));
/**
* Wrapper around class name and name of a {@link LookAndFeel}.
- *
+ *
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
*/
private static class LookAndFeelWrapper {
/**
* Creates a new wrapper around the given class name and name of a look
* and feel.
- *
+ *
* @param className
* The class name of the look and feel
* @param lookAndFeelName
/**
* Returns the class name of the look and feel.
- *
+ *
* @return The class name of the look and feel
*/
public String getClassName() {