Friday, March 28, 2014

remote source file in ui:style

Can I use <ui:style src="http://www-c0-css.cc.uga.edu/uga/css/ugastyle-7.css" /> in a uibinder file?  I don't want ugastyle-7.css to be compiled by GWT and transformed into an obfuscated, minimized and optimized version so I can access any styles such as featurecopy defined in ugastyle-7.css like:


<!DOCTYPE ui:UiBinder 
  SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent"
>
<ui:UiBinder
  xmlns:ui='urn:ui:com.google.gwt.uibinder'
  xmlns:g='urn:import:com.google.gwt.user.client.ui'
  xmlns:mail='urn:import:com.google.gwt.sample.mail.client'>

  <ui:style src="http://www-c0-css.cc.uga.edu/uga/css/ugastyle-7.css">

  .statusDiv {
    text-align: right;
    margin: 1em;
  }

  .linksDiv {
    text-align: right;
  }

  </ui:style>

  <g:HTMLPanel>
    <div class='{style.logo}'/>

    <div class="{style.statusDiv}">
      <div>
        <b>Welcome back, foo@example.com</b>
      </div>

      <div class='featurecopy' '>
        <g:Anchor href='javascript:;' ui:field='signOutLink'>Sign Out</g:Anchor>
        &nbsp;
        <g:Anchor href='javascript:;' ui:field='aboutLink'>About</g:Anchor>
      </div>
    </div>
  </g:HTMLPanel>
</ui:UiBinder>


Thanks,

Leon

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: How to style a Row of CellTable when user click on a Cell (GWT)?

Thank you very much. it's working after i remove the redraw();. However, it did not accept some other style like "font-weight:normal."

Why it accepts "background:red" but not accept "font-weight:normal" or "font-color:red" 
                

On Saturday, March 29, 2014 12:53:21 AM UTC+11, Thomas Broyer wrote:
redraw() will generate some HTML and inject it with innerHTML, so your getRowElement() no longer exists after redraw().

Are you trying to re-implement SelectionModel and DefaultSelectionEventManager's createWhitelistManager or createCheckboxManager?

On Friday, March 28, 2014 2:47:21 PM UTC+1, Tom wrote:

I want that when user click on a Cell belonging to a row of CellTable, then it will style the row.

So I tried:

       myColumn.setFieldUpdater(new FieldUpdater<String[], String>(){              @Override              public void update(int index, String[] object, String value){                  if(mycondition){                      myCellTable.getRowElement(index).addClassName(getView().getRes().css().blueText());                      myCellTable.redraw();                  }                }          });  

As stated in the above code, we can capture the index of the row, so row no is not the problem, but why nothing happened.

So How to fix it?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: How to style a Row of CellTable when user click on a Cell (GWT)?

Thank you very much. it's working after i remove the redraw();


On Saturday, March 29, 2014 12:53:21 AM UTC+11, Thomas Broyer wrote:
redraw() will generate some HTML and inject it with innerHTML, so your getRowElement() no longer exists after redraw().

Are you trying to re-implement SelectionModel and DefaultSelectionEventManager's createWhitelistManager or createCheckboxManager?

On Friday, March 28, 2014 2:47:21 PM UTC+1, Tom wrote:

I want that when user click on a Cell belonging to a row of CellTable, then it will style the row.

So I tried:

       myColumn.setFieldUpdater(new FieldUpdater<String[], String>(){              @Override              public void update(int index, String[] object, String value){                  if(mycondition){                      myCellTable.getRowElement(index).addClassName(getView().getRes().css().blueText());                      myCellTable.redraw();                  }                }          });  

As stated in the above code, we can capture the index of the row, so row no is not the problem, but why nothing happened.

So How to fix it?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: GWT Desktop-Notification

That looks good, however you might want to look into multi monitor support. With my browser open on Screen 2 (Windows 7 PC, Chrome) the notification window pops up on Screen 1.

Rob

On Saturday, 8 February 2014 16:23:31 UTC, Marcel K wrote:
Here you are.



Marcel


Am Freitag, 7. Februar 2014 14:34:04 UTC+1 schrieb ant...@gmail.com:
Marcel that is cool & interesting

We'll give it a go once time allows...
Why don't you post some screenshots or deploy a sample web app ( on appspot.com ) so that people can see it in action ?

Antonis

On Friday, 7 February 2014 08:26:29 UTC, Marcel K wrote:
Hey,

after some coding with gwt i want to publish a component that i wrote. It's an api for desktop-notification and should work with Chrome, FF and Safari (according to https://developer.mozilla.org/en-US/docs/Web/API/notification#Browser_compatibility).

I would really appreciate if someone could take a look at it and maybe give me some advices ;) or.. maybe even use :)



Cheers
Marcel

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: How to style a Row of CellTable when user click on a Cell (GWT)?

without redraw it won't work anyway

On Saturday, March 29, 2014 12:53:21 AM UTC+11, Thomas Broyer wrote:
redraw() will generate some HTML and inject it with innerHTML, so your getRowElement() no longer exists after redraw().

Are you trying to re-implement SelectionModel and DefaultSelectionEventManager's createWhitelistManager or createCheckboxManager?

On Friday, March 28, 2014 2:47:21 PM UTC+1, Tom wrote:

I want that when user click on a Cell belonging to a row of CellTable, then it will style the row.

So I tried:

       myColumn.setFieldUpdater(new FieldUpdater<String[], String>(){              @Override              public void update(int index, String[] object, String value){                  if(mycondition){                      myCellTable.getRowElement(index).addClassName(getView().getRes().css().blueText());                      myCellTable.redraw();                  }                }          });  

As stated in the above code, we can capture the index of the row, so row no is not the problem, but why nothing happened.

So How to fix it?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: Only subset of HTML supported by HTML class?

Hi, it is better to use CSS to format the text in HTML. I expect it would work if you did that. Try using <span> and CSS styles for text you want to format. E.g., <span style="font-weight: bold;">hi</span>

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Re: fullscreen and popuppanels

I see. Thanks for the links. If time permits I will cook something up and post it here for discussion.

  Vassilis


On Fri, Mar 28, 2014 at 4:13 PM, Thomas Broyer <t.broyer@gmail.com> wrote:


On Friday, March 28, 2014 3:07:20 PM UTC+1, Vassilis Virvilis wrote:
Hello,

I am playing with the fullscreen capability of newish browsers. It works fine for my GWT widget but the PopupPanels are not visible when in fullscreen mode.

They are not visible because the popup panels are children at the body element of the html and this is not visible anymore. You see my widget resides in a div and this div is promoted to fullscreen. Everything else not belonging to that div are not visible.

The problem is even bigger with submenuItems which are also popups. Assuming I am creating my custom MyPopupPanel which does not belong to RootPanel I would still have to fork MenuBar and MenuItem to make them use MyPopupPanel.

Any ideas?


Note that https://code.google.com/p/google-web-toolkit/issues/detail?id=8538 gives a workaround, but of course it wouldn't work for menus. If PopupPanel supported custom parent elements, then submenus should just use the same parent element as their parent (recursively up to the MenuBar)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.



--
Vassilis Virvilis

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.