Thread: [Japi-cvs] SF.net SVN: japi: [452] libs/swing-prefs/trunk/src/net/sf/japi/swing/prefs/ PreferencesP
Status: Beta
Brought to you by:
christianhujer
From: <chr...@us...> - 2007-06-25 20:25:39
|
Revision: 452 http://svn.sourceforge.net/japi/?rev=452&view=rev Author: christianhujer Date: 2007-06-25 13:25:36 -0700 (Mon, 25 Jun 2007) Log Message: ----------- Fixed checkstyle issues. Modified Paths: -------------- libs/swing-prefs/trunk/src/net/sf/japi/swing/prefs/PreferencesPane.java Modified: libs/swing-prefs/trunk/src/net/sf/japi/swing/prefs/PreferencesPane.java =================================================================== --- libs/swing-prefs/trunk/src/net/sf/japi/swing/prefs/PreferencesPane.java 2007-06-25 20:24:53 UTC (rev 451) +++ libs/swing-prefs/trunk/src/net/sf/japi/swing/prefs/PreferencesPane.java 2007-06-25 20:25:36 UTC (rev 452) @@ -54,7 +54,7 @@ /** A map for DIALOGS that are already displaying. * This map is used to prevent the dialog for the same PreferencesGroup be shown twice within the same application. */ - private static final Map<PreferencesGroup,JDialog> DIALOGS = new HashMap<PreferencesGroup,JDialog>(); + private static final Map<PreferencesGroup, JDialog> DIALOGS = new HashMap<PreferencesGroup, JDialog>(); /** The group of preferences to display. */ private final PreferencesGroup prefs; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2007-07-30 20:34:08
|
Revision: 563 http://japi.svn.sourceforge.net/japi/?rev=563&view=rev Author: christianhujer Date: 2007-07-30 13:34:00 -0700 (Mon, 30 Jul 2007) Log Message: ----------- Fixed javadoc and inspections issues. Modified Paths: -------------- libs/swing-prefs/trunk/src/net/sf/japi/swing/prefs/PreferencesPane.java Modified: libs/swing-prefs/trunk/src/net/sf/japi/swing/prefs/PreferencesPane.java =================================================================== --- libs/swing-prefs/trunk/src/net/sf/japi/swing/prefs/PreferencesPane.java 2007-07-30 20:30:49 UTC (rev 562) +++ libs/swing-prefs/trunk/src/net/sf/japi/swing/prefs/PreferencesPane.java 2007-07-30 20:34:00 UTC (rev 563) @@ -40,6 +40,7 @@ import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionListener; import net.sf.japi.swing.ActionFactory; +import net.sf.japi.swing.ActionMethod; /** Panel to display preferences. * @serial exclude This class is not intended to be serialized. @@ -51,6 +52,9 @@ /** Action Factory. */ private static final ActionFactory ACTION_FACTORY = ActionFactory.getFactory("net.sf.japi.swing.prefs"); + /** Width of the horizontal struts between button groups. */ + private static final int HORIZONTAL_STRUTS_WIDTH = 50; + /** A map for DIALOGS that are already displaying. * This map is used to prevent the dialog for the same PreferencesGroup be shown twice within the same application. */ @@ -160,10 +164,10 @@ return new Object[] { new JButton(helpAction), new JButton(defaultsAction), - Box.createHorizontalStrut(50), + Box.createHorizontalStrut(HORIZONTAL_STRUTS_WIDTH), new JButton(okAction), new JButton(applyAction), - Box.createHorizontalStrut(50), + Box.createHorizontalStrut(HORIZONTAL_STRUTS_WIDTH), new JButton(revertAction), new JButton(cancelAction), }; @@ -198,9 +202,8 @@ cards.show(cardPanel, Integer.toString(index)); } - /** Action method for cancel. - * @used - */ + /** Action method for cancel. */ + @ActionMethod public void cancel() { setValue(CANCEL_OPTION); } @@ -216,41 +219,36 @@ } } - /** Action method for defaults. - * @used - */ + /** Action method for defaults. */ + @ActionMethod public void defaults() { currentPref.defaults(); } - /** Action method for help. - * @used - */ + /** Action method for help. */ + @ActionMethod public void help() { // TODO } - /** Action method for ok. - * @used - */ + /** Action method for ok. */ @SuppressWarnings({"InstanceMethodNamingConvention"}) + @ActionMethod public void ok() { apply(); setValue(OK_OPTION); } - /** Action method for apply. - * @used - */ + /** Action method for apply. */ + @ActionMethod public void apply() { if (currentPref.isChanged()) { currentPref.apply(); } } - /** Action method for revert. - * @used - */ + /** Action method for revert. */ + @ActionMethod public void revert() { if (currentPref.isChanged()) { currentPref.revert(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |