From: <ba...@us...> - 2007-12-14 01:15:56
|
Revision: 1315 http://obo.svn.sourceforge.net/obo/?rev=1315&view=rev Author: balhoff Date: 2007-12-13 17:16:00 -0800 (Thu, 13 Dec 2007) Log Message: ----------- Just realized BBOP already had an abstract LayoutListener to subclass. Deleted unnecessary AbstractLayoutListener. Modified Paths: -------------- phenote/trunk/src/java/phenote/charactertemplate/CharacterTemplateTable.java phenote/trunk/src/java/phenote/gui/CharacterTable.java Removed Paths: ------------- phenote/trunk/src/java/phenote/gui/AbstractLayoutListener.java Modified: phenote/trunk/src/java/phenote/charactertemplate/CharacterTemplateTable.java =================================================================== --- phenote/trunk/src/java/phenote/charactertemplate/CharacterTemplateTable.java 2007-12-14 01:11:45 UTC (rev 1314) +++ phenote/trunk/src/java/phenote/charactertemplate/CharacterTemplateTable.java 2007-12-14 01:16:00 UTC (rev 1315) @@ -26,6 +26,7 @@ import org.bbop.framework.AbstractGUIComponent; import org.bbop.framework.ComponentManager; import org.bbop.framework.GUIComponent; +import org.bbop.framework.dock.LayoutAdapter; import org.swixml.SwingEngine; import phenote.config.Config; @@ -38,7 +39,6 @@ import phenote.edit.CharChangeEvent; import phenote.edit.CharChangeListener; import phenote.edit.EditManager; -import phenote.gui.AbstractLayoutListener; import phenote.gui.CharacterTableSource; import phenote.gui.TableColumnPrefsSaver; import phenote.gui.field.CharFieldMatcherEditor; @@ -404,7 +404,7 @@ } } - private class ComponentLayoutListener extends AbstractLayoutListener { + private class ComponentLayoutListener extends LayoutAdapter { @Override public void focusChanged(GUIComponent old, GUIComponent newComponent) { Deleted: phenote/trunk/src/java/phenote/gui/AbstractLayoutListener.java =================================================================== --- phenote/trunk/src/java/phenote/gui/AbstractLayoutListener.java 2007-12-14 01:11:45 UTC (rev 1314) +++ phenote/trunk/src/java/phenote/gui/AbstractLayoutListener.java 2007-12-14 01:16:00 UTC (rev 1315) @@ -1,56 +0,0 @@ -package phenote.gui; - -import org.bbop.framework.GUIComponent; -import org.bbop.framework.dock.LayoutListener; - -/** - * This abstract class lets subclassers implement just the parts of the interface they need. - */ -public abstract class AbstractLayoutListener implements LayoutListener { - - public void add(GUIComponent parent, GUIComponent child) { - // TODO Auto-generated method stub - - } - - public boolean closing(GUIComponent c) { - // TODO Auto-generated method stub - return false; - } - - public boolean docking(GUIComponent component) { - // TODO Auto-generated method stub - return false; - } - - public void focusChanged(GUIComponent old, GUIComponent newComponent) { - // TODO Auto-generated method stub - - } - - public boolean maximizing(GUIComponent component) { - // TODO Auto-generated method stub - return false; - } - - public boolean minimizing(GUIComponent component) { - // TODO Auto-generated method stub - return false; - } - - public boolean restoring(GUIComponent component) { - // TODO Auto-generated method stub - return false; - } - - public void titleChanged(GUIComponent component, String newTitle) { - // TODO Auto-generated method stub - - } - - public boolean undocking(GUIComponent component) { - // TODO Auto-generated method stub - return false; - } - -} Modified: phenote/trunk/src/java/phenote/gui/CharacterTable.java =================================================================== --- phenote/trunk/src/java/phenote/gui/CharacterTable.java 2007-12-14 01:11:45 UTC (rev 1314) +++ phenote/trunk/src/java/phenote/gui/CharacterTable.java 2007-12-14 01:16:00 UTC (rev 1315) @@ -9,6 +9,7 @@ import org.bbop.framework.AbstractGUIComponent; import org.bbop.framework.ComponentManager; import org.bbop.framework.GUIComponent; +import org.bbop.framework.dock.LayoutAdapter; import phenote.datamodel.CharacterI; import phenote.gui.field.FieldPanel; @@ -95,7 +96,7 @@ return FieldPanel.getCurrentFieldPanel(); } - private class ComponentLayoutListener extends AbstractLayoutListener { + private class ComponentLayoutListener extends LayoutAdapter { @Override public void focusChanged(GUIComponent old, GUIComponent newComponent) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |