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

Examples of com.google.gwt.user.client.ui.Label


        sorted.clear();

    }

    private void createDecorations() {
        whenlabel = new Label();

        magBig = ConstHolder.images.magnifyingBig().createImage();
        magBig.addClickListener(new ClickListener() {
            public void onClick(Widget arg0) {
                zoomIn();
View Full Code Here


        this.mainWidget = mainWidget;

        HorizontalPanel panel = new HorizontalPanel();

        if (mainLabel == null) {
            label = new Label("", false);
        } else {
            label = mainLabel;
        }

        TLORangeEdge edge = new TLORangeEdge(timeline, tlo, this, true,
View Full Code Here

            e.printStackTrace();

            VerticalPanel panel = new VerticalPanel();

            panel.add(new Label("Error"));
            panel.add(new Label(e.getMessage()));

            GWTApp.show(1, panel);

        }
View Full Code Here

   * @return
   */
  private VerticalPanel createDatePanel() {
    // Create a basic date picker
    DatePicker datePicker = new DatePicker();
    final Label text = new Label();

    // Set the value in the text box when the user selects a date
    datePicker.addValueChangeHandler(new ValueChangeHandler<Date>() {
      public void onValueChange(ValueChangeEvent<Date> event) {
        Date date = event.getValue();
        String dateString = DateTimeFormat.getMediumDateFormat().format(date);
        text.setText(dateString);
      }
    });

    // Set the default value
    datePicker.setValue(new Date(), true);
View Full Code Here

*/
public class GlassPanelExample implements EntryPoint {
  public void onModuleLoad() {
    // Create a glass panel covering the entire browser document
    RootPanel.get().add(
        new Label(
            "The browser document will be covered by a semi-transparent glass panel."));
    RootPanel.get().add(
        new Label("Hit ESC or click anywhere on the glass panel to remove it."));
    RootPanel.get().add(new GlassPanel(true), 0, 0);

    // Create a small AbsolutePanel
    AbsolutePanel absolutePanel = new AbsolutePanel();
    absolutePanel.setPixelSize(100, 100);
    DOM.setStyleAttribute(absolutePanel.getElement(), "border",
        "1px solid black");
    absolutePanel.add(new Label(
        "This AbsolutePanel is covered with a semi-transparent green glass panel"));

    // Attach the AbsolutePanel
    RootPanel.get().add(absolutePanel, 50, 50);

View Full Code Here

        popup = new VOverlay(true, false, true);
        popup.setOwner(this);

        FlowPanel wrapper = new FlowPanel();
        selectedDate = new Label();
        selectedDate.setStyleName(getStylePrimaryName() + "-selecteddate");
        AriaHelper.setVisibleForAssistiveDevicesOnly(selectedDate.getElement(),
                true);

        Roles.getTextboxRole().setAriaLiveProperty(selectedDate.getElement(),
View Full Code Here

        }
    }

    public void add(String dayName, final String date,
            String localized_date_format, String extraClass) {
        Label l = new Label(dayName + " " + localized_date_format);
        l.setStylePrimaryName("v-calendar-header-day");

        if (extraClass != null) {
            l.addStyleDependentName(extraClass);
        }

        if (verticalSized) {
            l.addStyleDependentName("Vsized");
        }
        if (horizontalSized) {
            l.addStyleDependentName("Hsized");
        }

        l.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                if (calendar.getDateClickListener() != null) {
                    calendar.getDateClickListener().dateClick(date);
                }
View Full Code Here

    public SimpleDayCell(VCalendar calendar, int row, int cell) {
        this.calendar = calendar;
        this.row = row;
        this.cell = cell;
        setStylePrimaryName("v-calendar-month-day");
        caption = new Label();
        bottomspacer = new HTML();
        bottomspacer.setStyleName("v-calendar-bottom-spacer-empty");
        bottomspacer.setWidth(3 + "em");
        caption.setStyleName("v-calendar-day-number");
        add(caption);
View Full Code Here

    }

    public void setDayNames(String[] dayNames) {
        clear();
        for (int i = 0; i < dayNames.length; i++) {
            Label l = new Label(dayNames[i]);
            l.setStylePrimaryName("v-calendar-header-day");
            add(l);
        }
        updateCellWidth();
    }
View Full Code Here

        List<ServerConnector> children = connector.getChildren();

        Widget widget;
        if (children == null || children.isEmpty()) {
            // Leaf node, just add a label
            Label label = new Label(connectorString);
            label.addClickHandler(new ClickHandler() {
                @Override
                public void onClick(ClickEvent event) {
                    Highlight.showOnly(connector);
                    showServerDebugInfo(connector);
                }
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.Label

Copyright © 2018 www.massapicom. 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.