[Libreoffice-commits] core.git: wizards/com wizards/Jar_commonwizards.mk
wizards/Jar_commonwizards.mk |5 + wizards/com/sun/star/wizards/ui/event/XActionListenerAdapter.java | 32 ++ wizards/com/sun/star/wizards/ui/event/XTextListenerAdapter.java | 32 ++ 3 files changed, 69 insertions(+) New commits: commit 0c4e9e6b7e4f7155e00f40e31a73a928ce4fad38 Author: Noel Grandin n...@peralex.com Date: Tue Nov 25 10:49:50 2014 +0200 java,wizards: forgot to commit some files Change-Id: Ie4532343cf964ade848454d89b44e381eadb6582 diff --git a/wizards/Jar_commonwizards.mk b/wizards/Jar_commonwizards.mk index 0958a71..ad1ac03 100644 --- a/wizards/Jar_commonwizards.mk +++ b/wizards/Jar_commonwizards.mk @@ -86,6 +86,11 @@ $(eval $(call gb_Jar_add_sourcefiles,commonwizards,\ wizards/com/sun/star/wizards/ui/event/TaskEvent \ wizards/com/sun/star/wizards/ui/event/TaskListener \ wizards/com/sun/star/wizards/ui/event/UnoDataAware \ + wizards/com/sun/star/wizards/ui/event/XActionListenerAdapter\ + wizards/com/sun/star/wizards/ui/event/XItemListenerAdapter \ + wizards/com/sun/star/wizards/ui/event/XMouseListenerAdapter \ + wizards/com/sun/star/wizards/ui/event/XTextListenerAdapter \ + wizards/com/sun/star/wizards/ui/event/XWindowListenerAdapter\ wizards/com/sun/star/wizards/ui/AggregateComponent \ wizards/com/sun/star/wizards/ui/CommandFieldSelection \ wizards/com/sun/star/wizards/ui/ControlScroller \ diff --git a/wizards/com/sun/star/wizards/ui/event/XActionListenerAdapter.java b/wizards/com/sun/star/wizards/ui/event/XActionListenerAdapter.java new file mode 100644 index 000..b7dfddb --- /dev/null +++ b/wizards/com/sun/star/wizards/ui/event/XActionListenerAdapter.java @@ -0,0 +1,32 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the License); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ +package com.sun.star.wizards.ui.event; + +import com.sun.star.awt.ActionEvent; +import com.sun.star.awt.XActionListener; +import com.sun.star.lang.EventObject; + +public class XActionListenerAdapter implements XActionListener { + +public void disposing(EventObject event) { +} + +public void actionPerformed(ActionEvent event) { +} + +} diff --git a/wizards/com/sun/star/wizards/ui/event/XTextListenerAdapter.java b/wizards/com/sun/star/wizards/ui/event/XTextListenerAdapter.java new file mode 100644 index 000..af95771 --- /dev/null +++ b/wizards/com/sun/star/wizards/ui/event/XTextListenerAdapter.java @@ -0,0 +1,32 @@ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the License); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ +package com.sun.star.wizards.ui.event; + +import com.sun.star.awt.TextEvent; +import com.sun.star.awt.XTextListener; +import com.sun.star.lang.EventObject; + +public class XTextListenerAdapter implements XTextListener { + +public void disposing(EventObject event) { +} + +public void textChanged(TextEvent event) { +} + +} ___ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
[Libreoffice-commits] core.git: wizards/com wizards/Jar_commonwizards.mk
wizards/Jar_commonwizards.mk|1 wizards/com/sun/star/wizards/ui/UnoDialog.java |2 wizards/com/sun/star/wizards/ui/UnoDialog2.java | 21 +- wizards/com/sun/star/wizards/ui/WizardDialog.java |5 wizards/com/sun/star/wizards/ui/event/AbstractListener.java | 119 wizards/com/sun/star/wizards/ui/event/CommonListener.java | 97 + 6 files changed, 108 insertions(+), 137 deletions(-) New commits: commit 926744de7a9bb9375f41972f977bfa25fc837c15 Author: Noel Grandin n...@peralex.com Date: Tue Nov 18 13:07:45 2014 +0200 merge AbstractListener into CommonListener since CommonListener is the only subclass Change-Id: If10ccb29991d7c48e2c20fc41330572a669f1497 Reviewed-on: https://gerrit.libreoffice.org/13094 Reviewed-by: Noel Grandin noelgran...@gmail.com Tested-by: Noel Grandin noelgran...@gmail.com diff --git a/wizards/Jar_commonwizards.mk b/wizards/Jar_commonwizards.mk index a13a114..f0945e3 100644 --- a/wizards/Jar_commonwizards.mk +++ b/wizards/Jar_commonwizards.mk @@ -75,7 +75,6 @@ $(eval $(call gb_Jar_add_sourcefiles,commonwizards,\ wizards/com/sun/star/wizards/db/TableDescriptor \ wizards/com/sun/star/wizards/db/SQLQueryComposer \ wizards/com/sun/star/wizards/db/DatabaseObjectWizard \ - wizards/com/sun/star/wizards/ui/event/AbstractListener \ wizards/com/sun/star/wizards/ui/event/CommonListener \ wizards/com/sun/star/wizards/ui/event/DataAware \ wizards/com/sun/star/wizards/ui/event/DataAwareFields \ diff --git a/wizards/com/sun/star/wizards/ui/UnoDialog.java b/wizards/com/sun/star/wizards/ui/UnoDialog.java index d5a0d8e..115f727 100644 --- a/wizards/com/sun/star/wizards/ui/UnoDialog.java +++ b/wizards/com/sun/star/wizards/ui/UnoDialog.java @@ -55,7 +55,7 @@ public class UnoDialog implements EventNames public Resource m_oResource; public XWindowPeer xWindowPeer = null; private PeerConfig m_oPeerConfig; -protected final AbstractListener guiEventListener = new CommonListener(); +protected final CommonListener guiEventListener = new CommonListener(); public UnoDialog(XMultiServiceFactory xMSF) { diff --git a/wizards/com/sun/star/wizards/ui/UnoDialog2.java b/wizards/com/sun/star/wizards/ui/UnoDialog2.java index ab41e0e..0268474 100644 --- a/wizards/com/sun/star/wizards/ui/UnoDialog2.java +++ b/wizards/com/sun/star/wizards/ui/UnoDialog2.java @@ -25,7 +25,6 @@ import com.sun.star.wizards.common.Desktop; import com.sun.star.wizards.common.Helper; import com.sun.star.wizards.common.PropertyNames; import com.sun.star.wizards.common.SystemDialog; -import com.sun.star.wizards.ui.event.*; /** * This class contains convenience methods for inserting components to a dialog. @@ -33,7 +32,7 @@ import com.sun.star.wizards.ui.event.*; * description files to a Java class which builds the same dialog through the UNO API./p * pIt uses an Event-Listener method, which calls a method through reflection * when an event on a component is triggered. - * see the classes AbstractListener, CommonListener, MethodInvocation for details./p + * see the classes CommonListener, MethodInvocation for details./p */ public class UnoDialog2 extends UnoDialog { @@ -50,7 +49,7 @@ public class UnoDialog2 extends UnoDialog if (actionPerformed != null) { -xButton.addActionListener((XActionListener) guiEventListener); +xButton.addActionListener(guiEventListener); guiEventListener.add(sName, EVENT_ACTION_PERFORMED, actionPerformed, eventTarget); } return xButton; @@ -85,7 +84,7 @@ public class UnoDialog2 extends UnoDialog if (itemChanged != null) { -xCheckBox.addItemListener((XItemListener) guiEventListener); +xCheckBox.addItemListener(guiEventListener); guiEventListener.add(sName, EVENT_ITEM_CHANGED, itemChanged, eventTarget); } return xCheckBox; @@ -101,18 +100,18 @@ public class UnoDialog2 extends UnoDialog XComboBox xComboBox = (XComboBox) insertControlModel2(com.sun.star.awt.UnoControlComboBoxModel, sName, sPropNames, oPropValues, XComboBox.class); if (actionPerformed != null) { -xComboBox.addActionListener((XActionListener) guiEventListener); +xComboBox.addActionListener(guiEventListener); guiEventListener.add(sName, EVENT_ACTION_PERFORMED, actionPerformed, eventTarget); } if (itemChanged != null) { -xComboBox.addItemListener((XItemListener) guiEventListener); +xComboBox.addItemListener(guiEventListener);
[Libreoffice-commits] core.git: wizards/com wizards/Jar_commonwizards.mk
wizards/Jar_commonwizards.mk | 1 wizards/com/sun/star/wizards/common/ConfigGroup.java | 6 wizards/com/sun/star/wizards/common/ConfigNode.java | 6 wizards/com/sun/star/wizards/common/ConfigSet.java | 2 wizards/com/sun/star/wizards/common/Configuration.java | 102 - wizards/com/sun/star/wizards/common/DebugHelper.java | 6 wizards/com/sun/star/wizards/common/Desktop.java | 201 +- wizards/com/sun/star/wizards/common/FileAccess.java | 464 wizards/com/sun/star/wizards/common/Helper.java | 102 - wizards/com/sun/star/wizards/common/IRenderer.java | 2 wizards/com/sun/star/wizards/common/Indexable.java | 2 wizards/com/sun/star/wizards/common/JavaTools.java | 163 + wizards/com/sun/star/wizards/common/NamedValueCollection.java| 20 wizards/com/sun/star/wizards/common/NumberFormatter.java | 47 wizards/com/sun/star/wizards/common/NumericalHelper.java | 980 +- wizards/com/sun/star/wizards/common/ParaStyled.java | 4 wizards/com/sun/star/wizards/common/PlaceholderTextElement.java | 14 wizards/com/sun/star/wizards/common/Properties.java | 4 wizards/com/sun/star/wizards/common/PropertyNames.java | 2 wizards/com/sun/star/wizards/common/PropertySetHelper.java | 124 + wizards/com/sun/star/wizards/common/Resource.java| 25 wizards/com/sun/star/wizards/common/SystemDialog.java| 105 - wizards/com/sun/star/wizards/common/TemplateElement.java | 2 wizards/com/sun/star/wizards/common/TextElement.java | 1 wizards/com/sun/star/wizards/common/UCB.java | 17 wizards/com/sun/star/wizards/common/XMLProvider.java | 2 wizards/com/sun/star/wizards/db/BlindtextCreator.java| 12 wizards/com/sun/star/wizards/db/ColumnPropertySet.java | 16 wizards/com/sun/star/wizards/db/CommandMetaData.java | 146 + wizards/com/sun/star/wizards/db/CommandName.java | 27 wizards/com/sun/star/wizards/db/DBMetaData.java | 69 wizards/com/sun/star/wizards/db/FieldColumn.java | 18 wizards/com/sun/star/wizards/db/QueryMetaData.java | 38 wizards/com/sun/star/wizards/db/RecordParser.java| 23 wizards/com/sun/star/wizards/db/SQLQueryComposer.java| 43 wizards/com/sun/star/wizards/db/TableDescriptor.java | 71 wizards/com/sun/star/wizards/db/TypeInspector.java | 48 wizards/com/sun/star/wizards/document/Control.java | 42 wizards/com/sun/star/wizards/document/DatabaseControl.java | 14 wizards/com/sun/star/wizards/document/FormHandler.java | 147 + wizards/com/sun/star/wizards/document/GridControl.java | 7 wizards/com/sun/star/wizards/document/OfficeDocument.java| 165 + wizards/com/sun/star/wizards/document/Shape.java | 4 wizards/com/sun/star/wizards/document/TimeStampControl.java | 28 wizards/com/sun/star/wizards/form/CallFormWizard.java| 31 wizards/com/sun/star/wizards/form/DataEntrySetter.java | 21 wizards/com/sun/star/wizards/form/FieldLinker.java | 19 wizards/com/sun/star/wizards/form/Finalizer.java | 27 wizards/com/sun/star/wizards/form/FormConfiguration.java | 98 - wizards/com/sun/star/wizards/form/FormControlArranger.java | 25 wizards/com/sun/star/wizards/form/FormDocument.java | 65 wizards/com/sun/star/wizards/form/FormWizard.java| 26 wizards/com/sun/star/wizards/form/StyleApplier.java | 108 - wizards/com/sun/star/wizards/form/UIControlArranger.java | 41 wizards/com/sun/star/wizards/query/CallQueryWizard.java | 12 wizards/com/sun/star/wizards/query/Finalizer.java| 20 wizards/com/sun/star/wizards/query/QuerySummary.java | 16