XML Feed leitet jetzt von den Basic-Properties zum nächsten Schritt weiter.

git-svn-id: https://svn.libreccm.org/ccm/trunk@2355 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2013-10-15 13:37:36 +00:00
parent af55a2d00f
commit b9e4dda96c
1 changed files with 17 additions and 14 deletions

View File

@ -15,10 +15,8 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package com.arsdigita.cms.contenttypes.xmlfeed.ui;
import com.arsdigita.bebop.form.TextField;
import com.arsdigita.bebop.Label;
import com.arsdigita.bebop.Component;
@ -32,7 +30,6 @@ import com.arsdigita.cms.ui.formbuilder.FormProperties;
import com.arsdigita.cms.contenttypes.xmlfeed.XMLFeed;
import com.arsdigita.cms.contenttypes.xmlfeed.util.XMLFeedGlobalizationUtil;
public class XMLFeedProperties extends FormProperties {
public XMLFeedProperties(ItemSelectionModel model,
@ -42,7 +39,7 @@ public class XMLFeedProperties extends FormProperties {
@Override
protected BasicPageForm buildEditForm(ItemSelectionModel model) {
return new XMLFeedPropertyEditForm(model);
return new XMLFeedPropertyEditForm(model, this);
}
@Override
@ -55,7 +52,12 @@ public class XMLFeedProperties extends FormProperties {
private TextField m_url;
public XMLFeedPropertyEditForm(ItemSelectionModel model) {
super(model);
//super(model);
this(model, null);
}
public XMLFeedPropertyEditForm(ItemSelectionModel model, XMLFeedProperties feedProperties) {
super(model, feedProperties);
}
@Override
@ -79,7 +81,6 @@ public class XMLFeedProperties extends FormProperties {
return item;
}
@Override
public ContentPage processBasicWidgets(FormSectionEvent e) {
XMLFeed item = (XMLFeed) super.processBasicWidgets(e);
@ -87,9 +88,11 @@ public class XMLFeedProperties extends FormProperties {
item.setURL((String) m_url.getValue(e.getPageState()));
return item;
}
}
protected class XMLFeedPropertySheet extends FormPropertySheet {
public XMLFeedPropertySheet(ItemSelectionModel model) {
super(model);
@ -97,6 +100,6 @@ public class XMLFeedProperties extends FormProperties {
"cms.contenttypes.ui.xmlfeed.url"),
XMLFeed.URL);
}
}
}
}