diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-01-26 16:22:44 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-01-26 16:22:44 +0000 |
commit | 3156164df74769076a3a1b8fc0ba3c9dfa28e330 (patch) | |
tree | b05da9e9aeff88de735dce78b6cde6def470d702 | |
parent | 33b53fee15814d6b30b294608d3b74677cc982f9 (diff) |
INTEGRATION: CWS qwizardspp2 (1.10.2); FILE MERGED
2006/01/12 16:15:37 bc 1.10.2.1: #i59756# new Itemlistener added to WWD_Startup.java
-rw-r--r-- | wizards/com/sun/star/wizards/web/WWD_Startup.java | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/wizards/com/sun/star/wizards/web/WWD_Startup.java b/wizards/com/sun/star/wizards/web/WWD_Startup.java index ac335e1455ac..c1b39abe3398 100644 --- a/wizards/com/sun/star/wizards/web/WWD_Startup.java +++ b/wizards/com/sun/star/wizards/web/WWD_Startup.java @@ -4,9 +4,9 @@ * * $RCSfile: WWD_Startup.java,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: hr $ $Date: 2005-12-28 17:26:20 $ + * last change: $Author: hr $ $Date: 2006-01-26 17:22:44 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -52,6 +52,7 @@ import com.sun.star.awt.XWindowPeer; import com.sun.star.frame.XDesktop; import com.sun.star.frame.XFrame; import com.sun.star.frame.XModel; +import com.sun.star.lang.EventObject; import com.sun.star.lang.XComponent; import com.sun.star.lang.XMultiServiceFactory; import com.sun.star.uno.UnoRuntime; @@ -124,7 +125,7 @@ import com.sun.star.wizards.web.data.CGStyle; * */ -public abstract class WWD_Startup extends WWD_General implements XItemListener{ +public abstract class WWD_Startup extends WWD_General{ SimpleDataAware sda = null; /** @@ -543,12 +544,20 @@ public abstract class WWD_Startup extends WWD_General implements XItemListener{ } - public void itemStateChanged(com.sun.star.awt.ItemEvent itemEvent) { - sda.updateData(); - //TODO xf uncomment - //refresh.eventPerformed(ie); - } + public class SimpleDataawareUpdater implements XItemListener{ + /* (non-Javadoc) + * @see com.sun.star.lang.XEventListener#disposing(com.sun.star.lang.EventObject) + */ + public void disposing(EventObject arg0) { + // TODO Auto-generated method stub + } + public void itemStateChanged(com.sun.star.awt.ItemEvent itemEvent) { + sda.updateData(); + //TODO xf uncomment + //refresh.eventPerformed(ie); + } + } /** * attaches to each ui-data-control (like checkbox, groupbox or @@ -579,7 +588,7 @@ public abstract class WWD_Startup extends WWD_General implements XItemListener{ //page 3 : Layout Object design = settings.cp_DefaultSession.cp_Design; sda = new SimpleDataAware(design, new DataAware.PropertyValue("Layout",design), ilLayouts, new DataAware.PropertyValue("Selected",ilLayouts)); - ilLayouts.addItemListener(this); + ilLayouts.addItemListener(new SimpleDataawareUpdater()); designAware.add(sda); //page 4 : layout 2 |