Friday, June 27, 2014

Re: reuse of private static variable

Then, if I need to use one copy of the image a few times or the same widget a few places, then what should I do?


On Friday, June 27, 2014 11:34 AM, Jens <jens.nehlmeier@gmail.com> wrote:


 Is there any technical name to describe this feature?

The DOM acts like a tree with each node having exactly one parent node (except the root node which has no parent).

http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/introduction.html


-- J.
--
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: reuse of private static variable

 Is there any technical name to describe this feature?

The DOM acts like a tree with each node having exactly one parent node (except the root node which has no parent).

http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/introduction.html

-- J.

--
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: reuse of private static variable

Thanks a lot for your reply. Is there any technical name to describe this feature? I would like to google it to understand the detail.

Thanks


On Friday, June 27, 2014 5:17 AM, Thomas Broyer <t.broyer@gmail.com> wrote:


An element can only have one parent at a time in the DOM tree. If you add it somewhere, you (implicitly) first remove it from where it was.
By extension, this also applies to GWT widgets (which wrap a DOM element).

On Friday, June 27, 2014 1:44:25 PM UTC+2, new_newbie wrote:
Hi

I have a class that contains static private variable. If the static private variable is access somewhere as shown in BiggerPanel, the SocialScreen flexTable.setWidget will not set an image as expected. No image is put in the flextable. The SocialScreen flexTable.setWidget works if I remove the SocialScreen.getfbImage() from BiggerPanel. It seems the static private variable is not reusable. Why is it like that?

Thanks

class SocialScreen extends composite
{
static private Image fbImage;

static public Image getFacebookImage()
{
        return fbImage;
}
public SocialScreen()
{
//To put the face book on the flextable
        fbImage = new Image(images. facebookIconImageData(). getSafeUri());
        image = fbImage;
        flexTableLeft.setWidget(r,c, image);
}

Class BiggerPanel
{
socialPanel=new SocialScreen();
acctPanel=new AcctPanel(){
    //Use the static function/static image of the SocialScreen
    Image fb=SocialScreen.getfbImage()
}



--
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: Best way to style a web app in diffrent ways

Take a look at my solution (answer under my name). It's simple and works beautifully:

http://stackoverflow.com/questions/7960685/allow-different-gwt-visual-themes-for-different-users/24455939#24455939


On Wednesday, June 25, 2014 8:12:16 AM UTC-4, Dominic Warzok wrote:
Hi Guys. 

I try to writa a web app where it is possible to give diffrent styles to them. 

--
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.

Google earth using java gwt

If any one could help i would be very very helpful. Thanks in advance
My project deals with 
1. locating BTS tower on google earth which is sort of completed
2. dealing with its primary details on a placemark involving a ballon in which i am not able to insert textbox and buttons
3. showing the coverage using a Kml polygon.

--
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: reuse of private static variable

An element can only have one parent at a time in the DOM tree. If you add it somewhere, you (implicitly) first remove it from where it was.
By extension, this also applies to GWT widgets (which wrap a DOM element).

On Friday, June 27, 2014 1:44:25 PM UTC+2, new_newbie wrote:
Hi

I have a class that contains static private variable. If the static private variable is access somewhere as shown in BiggerPanel, the SocialScreen flexTable.setWidget will not set an image as expected. No image is put in the flextable. The SocialScreen flexTable.setWidget works if I remove the SocialScreen.getfbImage() from BiggerPanel. It seems the static private variable is not reusable. Why is it like that?

Thanks

class SocialScreen extends composite
{
static private Image fbImage;

static public Image getFacebookImage()
{
        return fbImage;
}
public SocialScreen()
{
//To put the face book on the flextable
        fbImage = new Image(images.facebookIconImageData().getSafeUri());
        image = fbImage;
        flexTableLeft.setWidget(r,c,image);
}

Class BiggerPanel
{
socialPanel=new SocialScreen();
acctPanel=new AcctPanel(){
    //Use the static function/static image of the SocialScreen
    Image fb=SocialScreen.getfbImage()
}



--
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.

reuse of private static variable

Hi

I have a class that contains static private variable. If the static private variable is access somewhere as shown in BiggerPanel, the SocialScreen flexTable.setWidget will not set an image as expected. No image is put in the flextable. The SocialScreen flexTable.setWidget works if I remove the SocialScreen.getfbImage() from BiggerPanel. It seems the static private variable is not reusable. Why is it like that?

Thanks

class SocialScreen extends composite
{
static private Image fbImage;

static public Image getFacebookImage()
{
        return fbImage;
}
public SocialScreen()
{
//To put the face book on the flextable
        fbImage = new Image(images.facebookIconImageData().getSafeUri());
        image = fbImage;
        flexTableLeft.setWidget(r,c,image);
}

Class BiggerPanel
{
socialPanel=new SocialScreen();
acctPanel=new AcctPanel(){
    //Use the static function/static image of the SocialScreen
    Image fb=SocialScreen.getfbImage()
}