Hi Andrey,
On 4/02/2010 04:21 AM, Andrey P.Rybin wrote:
1) Is here some plans to add modal window/dialog box functionality to Click?
I'm not aware of anyone working on this but it would be a great addition.
We'd need to think how to solve this in a cross browser way. I just had a look at showModalDialog
and it seems that only Firefox and IE supports it properly. Chrome displays a dialog but it is not
modal. Opera didn't work either.
Another option is to use a JavaScript based solution but that could be a bit
heavy weight.
2) How to do form with this layout:
Label [input field] [question-mark image with tooltip]
This code
form.add(field1);
form.add(new Label("my html "));
shows field and [question-mark image with tooltip] in two lines
Label [input field]
[question-mark image with tooltip]
I've found that for flexible layouts the HTML list (<ul>) is quite useful. You can see a demo here:
http://www.avoka.com/click-examples/form/contact-details.htm
3) May be I just can't find...
Do Click have simple AbstractContainerField descendants with div and
span tags (as in AbstractContainerField javadoc)?
There are no descendants of this container but its pretty easy to add a custom
control:
public class DivContainerField extends ContainerField {
public String getTag() {
return "div";
}
}
Whether we add this to Click itself is up for debate. We should be careful not to bloat the library
too much for those less common use cases. One option is to host these controls in the ClickClick[1]
project and incorporate them into Click if they are popular. I know ClickClick is currently a pain
because there are no builds available but once Click 2.1.0 is out we can start building ClickClick
binary artifacts.
kind regards
bob
[1]: http://code.google.com/p/clickclick/