Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
Thanks for the reply. Here is my code if it can help anybody else. http://www.w3.org/1999/xhtml"; xmlns:wicket="http://wicket.sourceforge.net/";> a.switButton { color: transparent; } # public class Home extends WebPage { static private ButtonTemplate s_buttonTemplate = new VistafarianButton(); public Home() { Image myImage = ButtonResource.getImage("switButtonImage", s_buttonTemplate, "Swit Button"); Link switTestButton = new Link("switTestButton") { @Override public void onClick() { setResponsePage(new SwitTest("")); } }; switTestButton.add(myImage); add(switTestButton); } } rrmlwt wrote: > > rmattler wrote: > >> It is not clear to me how you add the onClick event to the button since >> the >> ButtonResource is an image. Anybody want to point that out to me. > > You have to use a standard html image or button, and associate it to the > ResourceReference+ValueMap provided by the ButtonResource class. > > For instance, to create an ImageButton: > > Html: > > > Java: > > new ImageButton("submit", > ButtonResource.getReference(), > ButtonResource.getValueMap(buttonTemplate, "SOMETEXT")); > > For an image, it's exactly the same. Just put the image in a link tag >and that's it. > > Rodrigo > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/-kind-of-announce--Swit-0.9.0%2C-wicket-library-for-graphics-stuff-tp24211061p24242471.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
rmattler wrote: It is not clear to me how you add the onClick event to the button since the ButtonResource is an image. Anybody want to point that out to me. You have to use a standard html image or button, and associate it to the ResourceReference+ValueMap provided by the ButtonResource class. For instance, to create an ImageButton: Html: Java: new ImageButton("submit", ButtonResource.getReference(), ButtonResource.getValueMap(buttonTemplate, "SOMETEXT")); For an image, it's exactly the same. Just put the image in a link tag and that's it. Rodrigo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
It does NOT work with 1.35. For anybody else who was wondering. I download 1.4 and it works fine. It is not clear to me how you add the onClick event to the button since the ButtonResource is an image. Anybody want to point that out to me. thanks. rrmlwt wrote: > > Hi Folks, > > I just released Swit 0.9.0, a tiny lib I wrote to help manage the kind > of graphical resources that are boring to create, such as buttons, > borders, and layouts. > It's an early release in the sense that it does not contain everything > I'd like, but at least here it is. > Feedbacks appreciated. It's been developped with Wicket 1.4, not sure it > runs on 1.3 (haven't tested). > The homepage: http://swit.kornr.net > The google code page: http://code.google.com/p/swit/ > > cheers, > Rodrigo > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://www.nabble.com/-kind-of-announce--Swit-0.9.0%2C-wicket-library-for-graphics-stuff-tp24211061p24227241.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
What do you mean, "not using Maven"? How can you not use Maven? :-) Jokes, aside. If I knew how, I would put it in the central repo, but I guess there are people on this list that are more prominent in that matter. /Per On Fri, Jun 26, 2009 at 9:12 AM, rrmlwt wrote: > Per Lundholm wrote: >> >> Well done! >> >> +1 for Swit in maven repo. > > Ha, I'm not using maven, and I'm too busy right now to manage that. But > maybe people can just add the lib in their local maven repo. > > Rodrigo > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
Per Lundholm wrote: Well done! +1 for Swit in maven repo. Ha, I'm not using maven, and I'm too busy right now to manage that. But maybe people can just add the lib in their local maven repo. Rodrigo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
Marcin Palka wrote: BTW: Internet Exploder 7 messes the example layout a bit (moves the whole thing to the right). Ouuch!! This one hurts badly. As it seems, the liquid layout manager does not work well in IE7 when using fixed-size AND being contained in a table. Which means it can't be embedded in the TableImageBorder that I use on the site. I think I'll mention the constraint and use an iframe to demonstrate the use of the layout manager, unless I find another css technique that works well everywhere. Thanks for the feedback! Rodrigo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
Well done! +1 for Swit in maven repo. /Per On Fri, Jun 26, 2009 at 7:28 AM, rrmlwt wrote: > Jeremy Thomerson wrote: > >> Ahh... thanks - missed that! >>> >>> Must say a very nice, useful package. regarding creating buttons with >>> images. >>> yes, this is from the sourcecode of AmazonianButton > > Actually the amazonian button accepts a specific, round image that fits one > of its border(because it's a feature of this kind of button). Adding an icon > to arbitrary buttons is definitely in the "to do" list. > > Rodrigo > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
Jeremy Thomerson wrote: Ahh... thanks - missed that! Must say a very nice, useful package. regarding creating buttons with images. yes, this is from the sourcecode of AmazonianButton Actually the amazonian button accepts a specific, round image that fits one of its border(because it's a feature of this kind of button). Adding an icon to arbitrary buttons is definitely in the "to do" list. Rodrigo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
Ahh... thanks - missed that! -- Jeremy Thomerson http://www.wickettraining.com On Thu, Jun 25, 2009 at 5:05 PM, Mathias Nilsson wrote: > > Must say a very nice, useful package. regarding creating buttons with images. > yes, this is from the sourcecode of AmazonianButton > > InputStream iconstream = > VistafarianButton.class.getClassLoader().getResourceAsStream("net/kornr/swit/button/right-arrow-symbol.png"); > BufferedImage icon = ImageIO.read(iconstream); > AmazonianButton button = new AmazonianButton(); // new Color(0x6655AA)); > button.setRightHanded(true); > button.setWidth(1); > button.setIcon(icon); > button.setTextAlign(ButtonTemplate.TEXT_ALIGN_LEFT); > button.setFont(new Font("Verdana", Font.BOLD, 32)); > -- > View this message in context: > http://www.nabble.com/-kind-of-announce--Swit-0.9.0%2C-wicket-library-for-graphics-stuff-tp24211061p24211813.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
Must say a very nice, useful package. regarding creating buttons with images. yes, this is from the sourcecode of AmazonianButton InputStream iconstream = VistafarianButton.class.getClassLoader().getResourceAsStream("net/kornr/swit/button/right-arrow-symbol.png"); BufferedImage icon = ImageIO.read(iconstream); AmazonianButton button = new AmazonianButton(); // new Color(0x6655AA)); button.setRightHanded(true); button.setWidth(1); button.setIcon(icon); button.setTextAlign(ButtonTemplate.TEXT_ALIGN_LEFT); button.setFont(new Font("Verdana", Font.BOLD, 32)); -- View this message in context: http://www.nabble.com/-kind-of-announce--Swit-0.9.0%2C-wicket-library-for-graphics-stuff-tp24211061p24211813.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
Great lib, great work, thanks :-) I am a developer, not a webmaster. It may make my work much easier. BTW: Internet Exploder 7 messes the example layout a bit (moves the whole thing to the right). -- View this message in context: http://www.nabble.com/-kind-of-announce--Swit-0.9.0%2C-wicket-library-for-graphics-stuff-tp24211061p24211754.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
SUPER COOL ! :) One thing, can you adjust the vertical offset of the text inside the button ? I saw that in the button generator it is not possible. Attach my congrats to the queue ! Marvan
Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
NICE! ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
Actually - I just looked at it more, and it is VERY cool. Off topic, but can you create buttons that have a small image or icon in them instead of text? I'll definitely be using this. Thanks! -- Jeremy Thomerson http://www.wickettraining.com On Thu, Jun 25, 2009 at 4:12 PM, Jeremy Thomerson wrote: > Hey - that looks cool. I would probably use it. Have you given any > thought to getting it into a maven repo? I'm pretty sure we could > even put it into the wicket stuff Maven repo. That would sure make it > easier to use in most Wicket projects since we use Maven in most of > them. > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > > On Thu, Jun 25, 2009 at 4:03 PM, rrmlwt wrote: >> Hi Folks, >> >> I just released Swit 0.9.0, a tiny lib I wrote to help manage the kind of >> graphical resources that are boring to create, such as buttons, borders, and >> layouts. >> It's an early release in the sense that it does not contain everything I'd >> like, but at least here it is. >> Feedbacks appreciated. It's been developped with Wicket 1.4, not sure it >> runs on 1.3 (haven't tested). >> The homepage: http://swit.kornr.net >> The google code page: http://code.google.com/p/swit/ >> >> cheers, >> Rodrigo >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
Hey - that looks cool. I would probably use it. Have you given any thought to getting it into a maven repo? I'm pretty sure we could even put it into the wicket stuff Maven repo. That would sure make it easier to use in most Wicket projects since we use Maven in most of them. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Jun 25, 2009 at 4:03 PM, rrmlwt wrote: > Hi Folks, > > I just released Swit 0.9.0, a tiny lib I wrote to help manage the kind of > graphical resources that are boring to create, such as buttons, borders, and > layouts. > It's an early release in the sense that it does not contain everything I'd > like, but at least here it is. > Feedbacks appreciated. It's been developped with Wicket 1.4, not sure it > runs on 1.3 (haven't tested). > The homepage: http://swit.kornr.net > The google code page: http://code.google.com/p/swit/ > > cheers, > Rodrigo > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
Very very cool. Congrats! On Fri, Jun 26, 2009 at 12:03 AM, rrmlwt wrote: > Hi Folks, > > I just released Swit 0.9.0, a tiny lib I wrote to help manage the kind of > graphical resources that are boring to create, such as buttons, borders, and > layouts. > It's an early release in the sense that it does not contain everything I'd > like, but at least here it is. > Feedbacks appreciated. It's been developped with Wicket 1.4, not sure it > runs on 1.3 (haven't tested). > The homepage: http://swit.kornr.net > The google code page: http://code.google.com/p/swit/ > > cheers, > Rodrigo > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Cristi Manole Nova Creator Software www.novacreator.com
[kind-of-announce] Swit 0.9.0, wicket library for graphics stuff
Hi Folks, I just released Swit 0.9.0, a tiny lib I wrote to help manage the kind of graphical resources that are boring to create, such as buttons, borders, and layouts. It's an early release in the sense that it does not contain everything I'd like, but at least here it is. Feedbacks appreciated. It's been developped with Wicket 1.4, not sure it runs on 1.3 (haven't tested). The homepage: http://swit.kornr.net The google code page: http://code.google.com/p/swit/ cheers, Rodrigo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org