|
|
|
|
Re: Tile Widget Example [message #1849532 is a reply to message #1849528] |
Mon, 24 January 2022 08:06 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Oleg Zhuravlev![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=jorj44%40gmail.com) Messages: 8 Registered: January 2022 |
Junior Member |
|
|
I added *.js from git\org.eclipse.scout.widgets.ui.html/src/main/js/tile/ to my example _.ui.html/src/main/js/tile/
in index.js add
export {default as CustomTile} from './tile/CustomTile';
export {default as CustomTileAdapter} from './tile/CustomTileAdapter';
in index.less add
@import "tile/CustomTile";
without any success. I would like, of course, to understand why, but I will not distract you further with this question. Got out of the situation with AbstractFormFieldTile. Everything is fine with him, except for one thing.
I build my tile using the AbstractGroupBox class, where I add everything I need. The only thing, initially, when adding a tile programmatically, I have to refer to:
public static class SimpleTile extends AbstractFormFieldTile<AbstractSlideMainBox>{
// AbstractSlideMainBox is my GroupBox Class
public void setSlideName(String slideName) {
getTileWidget().setLabel(slideName);
}
public void SetImageFromURL(String slideURL) {
getTileWidget().SetImageFromURL(slideURL);
}
// and here is the most interesting thing, what I would like to avoid
@Order(10)
public class SlideField extends AbstractSlideMainBox {
}
}
This last public class SlideField extends AbstractSlideMainBox{} leads to the appearance :
WARN [scout-model-thread-22 Transforming response to JSON] org.eclipse.scout.rt.client.ui.form.fields.AbstractFormField.classId(AbstractFormField.java:1183) - Found a duplicate classid for SlideField_org.eclipse.scout....ExampleForm, adding field index. Override classId for dynamically injected fields.
as many times as tiles i add. actually, it's understandable why . But would like to know, how to add SlideField to FormFieldTile differently to avoid these warnings.
Something like:
getTileWidget().addField(new AbstractSlideMainBox());
|
|
|
|
Powered by
FUDForum. Page generated in 0.04368 seconds