Examples of HTMLPane


Examples of com.smartgwt.client.widgets.HTMLPane

    logo.setWidth(600);
    logo.setHeight(220);
    logo.setMargin(30);
    logo.setLayoutAlign(Alignment.CENTER);

    HTMLPane pane = new HTMLPane();
    String currentLocale = LocaleInfo.getCurrentLocale().getLocaleName();
    if ("default".equals(currentLocale)) {
      pane.setContentsURL("[ISOMORPHIC]/geomajas/example/pages/intro.html");
    } else if ("nl".equals(currentLocale)) {
      pane.setContentsURL("[ISOMORPHIC]/geomajas/example/pages/intro_nl.html");
    }

    layout.addMember(logo);
    layout.addMember(pane);
View Full Code Here

Examples of com.smartgwt.client.widgets.HTMLPane

      // Create a header for the criterionStack:
      HLayout headerLayout = new HLayout();
      headerLayout.setHeight(26);
      headerLayout.setStyleName(STYLE_HEADER_BAR);
      HTMLPane attrHeader = new HTMLPane();
      attrHeader.setStyleName(STYLE_SEARCH_HEADER);
      attrHeader.setContents("Attribute");
      attrHeader.setWidth(140);
      HTMLPane operatorHeader = new HTMLPane();
      operatorHeader.setContents("Operator");
      operatorHeader.setWidth(140);
      operatorHeader.setStyleName(STYLE_SEARCH_HEADER);
      HTMLPane valueHeader = new HTMLPane();
      valueHeader.setContents("Value");
      valueHeader.setStyleName(STYLE_SEARCH_HEADER);

      criterionStack = new VStack();
      criterionStack.setAlign(VerticalAlignment.TOP);
      headerLayout.addMember(attrHeader);
      headerLayout.addMember(operatorHeader);
      headerLayout.addMember(valueHeader);
      criterionStack.addMember(headerLayout);

      buttonStack = new VStack();
      buttonStack.setWidth(70);
      buttonStack.setAlign(VerticalAlignment.TOP);
      HTMLPane btnHeader = new HTMLPane();
      btnHeader.setStyleName(STYLE_HEADER_BAR);
      btnHeader.setWidth(70);
      btnHeader.setHeight(26);
      buttonStack.addMember(btnHeader);

      HLayout searchGrid = new HLayout();
      searchGrid.addMember(criterionStack);
      searchGrid.addMember(buttonStack);
View Full Code Here

Examples of com.smartgwt.client.widgets.HTMLPane

      String content = "<div><b>" + error.getClassName() + ":</b></div><div style='padding-left:10px;'>";
      for (StackTraceElement el : error.getStackTrace()) {
        content += el.toString() + "<br/>";
      }
      content += "</div>";
      HTMLPane detailPane = new HTMLPane();
      detailPane.setContents(content);
      detailPane.setWidth100();
      detailPane.setHeight100();
      detailsLayout = new VLayout();
      detailsLayout.setWidth100();
      detailsLayout.setHeight100();
      detailsLayout.addMember(detailPane);
      detailsLayout.setBorder("1px solid #A0A0A0;");
View Full Code Here

Examples of com.smartgwt.client.widgets.HTMLPane

    // Create a header for the criterionStack:
    HLayout headerLayout = new HLayout();
    headerLayout.setHeight(26);
    headerLayout.setStyleName(STYLE_HEADER_BAR);
    HTMLPane attrHeader = new HTMLPane();
    attrHeader.setStyleName(STYLE_SEARCH_HEADER);
    attrHeader.setContents("Attribute");
    attrHeader.setWidth(140);
    HTMLPane operatorHeader = new HTMLPane();
    operatorHeader.setContents("Operator");
    operatorHeader.setWidth(140);
    operatorHeader.setStyleName(STYLE_SEARCH_HEADER);
    HTMLPane valueHeader = new HTMLPane();
    valueHeader.setContents("Value");
    valueHeader.setStyleName(STYLE_SEARCH_HEADER);

    criterionStack = new VStack();
    criterionStack.setAlign(VerticalAlignment.TOP);
    headerLayout.addMember(attrHeader);
    headerLayout.addMember(operatorHeader);
    headerLayout.addMember(valueHeader);
    criterionStack.addMember(headerLayout);

    buttonStack = new VStack();
    buttonStack.setWidth(70);
    buttonStack.setAlign(VerticalAlignment.TOP);
    HTMLPane btnHeader = new HTMLPane();
    btnHeader.setStyleName(STYLE_HEADER_BAR);
    btnHeader.setWidth(70);
    btnHeader.setHeight(26);
    buttonStack.addMember(btnHeader);

    HLayout searchGrid = new HLayout();
    searchGrid.addMember(criterionStack);
    searchGrid.addMember(buttonStack);
View Full Code Here

Examples of com.smartgwt.client.widgets.HTMLPane

  private static final String DONUT_PAGE = "[ISOMORPHIC]/geomajas/example/pages/edit/donut_polygon.html";

  public EditingManual() {
    Tab tab1 = new Tab();
    tab1.setTitle("Create a new feature");
    HTMLPane pane1 = new HTMLPane();
    pane1.setContentsURL(CREATE_FEATURE_PAGE);
    tab1.setPane(pane1);
    tab1.setCanClose(false);
    addTab(tab1);

    Tab tab2 = new Tab();
    tab2.setTitle("Edit a feature");
    HTMLPane pane2 = new HTMLPane();
    pane2.setContentsURL(EDIT_FEATURE_PAGE);
    tab2.setPane(pane2);
    tab2.setCanClose(false);
    addTab(tab2);

    Tab tab3 = new Tab();
    tab3.setTitle("Delete a feature");
    HTMLPane pane3 = new HTMLPane();
    pane3.setContentsURL(DELETE_FEATURE_PAGE);
    tab3.setPane(pane3);
    tab3.setCanClose(false);
    addTab(tab3);

    Tab tab4 = new Tab();
    tab4.setTitle("Create donut polygon");
    HTMLPane pane4 = new HTMLPane();
    pane4.setContentsURL(DONUT_PAGE);
    tab4.setPane(pane4);
    tab4.setCanClose(false);
    addTab(tab4);
  }
View Full Code Here

Examples of com.smartgwt.client.widgets.HTMLPane

    addSourceTab(tabs, fileContents.get(getSourceFileName()));

    for (Entry<String, String> entry : fileContents.entrySet()) {
      if (!entry.getKey().equals(getSourceFileName())) {
        VLayout resourceLayout = new VLayout();
        HTMLPane tabPane = new HTMLPane();
        tabPane.setWidth100();
        tabPane.setHeight100();
        tabPane.setContents("<pre style='color:#000000;'>" + XmlParser.parseXML(entry.getValue()) + "</pre>");
        tabPane.setContentsType(ContentsType.PAGE);

        Label resourceLabel = new Label(I18nProvider.getSampleMessages().generalFile() + ": <b>"
            + entry.getKey() + "</b>");
        resourceLabel.setHeight(30);
        resourceLabel.setPadding(5);
View Full Code Here

Examples of com.smartgwt.client.widgets.HTMLPane

    sourceWindow.show();
  }

  private void addSourceTab(TabSet tabs, String content) {
    VLayout sourceLayout = new VLayout();
    HTMLPane tabSource = new HTMLPane();
    tabSource.setWidth100();
    tabSource.setHeight100();
    tabSource.setContents("<pre style='color:#000000;'>" + JavaParser.parseJava(content) + "</pre>");
    tabSource.setContentsType(ContentsType.PAGE);

    sourceLayout.addMember(tabSource);

    String tabTitle = I18nProvider.getSampleMessages().generalJavaSource();
    int pos = tabTitle.lastIndexOf('/');
View Full Code Here

Examples of com.smartgwt.client.widgets.HTMLPane

*/
public class ErrorMessageWindow extends Window {
    public ErrorMessageWindow(String title, String message) {
        super();

        HTMLPane htmlPane = new HTMLPane();
        htmlPane.setMargin(10);
        htmlPane.setDefaultWidth(500);
        htmlPane.setDefaultHeight(400);
        htmlPane.setContents(message);

        setupWindow(title, htmlPane);
    }
View Full Code Here

Examples of com.smartgwt.client.widgets.HTMLPane

                        public void onCloseClick(CloseClickEvent event) {
                            winModal.markForDestroy();
                        }
                    });

                    HTMLPane htmlPane = new HTMLPane();
                    htmlPane.setMargin(10);
                    htmlPane.setDefaultWidth(500);
                    htmlPane.setDefaultHeight(400);
                    String errorMsg = record.getAttribute(AbstractOperationHistoryDataSource.Field.ERROR_MESSAGE);
                    if (errorMsg == null) {
                        errorMsg = MSG.common_status_failed();
                    }
                    htmlPane.setContents("<pre>" + errorMsg + "</pre>");
                    winModal.addItem(htmlPane);
                    winModal.show();
                }
            }
        });
View Full Code Here

Examples of com.smartgwt.client.widgets.HTMLPane

    class MessageWindow extends Window {
        public MessageWindow(String title, String message) {
            super();

            HTMLPane htmlPane = new HTMLPane();
            htmlPane.setMargin(10);
            htmlPane.setDefaultWidth(600);
            htmlPane.setDefaultHeight(400);
            htmlPane.setContents(message);

            setTitle(title);
            setShowMinimizeButton(false);
            setShowMaximizeButton(true);
            setShowCloseButton(true);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.