smartgwt

Pass a handler to filter button property

别等时光非礼了梦想. 提交于 2019-12-25 02:33:02
问题 So I have a handler for when I right click it , it will clear the criteria. How do I set this in setFilterButtonProperties? I want to be able to right click the filter button, it should clear all the characters I typed into the filter fields. addFilterEditorSubmitHandler(new FilterEditorSubmitHandler() { @Override public void onFilterEditorSubmit(FilterEditorSubmitEvent event) { if (event.isRightButtonDown()) { SC.warn("right clicked"); clearCriteria(); } } }); setFilterButtonProperties();

SmartGWT: Getting custom widget from VLStack

痴心易碎 提交于 2019-12-25 01:54:17
问题 Hi I have defined a custom widget: public class BookingArea extends Composite { ... } which contains some smartgwt widgets. From my entrypoint class I add x amount of this widgets inside a VStack. I now want to remove some of the widgets from VStack as something like this: Canvas members[] = vStack.getMembers(); for (int i = 0; i < members.length; i++) { //Here I want to check for example, a member of the BookingArea widget, //how do I convert one canvas to BookingArea? } Please help me I

UmbrellaException when button is clicked

我的未来我决定 提交于 2019-12-25 01:48:36
问题 guys I am working with GWT and when I click a button which creates a class I receive an UmbrellaException. Here is the problematic code: private void addPerson(){ final HashSet<Date> dates = new HashSet(); HorizontalPanel horizontalPanel = new HorizontalPanel(); HorizontalPanel buttonsPanel = new HorizontalPanel(); final TextItem textBox = new TextItem(); textBox.setTitle("Name"); DynamicForm form = new DynamicForm(); final ListBox listBox = new ListBox(); listBox.addItem("DiplomaManager");

Smartgwt DataSource with gwt requestfactory etc

痞子三分冷 提交于 2019-12-25 01:45:06
问题 Does anyone have a working example of using the new GWT constructs for RequestFactory with a SmartGWT DataSource for databound widgets ? If possible I would like to make a generic data service that contains methods for listAll , getByExample , getByPrimaryKey etc. I beleibe it should be possible ??? If using RequestFactory would it make sense to ditch the datasource altogether and work directly with the widget fields ? Cheers, Andy 回答1: http://forums.smartclient.com/showthread.php?t=10850

SmartGWT DateTimeItem: accept 12 hour format

╄→尐↘猪︶ㄣ 提交于 2019-12-25 01:13:22
问题 I am using the SmartGWT DateTimeItem component. By default, the component accepts time in the 24 hour format (ie 11:15, 15:30). I would like to know how I can configure the component to accept the time in 12 hour format (ie 11:15 am, 3:30pm)? Technical Specs: Smart GWT v3.0 Firefox 11 IE 8 回答1: DateTimeItem.setTimeFormatter(TimeDisplayFormat.TOPADDEDTIME); Haven't tested but it looks like what you want ! 来源: https://stackoverflow.com/questions/10177171/smartgwt-datetimeitem-accept-12-hour

SmartGWT modal window

自作多情 提交于 2019-12-24 08:30:24
问题 I have problem with modal window. I call this two methods setIsModal(true) and setShowModalMask(true) but why my window isn't modal ? Here is the Code : Window summaryWindow = new Window(); summaryWindow.setWidth(950); summaryWindow.setHeight(620); summaryWindow.centerInPage(); summaryWindow.setCanDragReposition(false); summaryWindow.setIsModal(true); summaryWindow.setShowModalMask(true); summaryWindow.setShowMinimizeButton(false); summaryWindow.setTitle("Example"); summaryWindow.addItem(new

SMARTGWT - delete DynamicForm from SectionStackSection

家住魔仙堡 提交于 2019-12-24 08:26:46
问题 I have the same problem, that is mentioned here. The problem got missunderstood and I don't have the privileg to comment so I created this question. He wants to delete a DynamicForm out of an SectionStackSection object. my situation is the following: I added some DynamicForm objects to the SectionStackSection by using the setFields(FormItem... fields) method and I also added a Button to delete this FormItem out of the SectionStackSection. The problem's the same. Also Tried DynamicForm

PhoneGap open file in native app. Build via build.phonegap.com

穿精又带淫゛_ 提交于 2019-12-24 00:17:20
问题 At first: YES, there are many solutions in StackOverflow, but non of them works in my case. I got application built in SmartGWT.mobile I attached config files and all needed files to this build to prepare it for PhoneGap Application is build via build.phonegap.com site. It works perfectly fine on Android 4.1.1 I want to: Download file to local filesystem it is an PDF file - It is working fine using: var fileTransfer = new FileTransfer(); fileTransfer.download(..... Open PDF in native app (for

Trying to use SmartGWT but getting errors: “Cannot read property 'setAutoDraw' of undefined”

穿精又带淫゛_ 提交于 2019-12-23 01:43:20
问题 I am trying to introduce SmartGWT to my existing GWT application. What I did so far was placing <inherits name="com.smartgwt.SmartGwt"/> into my client.gwt.xml and module.gwt.xml files. If I run the application, the compilation appears to work. I am not getting any errors from the code server - just a few warnings about deprecated classes but nothing else. However, if I just import a SmartGWT button like this: public LandingPageViewImpl() { initWidget(uiBinder.createAndBindUi(this));

SmartGWT ListGrid is slow, but only in Internet Explorer

点点圈 提交于 2019-12-22 18:42:17
问题 We have migrated from gwtext to SmartGWT and overall the experience is Ok. However, we have big problems with the ListGrid component of SmartGWT. It is very slow if both of the following conditions are met: Internet Explorer is used 5 or more columns the speed will decrease if you add more columns up to the point where the whole thing is unusable and you have to kill the browser, e.g. through the windows task manager. Grids with 1 column are fine in internet explorer Grids with a large number