Example usage for com.google.gwt.user.client.ui HorizontalPanel setCellWidth

List of usage examples for com.google.gwt.user.client.ui HorizontalPanel setCellWidth

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui HorizontalPanel setCellWidth.

Prototype

public void setCellWidth(IsWidget w, String width) 

Source Link

Document

Overloaded version for IsWidget.

Usage

From source file:com.apress.progwt.client.college.gui.CollegeEntry.java

License:Apache License

public CollegeEntry(User user, Application application, ServiceCache serviceCache, MyRankings myRankings) {
    this.application = application;
    this.serviceCache = serviceCache;
    this.user = user;
    this.myRankings = myRankings;

    collegeNameLabel = new Label(application.getSchool().getName());
    collegeNameLabel.setStylePrimaryName("TC-CollegeLabel");
    rankLabel = new Label();
    rankLabel.setStylePrimaryName("TC-CollegeEntry-RankLabel");

    HorizontalPanel mainPanel = new HorizontalPanel();
    mainPanel.add(rankLabel);//  w ww  .  j av  a2  s . c o m
    mainPanel.add(collegeNameLabel);
    mainPanel.setCellWidth(rankLabel, "30px");

    DisclosurePanel disclosurePanel = new DisclosurePanel(" ");
    disclosurePanel.add(getInfoPanel());
    mainPanel.add(disclosurePanel);
    mainPanel.setCellHorizontalAlignment(disclosurePanel, HorizontalPanel.ALIGN_RIGHT);
    mainPanel.setStylePrimaryName("TC-CollegeEntry");

    initWidget(mainPanel);

}

From source file:com.areahomeschoolers.baconbits.client.content.calendar.monthview.MonthView.java

License:Open Source License

/**
 * Configures a single day in the month grid of this <code>MonthView</code>.
 * //  ww  w  .ja  v a 2 s.c om
 * @param row
 *            The row in the grid on which the day will be set
 * @param col
 *            The col in the grid on which the day will be set
 * @param date
 *            The Date in the grid
 * @param isToday
 *            Indicates whether the day corresponds to today in the month view
 * @param notInCurrentMonth
 *            Indicates whether the day is in the current visualized month or belongs to any of the two adjacent months of the current month
 * @param weekNumber
 *            The weekNumber to show in the cell, only appears in the first col.
 */
private void configureDayInGrid(int row, int col, Date date, boolean isToday, boolean notInCurrentMonth,
        int weekNumber) {
    HorizontalPanel panel = new HorizontalPanel();
    String text = Integer.toString(ClientDateUtils.getDayInMonth(date));
    Label label = new Label(text);

    StringBuilder headerStyle = new StringBuilder(CELL_HEADER_STYLE);
    StringBuilder cellStyle = new StringBuilder(CELL_STYLE);

    for (Date day : getSettings().getHolidays()) {
        if (DateUtils.areOnTheSameDay(day, date)) {
            headerStyle.append("-holiday");
            cellStyle.append("-holiday");
            break;
        }
    }

    if (isToday) {
        headerStyle.append("-today");
        cellStyle.append("-today");
    }

    label.setStyleName(headerStyle.toString());
    if (notInCurrentMonth) {
        label.addStyleName("fadedText");
    }
    addDayClickHandler(label, (Date) date.clone());

    if (col == 0 && getSettings().isShowingWeekNumbers()) {
        Label weekLabel = new Label(String.valueOf(weekNumber));
        weekLabel.setStyleName(WEEKNUMBER_LABEL_STYLE);

        panel.add(weekLabel);
        panel.setCellWidth(weekLabel, "25px");
        DOM.setStyleAttribute(label.getElement(), "paddingLeft", "5px");
        addWeekClickHandler(weekLabel, (Date) date.clone());
    }
    panel.add(label);

    appointmentCanvas.add(panel);
    dayLabels.add(label);
    dayPanels.add(panel);

    monthCalendarGrid.getCellFormatter().setVerticalAlignment(row, col, HasVerticalAlignment.ALIGN_TOP);
    monthCalendarGrid.getCellFormatter().setStyleName(row, col, cellStyle.toString());
}

From source file:com.audata.client.admin.ClassificationPanel.java

License:Open Source License

/**
 * Public constructor of Classification//w  w w.j ava  2 s.c  o  m
 * Admin panel
 *
 */
public ClassificationPanel() {
    this.setSpacing(5);
    this.setSize("100%", "100%");

    // add section title
    Label l = new Label(LANG.classification_Text());
    l.addStyleName("audoc-sectionTitle");
    this.add(l);

    HorizontalPanel hp = new HorizontalPanel();
    hp.setSpacing(10);
    hp.setSize("100%", "100%");

    // add classification browser
    this.classBrowser = new ClassBrowser("100%", "100%");
    this.classBrowser.onUpdate();
    this.classBrowser.classes.addTreeListener(this);
    this.classBrowser.setStyleName("audoc-browser");
    this.classBrowser.setSize("100%", "100%");
    hp.add(this.classBrowser);

    // form
    VerticalPanel vp = new VerticalPanel();
    vp.addStyleName("audoc-form");
    vp.setSpacing(5);

    // name field
    HorizontalPanel namePanel = new HorizontalPanel();
    namePanel.setSpacing(5);
    Label n = new Label(LANG.name_Text());
    n.setWidth("100px");
    namePanel.add(n);
    this.name = new TextBox();
    namePanel.add(this.name);
    vp.add(namePanel);

    // retention field
    HorizontalPanel retPanel = new HorizontalPanel();
    retPanel.setSpacing(5);
    Label r = new Label(LANG.retention_Text());
    r.setWidth("100px");
    retPanel.add(r);
    this.retention = new NumericTextBox();
    retPanel.add(this.retention);
    vp.add(retPanel);

    // security level field
    HorizontalPanel secPanel = new HorizontalPanel();
    secPanel.setSpacing(5);
    Label s = new Label(LANG.security_level_Text());
    s.setWidth("100px");
    secPanel.add(s);
    this.secLevel = new ListBox();
    secPanel.add(this.secLevel);
    vp.add(secPanel);

    // caveats field
    HorizontalPanel cavPanel = new HorizontalPanel();
    cavPanel.setSpacing(5);
    Label c = new Label(LANG.security_caveat_Text());
    c.setWidth("100px");
    cavPanel.add(c);
    this.caveats = new ListBox();
    this.caveats.setMultipleSelect(true);
    this.caveats.setVisibleItemCount(5);
    cavPanel.add(this.caveats);
    vp.add(cavPanel);

    // Buttons
    HorizontalPanel butPanel = new HorizontalPanel();
    butPanel.setSpacing(5);

    this.save = new Button(LANG.save_Text());
    this.save.addClickListener(this);
    butPanel.add(this.save);

    this.delete = new Button(LANG.delete_Text());
    this.delete.addClickListener(this);
    butPanel.add(this.delete);

    this.newTop = new Button(LANG.new_Text());
    this.newTop.addClickListener(this);
    butPanel.add(this.newTop);

    this.newChild = new Button(LANG.new_child_Text());
    this.newChild.addClickListener(this);
    butPanel.add(this.newChild);

    vp.add(butPanel);

    // add it all up!
    hp.add(vp);
    hp.setCellWidth(this.classBrowser, "100%");

    this.add(hp);
    this.popLists();
}

From source file:com.audata.client.admin.KeywordPanel.java

License:Open Source License

/**
 * Public Constructor//from   w  w w .j a v a 2s  .  co  m
 *
 */
public KeywordPanel() {
    this.setSpacing(5);
    this.setSize("100%", "100%");

    // add section title
    Label l = new Label(LANG.admin_keyword_Text());
    l.addStyleName("audoc-sectionTitle");
    this.add(l);

    HorizontalPanel kwhs = new HorizontalPanel();
    kwhs.setSpacing(5);
    Label kl = new Label(LANG.keyword_hierarchy_Text());
    kwhs.add(kl);

    this.hierarchies = new ListBox();
    this.hierarchies.setWidth("150px");
    this.hierarchies.setVisibleItemCount(1);
    this.hierarchies.addChangeListener(this);
    kwhs.add(this.hierarchies);

    this.newHierarchy = new Button(LANG.new_Text());
    this.newHierarchy.addClickListener(this);
    kwhs.add(this.newHierarchy);

    this.delHierarchy = new Button(LANG.delete_Text());
    this.delHierarchy.addClickListener(this);
    kwhs.add(this.delHierarchy);

    this.add(kwhs);

    HorizontalPanel hp = new HorizontalPanel();
    hp.setSpacing(10);
    hp.setSize("100%", "100%");

    // add classification browser

    this.keywordBrowser = new KeywordBrowser("100%", "100%");
    this.keywordBrowser.keywords.addTreeListener(this);
    this.keywordBrowser.setStyleName("audoc-browser");
    this.keywordBrowser.setSize("100%", "100%");
    hp.add(this.keywordBrowser);
    hp.setCellWidth(this.keywordBrowser, "50%");
    hp.setCellHeight(this.keywordBrowser, "300px");

    // form
    VerticalPanel vp = new VerticalPanel();
    vp.addStyleName("audoc-form");
    vp.setSpacing(5);

    // name field
    HorizontalPanel namePanel = new HorizontalPanel();
    namePanel.setSpacing(5);
    Label n = new Label(LANG.name_Text());
    n.setWidth("100px");
    namePanel.add(n);
    this.name = new TextBox();
    namePanel.add(this.name);
    vp.add(namePanel);

    // Buttons
    HorizontalPanel butPanel = new HorizontalPanel();
    butPanel.setSpacing(5);

    this.save = new Button(LANG.save_Text());
    this.save.addClickListener(this);
    butPanel.add(this.save);

    this.delete = new Button(LANG.delete_Text());
    this.delete.addClickListener(this);
    butPanel.add(this.delete);

    this.newTop = new Button(LANG.new_Text());
    this.newTop.addClickListener(this);
    butPanel.add(this.newTop);

    this.newChild = new Button(LANG.new_child_Text());
    this.newChild.addClickListener(this);
    butPanel.add(this.newChild);

    vp.add(butPanel);

    // add it all up!
    hp.add(vp);

    this.add(hp);
    this.getHierarchies();
}

From source file:com.audata.client.AuDoc.java

License:Open Source License

/**
 * Builds the menu bar panel//  w  ww .  j  a va 2 s.c om
 * @return HorizontalPanel containing the menu bar
 */
private HorizontalPanel buildMenu() {
    HorizontalPanel menu = new HorizontalPanel();
    menu.addStyleName("menu");
    menu.setWidth("100%");
    menu.setHorizontalAlignment(HasAlignment.ALIGN_LEFT);
    menu.setVerticalAlignment(HasAlignment.ALIGN_BOTTOM);
    menu.setSpacing(4);

    CaptionButton cb = new CaptionButton();
    cb.setImageUrl("images/48x48/home.gif");
    cb.setCaptionText(LANG.home_Text());
    cb.setOrientation(DockPanel.SOUTH);
    cb.addClickListener(new MenuClickListener(this, AuDoc.SECTION_HOME));
    cb.setTitle(LANG.home_title_Text());
    menu.add(cb);

    CaptionButton cb_1 = new CaptionButton();
    cb_1.setImageUrl("images/48x48/search.gif");
    cb_1.setCaptionText(LANG.search_Text());
    cb_1.setOrientation(DockPanel.SOUTH);
    cb_1.addClickListener(new MenuClickListener(this, AuDoc.SECTION_SEARCH));
    cb_1.setTitle(LANG.search_title_Text());
    menu.add(cb_1);

    CaptionButton cb_2 = new CaptionButton();
    cb_2.addCaptionStyleName("nowrap");
    cb_2.setOrientation(DockPanel.SOUTH);
    cb_2.setImageUrl("images/48x48/newrec.gif");
    cb_2.setCaptionText(LANG.newrec_Text());
    cb_2.addClickListener(new MenuClickListener(this, AuDoc.SECTION_NEW));
    cb_2.setTitle(LANG.newrec_title_Text());
    menu.add(cb_2);

    CaptionButton cb_3 = new CaptionButton();
    cb_3.setImageUrl("images/48x48/reports.gif");
    cb_3.setCaptionText(LANG.report_Text());
    cb_3.setOrientation(DockPanel.SOUTH);
    cb_3.addClickListener(new MenuClickListener(this, AuDoc.SECTION_REPORT));
    cb_3.setTitle(LANG.report_title_Text());
    menu.add(cb_3);

    CaptionButton cb_4 = new CaptionButton();
    cb_4.setImageUrl("images/48x48/checkout.gif");
    cb_4.setCaptionText(LANG.rapid_title_Text());
    cb_4.setOrientation(DockPanel.SOUTH);
    cb_4.addClickListener(new MenuClickListener(this, AuDoc.SECTION_RAPID));
    cb_4.setTitle(LANG.rapid_title_Text());
    menu.add(cb_4);

    this.adminButton = new CaptionButton();
    this.adminButton.setImageUrl("images/48x48/admin.gif");
    this.adminButton.setCaptionText(LANG.admin_Text());
    this.adminButton.setOrientation(DockPanel.SOUTH);
    this.adminButton.setVisible(false);
    this.adminButton.addClickListener(new MenuClickListener(this, AuDoc.SECTION_ADMIN));
    this.adminButton.setTitle(LANG.admin_title_Text());
    menu.add(this.adminButton);
    menu.setCellWidth(this.adminButton, "100%");
    menu.setCellHorizontalAlignment(this.adminButton, HasAlignment.ALIGN_RIGHT);

    return menu;
}

From source file:com.audata.client.rapidbooking.RapidBookingDialog.java

License:Open Source License

public RapidBookingDialog() {
    setText(CONSTANTS.rapid_title_Text());
    DockPanel outer = new DockPanel();
    outer.setSpacing(4);//w w w. java2  s  . c  o m

    outer.add(new Image("images/48x48/checkout.gif"), DockPanel.WEST);

    VerticalPanel form = new VerticalPanel();
    form.setSpacing(4);

    this.checkin = new RadioButton("ActionGroup", CONSTANTS.check_in_Text());
    this.checkin.addClickListener(this);
    this.checkin.setChecked(true);
    this.checkin.addStyleName("audoc-label");
    form.add(this.checkin);
    this.checkout = new RadioButton("ActionGroup", CONSTANTS.checkout_Text());
    this.checkout.addClickListener(this);
    this.checkout.addStyleName("audoc-label");
    form.add(this.checkout);

    this.userPanel = new HorizontalPanel();
    Label l = new Label(CONSTANTS.user_Text());
    l.addStyleName("audoc-label");
    userPanel.add(l);
    this.users = new ListBox();
    userPanel.add(this.users);
    userPanel.setCellWidth(l, "100px");
    this.userPanel.setVisible(false);
    form.add(this.userPanel);

    HorizontalPanel recnumPanel = new HorizontalPanel();
    Label r = new Label(CONSTANTS.rec_num_Text());
    r.addStyleName("audoc-label");
    recnumPanel.add(r);
    this.recnum = new TextBox();
    recnumPanel.add(this.recnum);
    recnumPanel.setCellWidth(r, "100px");
    form.add(recnumPanel);

    HorizontalPanel butPanel = new HorizontalPanel();
    butPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
    butPanel.setSpacing(4);
    this.closeButton = new Button(CONSTANTS.close_Text());
    this.closeButton.addClickListener(this);
    butPanel.add(this.closeButton);

    this.okButton = new Button(CONSTANTS.ok_Text());
    this.okButton.addClickListener(this);
    butPanel.add(this.okButton);
    //       butPanel.setWidth("100%");
    form.add(butPanel);

    String template = "<span class=\"rapid_processed\">#0 #1</span>";
    this.processed = new HTMLButtonList("images/16x16/treerec.gif", template, false);
    this.processed.setWidth("100%");
    this.processed.setHeight("75px");
    form.add(this.processed);

    outer.add(form, DockPanel.NORTH);
    if (AuDoc.state.getItem("isAdmin") == "true") {
        this.getUsers();
    } else {
        String username = (String) AuDoc.state.getItem("username");
        String forename = (String) AuDoc.state.getItem("forename");
        String surname = (String) AuDoc.state.getItem("surname");
        this.users.addItem(surname + ", " + forename, username);
    }
    this.setWidget(outer);
}

From source file:com.audata.client.record.RecordListPanel.java

License:Open Source License

public RecordListPanel(String subtitle, JSONArray records, String method, JSONArray params, String uuid,
        String criteria) {//from  ww w.  jav  a2  s  .c  o m
    this.main = new VerticalPanel();
    this.count = 0;
    this.subtitle = subtitle;
    this.method = method;
    this.params = params;
    this.uuid = uuid;
    this.setSize("100%", "100%");
    this.main.setSize("100%", "100%");
    this.main.setSpacing(4);
    HorizontalPanel title = new HorizontalPanel();
    title.setSpacing(4);
    title.setWidth("100%");
    Label l = new Label(LANG.records_Text());
    l.addStyleName("audoc-sectionTitle");
    title.add(l);
    title.setCellHorizontalAlignment(l, HasAlignment.ALIGN_LEFT);
    this.countLabel = new Label(this.subtitle + "\n " + LANG.rec_count_Text() + ": " + this.count);
    this.countLabel.addStyleName("audoc-sectionSubTitle");
    title.add(this.countLabel);
    title.setCellHorizontalAlignment(this.countLabel, HasAlignment.ALIGN_RIGHT);
    this.main.add(title);
    this.getCount();

    if (criteria != null) {
        Label critLabel = new Label(LANG.criteria_Text() + ": [" + criteria + "]");
        critLabel.setWidth("100%");
        critLabel.addStyleName("audoc-criteria");
        this.main.add(critLabel);
    }
    HorizontalPanel hp = new HorizontalPanel();
    this.main.add(hp);

    hp.setVerticalAlignment(HasAlignment.ALIGN_TOP);
    hp.setSize("100%", "100%");
    hp.setSpacing(4);

    VerticalPanel vp = new VerticalPanel();
    //vp.setSpacing(4);
    vp.setSize("100%", "100%");
    vp.add(this.buildMenu());
    String template = "<span class=\"audoc-record-title\">#0 [#1]</span><br/>"
            + "<span class=\"audoc-record-class\">#2</span><br/>" + "<span class=\"audoc-record-cot\">"
            + LANG.with_Text() + ": #3<span>";
    this.rList = new HTMLButtonList("images/48x48/rectypes.gif", template, true);
    this.rList.addStyleName("audoc-recList");
    vp.add(this.rList);
    this.rList.setSize("100%", "90%");
    vp.setCellHeight(this.rList, "100%");
    hp.add(vp);
    this.addRecords(records);

    Panel cPanel = this.buildCommands();

    hp.add(cPanel);
    //cPanel.setWidth("150px");
    hp.setCellWidth(cPanel, "250px");
    hp.setCellWidth(this.rList, "100%");
    this.add(main);
    this.addKeyboardListener(this);
}

From source file:com.audata.client.search.SavedSearchDialog.java

License:Open Source License

public SavedSearchDialog(ArrayList criteria) {
    this.criteria = criteria;
    this.setText(LANG.save_search_Text());
    VerticalPanel main = new VerticalPanel();
    main.setSpacing(4);//w w w. j  a  va 2  s . c  o m

    HorizontalPanel titlePanel = new HorizontalPanel();
    Label tLabel = new Label(LANG.title_Text());
    titlePanel.add(tLabel);
    this.title = new TextBox();
    titlePanel.add(this.title);
    titlePanel.setCellWidth(tLabel, "100px");
    main.add(titlePanel);

    HorizontalPanel descPanel = new HorizontalPanel();
    Label dLabel = new Label(LANG.description_Text());
    descPanel.add(dLabel);
    this.description = new TextArea();
    descPanel.add(this.description);
    descPanel.setCellWidth(dLabel, "100px");
    main.add(descPanel);

    HorizontalPanel butPanel = new HorizontalPanel();
    butPanel.setSpacing(4);
    this.ok = new Button(LANG.save_Text());
    this.ok.addClickListener(this);
    butPanel.add(this.ok);
    this.cancel = new Button(LANG.cancel_Text());
    this.cancel.addClickListener(this);
    butPanel.add(this.cancel);
    main.add(butPanel);

    this.setWidget(main);
}

From source file:com.audata.client.search.SearchPanel.java

License:Open Source License

public SearchPanel(AuDoc audoc, ArrayList criteria) {
    this.audoc = audoc;
    if (criteria != null) {
        this.searchTerms = criteria;
    } else {// w ww .jav a2s. c  o  m
        if (AuDoc.state.containsKey("Search")) {
            this.searchTerms = (ArrayList) AuDoc.state.getItem("Search");
        } else {
            this.searchTerms = new ArrayList();
        }
    }
    this.setSize("100%", "100%");
    this.setSpacing(4);
    Label title = new Label(LANG.search_Text());
    title.addStyleName("audoc-sectionTitle");
    this.add(title);

    HorizontalPanel hp = new HorizontalPanel();
    hp.setSpacing(4);
    hp.setSize("100%", "100%");

    this.fieldsTree = new Tree();
    this.fieldsTree.addTreeListener(this);
    //this.fieldsTree.setSize("100%", "100%");
    this.fieldsTree.setHeight("90%");
    this.fieldsTree.addStyleName("audoc-fieldTree");
    hp.add(this.fieldsTree);
    this.buildSections();
    this.getUDFs();
    this.addStdFields();

    VerticalPanel form = new VerticalPanel();
    form.addStyleName("audoc-searchForm");
    //form.setSize("100%","100%");
    form.setWidth("250px");
    form.setSpacing(4);
    HorizontalPanel fieldRow = new HorizontalPanel();
    fieldRow.setSpacing(4);
    Label fieldLabel = new Label(LANG.field_Text());
    this.fieldName = new Label();
    this.fieldName.addStyleName("bold");

    fieldRow.add(fieldLabel);
    fieldRow.add(this.fieldName);
    fieldRow.setCellWidth(fieldLabel, "100px");
    fieldRow.setCellHorizontalAlignment(fieldLabel, HasAlignment.ALIGN_LEFT);
    form.add(fieldRow);

    this.valuePanel = new HorizontalPanel();
    this.valuePanel.setSpacing(4);
    Label valueLabel = new Label(LANG.criteria_Text());
    TextBox value = new TextBox();
    this.valuePanel.add(valueLabel);
    this.valuePanel.add(value);
    this.valuePanel.setCellWidth(valueLabel, "100px");
    this.valuePanel.setCellHorizontalAlignment(valueLabel, HasAlignment.ALIGN_LEFT);
    form.add(this.valuePanel);

    HorizontalPanel andOr = new HorizontalPanel();
    andOr.setSpacing(4);
    this.and = new RadioButton("andOr", LANG.and_Text());
    this.and.setChecked(true);
    this.or = new RadioButton("andOr", LANG.or_Text());
    andOr.add(this.and);
    andOr.add(this.or);
    form.add(andOr);

    HorizontalPanel buttons = new HorizontalPanel();
    buttons.setSpacing(4);
    this.add = new Button(LANG.add_Text());
    this.add.addClickListener(this);
    buttons.add(this.add);
    this.clear = new Button(LANG.clear_Text());
    this.clear.addClickListener(this);
    buttons.add(this.clear);

    form.add(buttons);

    this.criteria = new ListBox();
    this.criteria.setVisibleItemCount(10);
    this.criteria.setWidth("100%");
    form.add(this.criteria);

    HorizontalPanel buttons2 = new HorizontalPanel();
    buttons2.setSpacing(4);
    this.search = new Button(LANG.search_Text());
    this.search.addClickListener(this);
    buttons2.add(this.search);
    this.save = new Button(LANG.save_Text());
    this.save.addClickListener(this);
    buttons2.add(this.save);
    form.add(buttons2);

    hp.add(form);

    hp.setCellHeight(this.fieldsTree, "100%");
    this.add(hp);
    this.paintCriteria();
}

From source file:com.bedatadriven.renjin.appengine.client.CommandPrompt.java

License:Apache License

/**
 * This creates an immutable copy of the prompt and input area suitable for
 * adding to the page./*from  ww  w . ja  v a  2  s.  com*/
 */
public Widget createImmutablePanel() {
    HorizontalPanel panelCopy = new HorizontalPanel();

    Label promptCopy = new Label(prompt.getText());
    promptCopy.setStyleName(prompt.getStyleName());
    promptCopy.getElement().getStyle().setProperty("width",
            prompt.getElement().getStyle().getProperty("width"));
    panelCopy.add(promptCopy);

    final InterpreterType t = type;
    final String scriptText = inputArea.getText();

    TextArea inputAreaCopy = new TextArea();
    inputAreaCopy.setStyleName(inputArea.getStyleName());
    inputAreaCopy.setText(removeTrailingNewLines(scriptText));
    inputAreaCopy.setVisibleLines(countLines(inputArea));
    inputAreaCopy.setReadOnly(true);

    SimplePanel inputAreaDivCopy = new SimplePanel();

    inputAreaDivCopy.add(inputAreaCopy);

    inputAreaDivCopy.getElement().setAttribute("style", inputAreaDiv.getElement().getAttribute("style"));

    panelCopy.add(inputAreaDivCopy);
    panelCopy.setCellWidth(inputAreaDivCopy, "100%");

    return panelCopy;
}