Hi EveryBody,
Sorry for a basic problem. I tried to do this myself but I have no way to
proceed.
My problem is that I am try a get a MulticolumnFormPanel including HTML editor
or RichTextArea Which is displayed on a PopUpPanel.
Please make a note that I don't want to use any external html though we have no
problem to include css or javascript which as of I know we can do by GWT API.
My codes are as follows :
PopupPanel popup = new PopupPanel();
popup.center();
popup.add(createAddCommentForm());
popup.show();
----------------------------------------------------
private Panel createAddCommentForm()
{
Panel panel = new Panel();
FormPanel formPanel = new FormPanel();
formPanel.setFrame(true);
formPanel.setTitle("Model Component Comments - "+ new Date() );
formPanel.setPaddings(5, 5, 5, 0);
formPanel.setWidth(600);
formPanel.setLabelAlign(Position.TOP);
Panel topPanel = new Panel();
topPanel.setLayout(new ColumnLayout());
Panel columnOnePanel = new Panel();
columnOnePanel.setLayout(new FormLayout());
TextField loginName = new TextField("Login Name : ", "user");
columnOnePanel.add(loginName, new AnchorLayoutData("45%"));
TextField loginPasswd = new TextField("Login Password : ", "passwd");
columnOnePanel.add(loginPasswd, new AnchorLayoutData("45%"));
topPanel.add(columnOnePanel, new ColumnLayoutData(.5));
formPanel.add(topPanel);
HtmlEditor htmlEditor = new HtmlEditor("Comments", "comments");
htmlEditor.setHeight(200);
formPanel.add(htmlEditor, new AnchorLayoutData("90%"));
formPanel.addButton(new Button("Save"));
formPanel.addButton(new Button("Cancel"));
panel.add(formPanel);
return panel;
}
Using the above mentioned code I am able to get the form but not in good look.
Major issues are
titles, labels do not come with grey background.
HTML editor toolbar buttons do not come up correctly.This shows
only grey background mark without pic.
As far as I understand , I need to apply css or java script. But how I am
not able to get?
Can anybody please help me out. Is this possible without using any external
HTML.
Thanks in advance,
Regards,
Manish
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---