Gridarta Editor
net.sf.gridarta.gui.dialog.prefs.UpdatePreferences Class Reference

Preferences Module for update preferences. More...

+ Inheritance diagram for net.sf.gridarta.gui.dialog.prefs.UpdatePreferences:
+ Collaboration diagram for net.sf.gridarta.gui.dialog.prefs.UpdatePreferences:

Public Member Functions

void apply ()
 
void defaults ()
 
boolean isAutoUpdate ()
 Returns the auto-update state. More...
 
boolean isChanged ()
 
void revert ()
 
void setAutoUpdate (final boolean autoUpdate)
 Sets the auto-update state. More...
 
 UpdatePreferences ()
 Creates a new instance. More...
 

Private Member Functions

Component createComboBox ()
 Creates the component with update choices. More...
 
Component createUpdatePanel ()
 Creates the sub-panel with the update settings. More...
 

Static Private Member Functions

static Border createTitledBorder (@NotNull final String titleKey)
 Creates a titled border. More...
 

Private Attributes

AbstractButton autoUpdate
 Checkbox whether to automatically check for updates on startup. More...
 
JComboBox< String > interval
 ComboBox with selected interval. More...
 

Static Private Attributes

static final ActionBuilder ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta")
 Action Builder. More...
 
static final Preferences PREFERENCES = Preferences.userNodeForPackage(MainControl.class)
 Preferences. More...
 
static final long serialVersionUID = 1L
 The serial version UID. More...
 

Detailed Description

Preferences Module for update preferences.

Author
Christian Hujer @serial exclude

Definition at line 49 of file UpdatePreferences.java.

Constructor & Destructor Documentation

◆ UpdatePreferences()

net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.UpdatePreferences ( )

Member Function Documentation

◆ apply()

◆ createComboBox()

◆ createTitledBorder()

static Border net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.createTitledBorder ( @NotNull final String  titleKey)
staticprivate

Creates a titled border.

Parameters
titleKeythe action key for border title
Returns
the titled border

Definition at line 97 of file UpdatePreferences.java.

References net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.ACTION_BUILDER, net.sf.gridarta.gui.utils.GUIConstants.DIALOG_BORDER, and net.sf.gridarta.utils.ActionBuilderUtils.getString().

Referenced by net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.createUpdatePanel().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createUpdatePanel()

◆ defaults()

◆ isAutoUpdate()

boolean net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.isAutoUpdate ( )

Returns the auto-update state.

Returns
the auto-update state

Definition at line 154 of file UpdatePreferences.java.

References net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.interval.

◆ isChanged()

◆ revert()

◆ setAutoUpdate()

void net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.setAutoUpdate ( final boolean  autoUpdate)

Sets the auto-update state.

Parameters
autoUpdatethe auto-update state

Definition at line 145 of file UpdatePreferences.java.

References net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.autoUpdate, and net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.interval.

Member Data Documentation

◆ ACTION_BUILDER

final ActionBuilder net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta")
staticprivate

◆ autoUpdate

◆ interval

◆ PREFERENCES

◆ serialVersionUID

final long net.sf.gridarta.gui.dialog.prefs.UpdatePreferences.serialVersionUID = 1L
staticprivate

The serial version UID.

Definition at line 54 of file UpdatePreferences.java.


The documentation for this class was generated from the following file: