de.frag.umlplugin.settings
Class SettingsForm

java.lang.Object
  extended by de.frag.umlplugin.settings.SettingsForm

public class SettingsForm
extends java.lang.Object

Settings form.


Nested Class Summary
 class SettingsForm.AddDeleteList
          List for adding/deleting entries in a string list.
 
Constructor Summary
SettingsForm()
          Creates a new settings form by creating all GUI elements and building a layout.
 
Method Summary
 javax.swing.JPanel getRootPanel()
          Gets the root panel that contains all GUI components and finished layout created at constrcution time.
 boolean isModified(Settings data)
          Checks whether this forms has modified the settings.
 boolean isModifiedClassVisibility(Settings data)
          Checks whether class visibility was modified.
 boolean isReducedClassVisibility(Settings data)
          Checks whether class visibility was reduced.
 void readFromSettings(Settings data)
          Reads settings from given settings object and copies contained data to all GUI components of this form.
 void writeToSettings(Settings data)
          Writes settings from this form to the given settings object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SettingsForm

public SettingsForm()
Creates a new settings form by creating all GUI elements and building a layout.

Method Detail

getRootPanel

@NotNull
public javax.swing.JPanel getRootPanel()
Gets the root panel that contains all GUI components and finished layout created at constrcution time.

Returns:
root panel

readFromSettings

public void readFromSettings(@NotNull
                             Settings data)
Reads settings from given settings object and copies contained data to all GUI components of this form.

Parameters:
data - data to read settings from

writeToSettings

public void writeToSettings(@NotNull
                            Settings data)
Writes settings from this form to the given settings object.

Parameters:
data - settings object to write to

isModified

public boolean isModified(Settings data)
Checks whether this forms has modified the settings.

Parameters:
data - settings object to compare this forms contents to
Returns:
true, if this form contains different settings than given settings object; false otherwise

isReducedClassVisibility

public boolean isReducedClassVisibility(@NotNull
                                        Settings data)
Checks whether class visibility was reduced.

Parameters:
data - old (unchanged) settings data
Returns:
true, if class visibility was reduced; false otherwise

isModifiedClassVisibility

public boolean isModifiedClassVisibility(@NotNull
                                         Settings data)
Checks whether class visibility was modified.

Parameters:
data - old (unchanged) settings data
Returns:
true, if class visibility was modified; false otherwise