Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.HTML.addStyleName()


        for (int col = 0 + firstDayOffset; col < (7 + firstDayOffset); col++) {
            int tCol = col < 7 ? col : col - 7;
            HTML contents = new HTML(weekDayNames[tCol]);
            contents.setStyleName("calendar-cell");
            contents.addStyleName("calendar-headingCell");
            contents.addStyleName(getStylenameForDay(tCol));
            setWidget(0, col - firstDayOffset, contents);
        }
       
        int firstDay = cm.getFirstDay() - firstDayOffset;
View Full Code Here


        for (int col = 0 + firstDayOffset; col < (7 + firstDayOffset); col++) {
            int tCol = col < 7 ? col : col - 7;
            HTML contents = new HTML(weekDayNames[tCol]);
            contents.setStyleName("calendar-cell");
            contents.addStyleName("calendar-headingCell");
            contents.addStyleName(getStylenameForDay(tCol));
            setWidget(0, col - firstDayOffset, contents);
        }
       
        int firstDay = cm.getFirstDay() - firstDayOffset;
        firstDay = firstDay < 0 ? firstDay + 7 : firstDay;
View Full Code Here

            final boolean hasEvents = cm.hasEvent(date);
            int row = (int) Math.floor((firstDay + d + 6) / 7) + (firstDay == 0 ? 1 : 0);
            int col = (firstDay + d + 6) % 7;
            HTML contents = new HTML(Integer.toString(date));
            contents.setStyleName("calendar-cell");
            contents.addStyleName("calendar-dateCell");
            contents.addStyleName(getStylenameForDay(col + firstDayOffset));
            if (hasEvents) {
                contents.addStyleName("calendar-eventCell");
            }
            contents.addClickListener(new ClickListener()
View Full Code Here

            int row = (int) Math.floor((firstDay + d + 6) / 7) + (firstDay == 0 ? 1 : 0);
            int col = (firstDay + d + 6) % 7;
            HTML contents = new HTML(Integer.toString(date));
            contents.setStyleName("calendar-cell");
            contents.addStyleName("calendar-dateCell");
            contents.addStyleName(getStylenameForDay(col + firstDayOffset));
            if (hasEvents) {
                contents.addStyleName("calendar-eventCell");
            }
            contents.addClickListener(new ClickListener()
            {
View Full Code Here

            HTML contents = new HTML(Integer.toString(date));
            contents.setStyleName("calendar-cell");
            contents.addStyleName("calendar-dateCell");
            contents.addStyleName(getStylenameForDay(col + firstDayOffset));
            if (hasEvents) {
                contents.addStyleName("calendar-eventCell");
            }
            contents.addClickListener(new ClickListener()
            {
                public void onClick (Widget sender)
                {
View Full Code Here

            new AsyncCallback<String>() {
              public void onFailure(Throwable caught) {
                // Show the RPC error message to the user
                dialogBox
                    .setText("Remote Procedure Call - Failure");
                serverResponseLabel
                    .addStyleName("serverResponseLabelError");
                serverResponseLabel.setHTML(SERVER_ERROR);
                dialogBox.center();
                closeButton.setFocus(true);
              }
View Full Code Here

        return addStackTrace(cause);
    }
   
    Label createMessageLabel(Throwable t) {
        HTML label = new HTML(t.getMessage());
        label.addStyleName(STYLE_MESSAGE);
        return label;
    }
   
    Label createStackTrace(StackTraceElement trace) {
        HTML label = new HTML(trace.toString());
View Full Code Here

        return label;
    }
   
    Label createStackTrace(StackTraceElement trace) {
        HTML label = new HTML(trace.toString());
        label.addStyleName(STYLE_MESSAGE);
        return label;
    }
}
View Full Code Here

        return _rows == null ? Collections.EMPTY_LIST : Collections.unmodifiableList(_rows);
    }
   
    public void setCaption(String str) {
        HTML caption = new HTML(str);
        caption.addStyleName(STYLE_CAPTION);
        _caption.setWidget(0, 0, caption);
    }
   
    public void setSize(int w, int h) {
        int dh = 0;
View Full Code Here

        }
    }
   
    public void setColumnHeader(int column, String txt, String width) {
        HTML header = new HTML(txt);
        header.addStyleName(STYLE_HEADER);
        _header.setWidget(0, column, header);
        _main.getColumnFormatter().setWidth(column, width);
    }
   
    public void setStripeRows(boolean stripe) {
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.