Change size of an image resource (ImageBundle)?

2012-12-09 Thread membersound
Hello, how can I change the size of an image resource that is used in the following way? public static interface SelectionImages extends ImageBundle { @Resource(image.png) AbstractImagePrototype selectionAll(); } Thank you! -- You received this message because

Dynamic canvas resize without grawings rescaled?

2012-12-17 Thread membersound
I have a gwt canvas which should take the whole space of the main centered contend in a docklayout. g:DockLayoutPanel unit='PCT' //... g:center g:Label c:Canvas... /g:Label /g:center Now, If I resize the browser window, I do NOT want the painted graphics to be resized. Only

Hit detection for GWT canvas - which strategy for drawings?

2012-12-20 Thread membersound
I'm creating some kind of drawings/flowchart/UML-diagram like tool with GWT Canvas (Java). For hit-detection of my drawings I could imagine 3 different strategies, but I do not know which would work best for my goal. - Just keep track of all Shape coordinates and iterate all objects on

Alignment of FocusPanel with PCT?

2012-12-27 Thread membersound
Hi, I want to create some inner FocusPanels, and align them in percent (PCT). But I can even not align just 2 Panels to a PCT size: g:DockLayoutPanel unit='EM' g:north size='20' g:HorizontalPanel g:FocusPanel width='90%'g:LabelLeft/g:Label/g:FocusPanel

How to rewrite ClientBundle images to static uibinder images?

2012-12-27 Thread membersound
I know how to use images in general with uibinder, like: .ui.xml: g:Image resource='{res.image}' / .java: public interface Resources extends ClientBundle { @Source(image.png) @ImageOptions(repeatStyle = RepeatStyle.None) ImageResource image(); } But in case of static images, how can

Re: Alignment of FocusPanel with PCT?

2012-12-27 Thread membersound
Can't I do this plain in uibinder? Thanks Am Donnerstag, 27. Dezember 2012 13:56:14 UTC+1 schrieb Jens: horizontalPanel.setCellWidth(firstFocusPanel, 90%); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on

Image rotation or pre-replication?

2012-12-27 Thread membersound
Hi, I have an image (little arrow) that I want to display in all cardinal directions. Using @ImageOptions(fliprtl...) I could at least flip the image so that I would only have to pre-create half of the needed images. BUT isn't there an option to rotate the image with an angle, so that only 1

Re: Alignment of FocusPanel with PCT?

2012-12-27 Thread membersound
What I just found out: g:HorizontalPanel width=100% g:cell width='90%' g:FocusPanel... What do you think of aligment with g:cell to wrapp the focus panels? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on

Vertical align elements in FlowPanel?

2012-12-28 Thread membersound
Hi, how can I vertically center elements within a FlowPanel? I have several FocusPanels inside a FlowPanel, which means they are stacked on each other. One of the focuspanels has an image, which should be centered both horizontally and vertically within that focuspanel. But no matter what I

Get widget variable name from event?

2012-12-28 Thread membersound
Hi, is it possible to retrieve the name of an element that triggers an event? For example, if I have a FocusPanel which triggers a MouseOverEvent, can I get the variable name of that panel somehow from the event? @UiField FocusPanel panel; @UiHandler(panel) void mouseOver(MouseOverEvent ev) {

How to display an empty Panel/FocusPanel?

2012-12-28 Thread membersound
Hi, I want to have a FocusPanel without any content, but it should trigger some MouseFocus events. Are there any spacer elements in GWT which I could place into the FocusPanel? At the moment I'm just using a transparent little image that I place into the FocusPanel by: g:FocusPanel g:Image

CSS Styling of FocusPanel?

2012-12-28 Thread membersound
From eg TextBox I know that it is possible to alter the css style of an element by setting the dependentName like this: textBox.setStyleDependentName(readonly, true); .gwt-TextBox-readonly { background-color: lightgrey; border: none; } How can I do the same with FocusPanel? I tried

How to the same MouseHandler to multiple components?

2012-12-28 Thread membersound
I have several same components that at this stage just perform the same operation. g:FocusPanel ui:field=panel g:FocusPanel ui:field=panel2 g:FocusPanel ui:field=panel3 @UiField FocusPanel panel, panel2, panel3; @UiHandler(panel) void handleClick(MouseDownEvent event) { //... }

How to add MouseHandler in constructor? (NPE)

2012-12-28 Thread membersound
I know I can just bind any ui component to any events by using @UiHandler like this: g:FocusPanel ui:field=panel @UiField FocusPanel panel; @UiHandler(panel) void handleClick(MouseDownEvent event) { //... } So far so good, but how can I manually add a mouse handler within the class

Attach multiple MouseHandlers to the same component via UiBinder?

2012-12-28 Thread membersound
Is there something to attach multiple Handlers to the same component? Similar to the following (which is not valid of course, but you get it): @UiHandler(myComponent) void onMouseDown(MouseDownEvent ev | MouseOutEvent ev) { //... } Or do I necessarily have to create 2 different handler

CSS DropShadow for DockLayoutPanel?

2013-01-02 Thread membersound
Hi, I'm trying to apply a dropshadow around a DockLayoutPanel area. But can't get it to work: .shadow { -moz-box-shadow: 3px 3px 4px #000; -webkit-box-shadow: 3px 3px 4px #000; box-shadow: 3px 3px 4px #000; /* For IE 8 */ -ms-filter:

Center content of DockLayoutPanel North?

2013-01-02 Thread membersound
How could I center everything that is placed eg in the north/east/west/south segment of a docklayoutpanel? The following does not work... ui:style .align { float: center; } /ui:style g:DockLayoutPanel g:north styleName='{style.align}'g:LabelA/g:Label/g:north -- You received

Tree - Change order of Handler execution?

2013-01-03 Thread membersound
Hi, I have expanded the Tree element and add each one SelectionHandler, OpenHandler, CloseHandler to my Custom Tree class. The problem is: whenever I close a tree, then first the SelectionHandler is executed, and then the CloseHandler. All other things work fine: if I open the tree, only

How to extend GWT Widgets and use them with Ui-Binder?

2013-01-03 Thread membersound
I'm creating a custom Tree component which extends the GWT Tree. But how can I use my custom tree with ui:binder?? I tried the following which did not work: my custom tree: public class CustomTree extends Tree { public CustomTree() { //... } } MyPanel.ui.xml: ui:UiBinder

How to add optional parameters for ui-binder?

2013-01-03 Thread membersound
Hi, when looking at eg VerticalPanel, I can provide optional parameters like width and height via ui-binder. I only found @UiConstructor, but this would force the ui:binder to provide the parameters for the constructor annotated like this. How can I create these kind of additional parameters

How to select an entry in a Tree (highlight)?

2013-01-03 Thread membersound
Hi, how can I add selection row highlighting to a tree widget? Or is this ever possible? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

Re: How to add optional parameters for ui-binder?

2013-01-03 Thread membersound
Ok I see, so just by providing setter methods I can add optional params. Thanks, exactly what I was looking for. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

Re: How to select an entry in a Tree (highlight)?

2013-01-03 Thread membersound
It did not work until I found that there seems to be a bug: http://code.google.com/p/google-web-toolkit/issues/detail?id=3800q=tree%20item%20selectedcolspec=ID%20Type%20Status%20Owner%20Milestone%20Summary%20Stars .gwt-Tree .gwt-TreeItem-selected { display: table !important; } worked for me.

Re: Center content of DockLayoutPanel North?

2013-01-03 Thread membersound
If this would work (cannot test this atm), then this would mean I have to apply the center style to each of the elements contained in the panel. But that's exactly what I'm trying to avoid, and why I'm looking for a solution to just tell the whole panel to center everything that is contained

How to center an Image?

2013-01-07 Thread membersound
How can I center an image using uibinder? This is what I tried and does not work: .myImage { horizontal-align: bottom; vertical-align: bottom; text-align: bottom; } g:SimplePanel styleName={style.myImage} g:Image styleName={style.myImage}/ /g:SimplePanel -- You received this

Changing label style in uibinder?

2013-01-07 Thread membersound
The following Label is not bold. What am I missing here? ui:style .gwt-label { font-style: bold !important; } /ui:style gwt:Labelbold/gwt:Label -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on

How to validate TextBox fields?

2013-01-07 Thread membersound
I'm having problems in getting started with GWT Validation. I just want to validate some form fields on a page. I started like this, but don't know how to go on: class Person { @Size(min = 4, message = Name too short.) private String name; Person(name) { this.name = name; } }

Re: Changing label style in uibinder?

2013-01-07 Thread membersound
Thanks for that comprehensive answer. Helps me alot! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/s0aih3bG7HkJ. To post to this group, send

Re: How to validate TextBox fields?

2013-01-07 Thread membersound
Yes I know this side. But it still does not tell me: - how to validate the name before creating the person object (which I'm looking for in terms of numbers like int age; There I'd first like the validator to catch if it's a valid age before creating the person object) - how to display an

How to only allow digits to be entered in a textbox?

2013-01-07 Thread membersound
Hi, I have a textbox where I want to user to only enter digits. Moreover I want to prevent him entering other characters. This is what I tried but it does not work: @UiHandler(textbox) void onInputsKeyPress(KeyPressEvent event) { if (!Character.isDigit(event.getCharCode())) {

How to preserve session state with a canvas?

2013-01-07 Thread membersound
Hi, I'm creating a canvas where the user can draw some elements himself. Is it possible with GWT to preserve the user session somehow? And if he refreshes the browser, all his drawings should be still there / beeing recreated? Coming from JSF I'd just use @SessionScoped, but how can this be

Re: How to validate TextBox fields?

2013-01-08 Thread membersound
I was not aware of the editor framework. This looks very promising! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/9qGf8hGJ1ZwJ. To post to this

How to add ValueChangeHandler to Tree?

2013-01-08 Thread membersound
Hi, as far as I can see a GWT Tree has no ValueChangeHandler by default (for modifying elements in the tree). Therefore I'm trying to extend the Tree and add a ValueChangeHandlermy myself. But it never get's called: class MyTree extends Tree implements ValueChangeHandlerString { //never

How to add cell types (TextCell) to CompositeCell?

2013-01-09 Thread membersound
Hi, how can I add available cell types (TextCell, ButtonCell, CheckboxCell, DateCell etc) to a *CompositeCell*? https://developers.google.com/web-toolkit/doc/latest/DevGuideUiCellWidgets?hl=en#available ListHasCellFoo, ? cells = new ArrayListHasCellFoo,?(); cells.add(new ButtonCell()); //not

How to decorate objects in CellTree (TreeViewModel)?

2013-01-09 Thread membersound
Hi, I have serveral classes that extend from a baseclass. I display them in a CellTree. Now, if a specific class (Cat) is displayed, I want this class to have subentries. Similar to: Dog1 Dog2 Cat1 - Age Cat1 Dog3 Dog4 How can I achieve this?? class Animal { //every animal gets a name

How to change icon of IconCellDecorator?

2013-01-10 Thread membersound
Hi, I have a CellTree and displaying an image/icon with IconCellDecorator. Now on a specific event I want to change icon. Can I do this with this class, or what can I take to achieve this? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group.

How to detect if cell has parents in CellTree?

2013-01-11 Thread membersound
On selection of a child item in a CellTree, I can get the selected item by: MyItem item = selectionModel.getSelectedObject(); How can I tell if MyItem has a parent? Or that it is not a root element? -- You received this message because you are subscribed to the Google Groups Google Web

SingleSelectionModel not working for root node?

2013-01-11 Thread membersound
I have a CellTree with a SingleSelectionModel. onSelectionChange(SelectionChangeEvent event) gets fired for all children, but not for the root node. How can I add selection on the root?? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To

Re: How to detect if cell has parents in CellTree?

2013-01-11 Thread membersound
Gosh, I did not think about adding different selection models. This makes it very easy to track indeed! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

Re: SingleSelectionModel not working for root node?

2013-01-11 Thread membersound
Forget it, I forgot to add a selectionModel to the root... Am Freitag, 11. Januar 2013 12:42:10 UTC+1 schrieb membersound: I have a CellTree with a SingleSelectionModel. onSelectionChange(SelectionChangeEvent event) gets fired for all children, but not for the root node. How can I add

CellTree event if already selected item is clicked?

2013-01-11 Thread membersound
Hi, I have a CellTree with SingleSelectionModel. It has a SelectionChangeHandler which fires onSelectionChange. BUT how can I track if an already selected item is clicked again? In this case at least the onSelectionChange is NOT executed (or course, but how can I track it then?). -- You

Force refresh of a CellTree?

2013-01-11 Thread membersound
Hi, I have a CellTree where onSelection I change a specific element. BUT if I reselect an element that was selected before, the changed value is NOT updated in the view. Only if I fold and unfold the tree I see the changed value visually. Question: how can I fore the tree to refresh itself

Re: Force refresh of a CellTree?

2013-01-13 Thread membersound
ListDataProvider. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/VhXr5DQ1MOUJ. To post to this group, send email to

Scroll a CellTree if expanded?

2013-01-14 Thread membersound
Hi, I have a CellTree with few root items and each having a lot of childs. When I expand a node, I can click show more, which will then expand the rest of the data invisible down below. I'm not getting any scrolling controls. Only thing I can do is tap down with the keyboard. How can I add a

Re: Force refresh of a CellTree?

2013-01-14 Thread membersound
Ok I now created a HashMapMyItem, ListDataProviderMyItem for holding a reference to all subItems, and the key is the parent item. And for each refresh I first detect the subItem, get its parent, retrieve the subDataProvider from the HashMap using the parent, and then forcing the.refresh()on

How to simulate a left mouse click on rightclick?

2013-01-15 Thread membersound
Hi, I'm trying to build a CellTree where Right and Left click perform the same action. I already have the left click implemented, everything works fine. I'm trying to attach a right-click handler to a CellTree. Therefore I extend the tree and override onBrowserEvent(). The rightclick already

Horizontal scrolling fro DockLayoutPanel?

2013-01-15 Thread membersound
Hi, how can I get scolling in a website that is composide by an outer enclosing DockLayoutPanel? My page consists of the DockLayoutPanel having north, south, east, west, center. Now if I shrink the window everything is shrunk accordingly. Which is quite nice if working with PCT. BUT if the

Re: Horizontal scrolling fro DockLayoutPanel?

2013-01-15 Thread membersound
Ok thanks for your opinion! I played around with this a bit, and probably you're right that best approach is to have fixed header/footer and a scrollable content area in my case. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view

Buttom loses style if aligned bottom

2013-01-16 Thread membersound
I simply want a button to be aligned bottom. Apart from the fact that the following does not work, also the button loses its GWT style completely. What am I missing here? ui:style .bottom { vertical-align: bottom; } /ui:style g:FlowPanel g:HTMLPlaceholderbr/br//g:HTML

How to highligh a ValueBoxEditor?

2013-01-17 Thread membersound
Hi, I have a ValueBoxEditorDecorator defined, and want to highlight the TextBox if an error appears on validation of the input: @UiField ValueBoxEditorDecoratorString name; e:ValueBoxEditorDecorator ui:field='name' e:valuebox g:TextBox / /e:valuebox /e:ValueBoxEditorDecorator

Canvas dynamical size?

2013-01-18 Thread membersound
Hi, how can I size a Canvas dynamically? I have a DockLayoutPanel, and a Canvas inside the g:center element. I use canvas.setSize(100%, 100%) to make it fill the whole center area. BUT how can I setCoordinateSpaceHeight() and width? How do I know the size of the canvas inside the center

Re: Canvas dynamical size?

2013-01-18 Thread membersound
I alread though about extending ResizeComposite as a Wrapper for the canvas. But it gives me the following error: java.lang.AssertionError: LayoutComposite requires that its wrapped widget implement RequiresResize Else if I use: extends Composite implements RequiresResize { @Override

Re: Canvas dynamical size?

2013-01-18 Thread membersound
OK so assuming I have a wrapper class for the canvas that is placed in the center element, I can get the size of the center-panel by: this.getElement().getParentElement().getClientWidth(); I don't know if this is the proper way, but at least it works. BUT again I could not get the

How to directly make CSS reference to image resources?

2013-01-18 Thread membersound
How do I have to make reference to images under src/main/resources/icons? In my css (placed under src/main/webapp): .my-class { background: url(../resources/icons/image.gif); } I'm constantly getting [WARN] 404 - GET /resources/icons/validation_error_icon.gif (127.0.0.1) 1427 bytes. --

Re: Canvas dynamical size?

2013-01-18 Thread membersound
Could you give me the link of your working example? My layout looks like this (stripped down to the canvas concerning elements): g:SplitLayoutPanel g:center g:DockLayoutPanel g:center g:SplitLayoutPanel g:center g:DockLayoutPanel g:center c:Canvas -- You

Re: Canvas dynamical size?

2013-01-20 Thread membersound
Horray, ResizeLayoutPanel did the trick, thanks! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/s7Lls8m2BEAJ. To post to this group, send email

How to remove drawn elements on the canvas?

2013-01-20 Thread membersound
Hi, I draw ellipses on a canvas on click, and want to remove them on doubleclick. Therefor I track them in a list with coordinates tracked, and iterate if on mouseclick. I'm already detecting if an element is under mouseclick or not. BUT: how do I remove that element from the canvas? Would I

How to add ChangeHandler to ValueListBox using ui:binder?

2013-01-28 Thread membersound
Hi, I'm trying to add a ChangeEvent to a ValueListBox using the ui:binder way. But it gives an exception. What do I have to change? @UiField(provided = true) ValueListBoxFoo list = new ValueListBoxFoo(renderer); @UiHandler(list) void onSelectionChange(ChangeEvent event) {

How to remove a value from ValueListBox?

2013-01-28 Thread membersound
Hi, how can I execute a ValueListBox.remove(int index) kind of statement? I can only see setValue(Foo foo) but how to I take it away? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

How to execute afterStartup commands?

2013-01-29 Thread membersound
Hi, how can I execute statements after the whole application has started up? Some kind of afterInit() method. Is there anything beside placing these calls at the end of the EntryPoint onModuleLoad(). -- You received this message because you are subscribed to the Google Groups Google Web

Re: How to remove a value from ValueListBox?

2013-01-29 Thread membersound
Great, works this way! Am Montag, 28. Januar 2013 17:15:29 UTC+1 schrieb Jens: In addition, keep in mind that ValueListBox currently merges its current selected value to the list of acceptable values if its not already in this list. If you want to remove the selected value from the

Re: How to add ChangeHandler to ValueListBox using ui:binder?

2013-01-29 Thread membersound
and it compiles OK: @UiField(provided=true) ValueListBoxString l = new ValueListBoxString(PassthroughRenderer.instance()); @UiHandler(l) void foo(ValueChangeEventString e) { } On Monday, January 28, 2013 4:21:21 PM UTC+1, membersound wrote: Ja I tried this before, but: Parameter

How to exchange widgets in uibinder?

2013-01-29 Thread membersound
Hi, I have a g:Tree / defined in ui:binder. Now if I check a specific Checkbox, I want that Tree to be converted to a CellTable (to provide some quick inplace edit). Again if I uncheck the box, I want reconversation to Tree. How could I do this? I mean, how can I exchange Tree widget by a

How to make a CellTree inPlace editable?

2013-01-30 Thread membersound
Hi, I have a custom rendered CellTree, therefore a class CustomCell extends AbstractCellMyItem. What do I have to change to make these cells inPlace editable? I tried changing it to extend AbstractEditableCell. Also the isEditing()method gets called when I click an item. But how can I now

How to upload a file only on the client side?

2013-01-30 Thread membersound
Hi, I defined a file upload. I do not want to send the file to the server, but instead directly show the content (txt file) to the user. How could I do this: getting the content of the file? What am I missing? @UiField FormPanel form; @UiField FileUpload upload; @UiField Button submit;

Re: How to upload a file only on the client side?

2013-01-30 Thread membersound
Ok then I probably have to introduce a servlet. But somehow I cannot get it working. The servlet is already called on submit, BUT the file somehow never reaches the servlet. ServletFileUpload upload = new ServletFileUpload(new DiskFileItemFactory()); //items.size() is always = 0. Why???

Re: How to upload a file only on the client side?

2013-01-30 Thread membersound
Got it working by providing an abitrary name property for the FileUpload. Another issue: I'm retreiving the servlet response by evt.getResults(). But how could I return eg a status code (Error, Ok) apart from that? -- You received this message because you are subscribed to the Google Groups

How to best (de)-serialize objects?

2013-01-31 Thread membersound
Hi, I want to serialize a bunch of objects to a file, and later derserialize it. The purpose is to let a user draw something on a canvas, save the objects representing the drawing to a file, and later continue it's work. So I'm probably looking for a way of JSON. I read of JSNI and GWT Overlay

Best way to schedule periodic reminder?

2013-01-31 Thread membersound
Hi, I would like to create a popup every hour that reminds the user to save his work (of course only if the work has not been saved for 1 h). What is the right way to do this? timer.scheduleRepeating(TIME); and on save: timer.cancel()? Probably it works this way, but would this consume decent

How to best download a file on client side?

2013-02-01 Thread membersound
Hi, what is the best way to create a download file on the client side, when the content that is to be saved also only exists on the client side? Do I have to write a Servlet creating a file of the content that is send from the client side? Or is there any possibility to just make an export

Re: How to best download a file on client side?

2013-02-01 Thread membersound
Is there any way of sending content to the server and generating the downloadable file without submitting this content in the URL as parameter to the servlet? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group

How to download a file from server without browser opening new window?

2013-02-01 Thread membersound
Hi, I created a servlet that provides a downloadable file (from String content) by writing to the ServletOutputStream. On the client side, I trigger the file download by an Anchor with: Window.open(GWT.getModuleBaseURL() + MyServlet, _blank, ); It works fine, BUT it seems to open a new browser

Re: How to download a file from server without browser opening new window?

2013-02-01 Thread membersound
, GWT.getModuleBaseURL() + MyServlet) On Friday, February 1, 2013 4:57:06 PM UTC+1, membersound wrote: Hi, I created a servlet that provides a downloadable file (from String content) by writing to the ServletOutputStream. On the client side, I trigger the file download by an Anchor with: Window.open

How to pass UiFields from one class to another using uibinder?

2013-02-03 Thread membersound
Hi, I have a main page layout defined with a DockLayoutPanel. Each north south center etc is split into single classes as the code gets very big. Now, I want to pass a label from north to the class Foo. 1. How can I pass this label best using uibinder? 2. Why does the following code not work

How to align components side by side?

2013-02-03 Thread membersound
Hi, how can I best align gwt components side by side? I want to create a header element, which has a centered Label, and some menu entries aligned to the right. Like: This is my Header!Save | Export | Cancel How can I achieve this? I read about creating a FlowPanel and

Re: How to download a file from server without browser opening new window?

2013-02-03 Thread membersound
Hm just another issue: I also want the servlet url to have some query parmeters like MyServlet?param=content. But the content is dynamic, especially not available on construction of the Anchor. How can I pass this content on click into the targetLink of the Anchor before it gets executed? The

Cannot show DialogBox - IllegalStateException

2013-02-04 Thread membersound
Hi, what does a IllegalStateException mean for a DialogBox? java.lang.IllegalStateException: This widget's parent does not implement HasWidgets at com.google.gwt.user.client.ui.Widget.removeFromParent(Widget.java:204) at

How to get JSONObject out of a deserialized AutoBean?

2013-02-04 Thread membersound
Hi, I serialize one of my beans with AutoBeanCodex.encode(bean).getPayload(); But when I'm trying to import and decode the same string, I do not want the AutoBean Proxy Object. I just want to have the JSONObject itself. The following will still give me the AB Proxy. How can I get the real

How to create a spreadsheet like component?

2013-02-05 Thread membersound
Hi, I'd like to create a 2-row spreadsheet/excel like component. Is there anything build in for GWT (I did not find so far)? I cannot use frameworks for this. Or what could suit best to create such a component (2 rows, inplace edit, edit on double click etc)? Thanks a lot -- You received

How to delay an anchor action to wait for a AsyncCallback?

2013-02-05 Thread membersound
Hi, I have an Anchor that onClick performs an RPC call to a servlet. Based on the outcome I want to set the hRef of the Anchor, and then perform the open url action of the Anchor. BUT: how can I tell the anchor to wait for the Callback to finish before trying to open the url? @UiField Anchor

How to replace FlowPanel with a Panel which ProvidesResize?

2013-02-06 Thread membersound
Hi, I have a simple FlowPanel which stacks some widgets: g:FlowPanel g:Label / g:CheckBox / g:MyCustomComposite / g:DataGrid / /g:FlowPanel As I want to also display a DataGrid, I need to change the FlowPanel to something that ProvidesResize (otherwise the datagrid does not show up). BUT:

HTMLPanel inside DockLayoutPanel does not show up

2013-02-06 Thread membersound
Hi, I have a HTMLPanel which wraps several components. If I enclose this with a DockLayoutPanel and place it into the center, it is not rendered anymore. g:DockLayoutPanel unit=PCT g:center g:HTMLPanel g:Buttonbr/br/ g:Label /g:HTMLPanel /g:center /g:DockLayoutPanel Why am I

How to add TextColumn to DataGrid in uibinder?

2013-02-06 Thread membersound
Hi, is it possible to add c:TextColumn to a c:DataGrid? Something like: c:DataGrid c:TextColumn / c:TextHeader / /c:DataGrid I did not find any docs on how to use it. Or is this impossible and the only way is defining new TextColumn() in the java class? -- You received this message

How to override the Template interface in EditTextCell?

2013-02-06 Thread membersound
Hi, I like the EditTextCell, but I want to override the template interface to give the text in the input field eg a different aligment. How can I override the interface Template when extending EditTextCell? If not possible, what could I do apart from copying the whole EditTextCell and modify

How to make EditTextCell fit the whole width of cellWidth?

2013-02-07 Thread membersound
Hi, I have a CellTable and would like the entry fields to behave like a excel/spreadsheet table. I'm using EditTextCell columns. But when I click an entry, the TextInput has not the same alignment than the underlying label entry. I don't know why gwt does not provide this behaviour out of the

CellTable hovering style for single entry?

2013-02-07 Thread membersound
Hi, I know I can change the hovering style for a whole column in a CellTable using .cellTableHoveredRowCell. But how can I define hovering border only of the actual hovered entry of a column? Is that even possible? -- You received this message because you are subscribed to the Google Groups

Re: CellTable hovering style for single entry?

2013-02-07 Thread membersound
And further questions: .cellTableKeyboardSelectedCell { border: selectionBorderWidth solid black; } When I press ENTER and while changing the content, I want the border to be dashed: border: selectionBorderWidth dashed black; How could I implement this, as there is no property in CellTable

How to change css style during runtime?

2013-02-07 Thread membersound
Hi, how can I change a specific css style property during runtime? I have a CellTable.Resource to define cellTable style MyCellTable.css. Now I want to change a specific css property during runtime. .cellTableKeyboardSelectedCell { border: } How can I access my css file during runtime and

How to show a widget upon a canvas?

2013-02-09 Thread membersound
Hi, how can I show Widgets upon a Canvas? I want to display a TextBox in a specific position onto a canvas. I guess the right way is to add the TextBox to the canvas-wrapping Panel? And is so, how can I align the box then? -- You received this message because you are subscribed to the Google

How to attach custom event handler to InputField of EditTextBox?

2013-02-09 Thread membersound
Hi, I have a CellTable with EditTextBox. How can I attach a custom event handler to the InputElement that is created if I click an entry? (My goal is to allow only numbers for a certain TextBox, which is easy using KeyPressEvent. But how can I attach this to that box?) Thanks -- You

How to detect number keys in a NativeEvent?

2013-02-09 Thread membersound
Hi, looking at NativeEvent extends JavaScriptObject: how can I detect if the event was a number? I tried using Character.isDigit(event.getKeyCode()), but this would give me an error: The method isDigit(char) in the type Character is not applicable for the arguments (int) How could I else

Re: How to attach custom event handler to InputField of EditTextBox?

2013-02-09 Thread membersound
Because NumberCell is not an editable Cell? Am Samstag, 9. Februar 2013 15:54:36 UTC+1 schrieb Andrea Boscolo: Why not using http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/NumberCell.html? On Saturday, February 9, 2013 3:43:43 PM UTC+1, membersound

CellTable not updating DataProvider?

2013-02-09 Thread membersound
Hi, I have a CellTable whose values come from a ListDataProvider. The entries are editable with EditTextCell. Now if I change a value in one of the fields, the value is visually changed in the CellTable. BUT every EditTextBox.onBrowserEvent() still has the initial String value.So obviously

KeyCodes not containing KEY_SPACE?

2013-02-10 Thread membersound
Hi, maybe I'm missing something, but is there any reasoncom.google.gwt.event.dom.client.KeyCodesdoes not contain KEY_SPACE = 32? Is this contained in a different class? Or omitted for any reason? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit

How to style the cell that had the latest data change?

2013-02-10 Thread membersound
Hi, I have a CellTable with some Columns using EditTextCell. How can I give the cell entry which was last edited a different style? I have a FieldUpdater overriding the update(int index, ...) method. Can I make use of this index to somehow style the cell with that index? How can I get the

Using UUID in GWT?

2013-02-10 Thread membersound
Hi, I tried using java.util.UUID on the client side to generate some unique id's for a list that will be placed into a CellTable. Unfortunately GWT does probably not support UUID on the client side?? No source code is available for type java.util.UUID; did you forget to inherit a required

How to make use of FileApi in the new Elemental?

2013-02-12 Thread membersound
Hi, can I make use of the new Elemental (https://developers.google.com/web-toolkit/articles/elemental) to have access to the HTML5 FileAPI? Are there any examples yet? Is that yet possible? Thanks -- You received this message because you are subscribed to the Google Groups Google Web

Export canvas to PNG - image cannot be displayed

2013-02-12 Thread membersound
I'm exporting a canvas content as String to a servlet, to generate downloadable file. But the resulting file is not viewable. What could I be missing Send to servlet: String content = canvas.toDataUrl(image/png); Servlet handling: response.setHeader(Content-Disposition, attachment;

Panel in DialogBox is empty?

2013-02-12 Thread membersound
I want to show a panel inside a dialogbox. But the box remains empty. What am I missing: DialogBox box = new DialogBox(true, true); box.setText(test); Image image = new Image(); //getting any image somewhere DockLayoutPanel dp = new DockLayoutPanel(Unit.PCT); dp.addNorth(image, 100);

How to style DecoratedTabPanel vertical?

2013-02-12 Thread membersound
Hi, first of all: where can I find the DecoratedTabPanel.css? I want to apply custom styles to it, but I could not find the css styles to be overwritten anywhere. My goal ist to vertically show the tab headers on the left like a menu, and their content on the right side. Thanks -- You

  1   2   3   >