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

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


   * @author Pieter De Graef
   */
  private class MyLayerVisibilityHandler implements LayerVisibilityHandler {

    public void onShow(LayerShowEvent event) {
      layerEventLayout.add(new Label("onShow: " + event.getLayer().getTitle()));
    }
View Full Code Here


    public void onShow(LayerShowEvent event) {
      layerEventLayout.add(new Label("onShow: " + event.getLayer().getTitle()));
    }

    public void onHide(LayerHideEvent event) {
      layerEventLayout.add(new Label("onHide: " + event.getLayer().getTitle()));
    }
View Full Code Here

    public void onHide(LayerHideEvent event) {
      layerEventLayout.add(new Label("onHide: " + event.getLayer().getTitle()));
    }

    public void onVisibilityMarked(LayerVisibilityMarkedEvent event) {
      layerEventLayout.add(new Label("onVisibilityMarked: " + event.getLayer().getTitle()));
    }
View Full Code Here

    // list of sld's
    final ListBox sldList = new ListBox();
    sldList.setVisibleItemCount(5);

    // label
    final Label nameLabel = new Label("<name of layer>");

    panel.add(sldList, 100, 100);
    panel.add(nameLabel, 100, 300);

    // Add it to the root panel.
    RootPanel.get().add(panel);

    final SldGwtServiceAsync service = GWT.create(SldGwtService.class);
    ServiceDefTarget endpoint = (ServiceDefTarget) service;
    endpoint.setServiceEntryPoint(GWT.getHostPageBaseURL() + "d/sld");
    service.findAll(new AsyncCallback<List<String>>() {

      public void onSuccess(List<String> result) {
        GWT.log("got " + result.size() + " SLDs");
        for (String name : result) {
          sldList.addItem(name);
        }
      }

      public void onFailure(Throwable caught) {
        GWT.log("could not access SLDs", caught);
      }
    });
    sldList.addChangeHandler(new ChangeHandler() {

      public void onChange(ChangeEvent event) {
        int index = sldList.getSelectedIndex();
        if (index >= 0) {
          String name = sldList.getItemText(index);
          service.findByName(name, new AsyncCallback<StyledLayerDescriptorInfo>() {

            public void onSuccess(StyledLayerDescriptorInfo sld) {
              if (!sld.getChoiceList().isEmpty()) {
                StyledLayerDescriptorInfo.ChoiceInfo info = sld.getChoiceList().iterator().next();
                if (info.ifNamedLayer()) {
                  NamedLayerInfo namedLayer = info.getNamedLayer();
                  nameLabel.setText(namedLayer.getName());
                }
              }
            }

            public void onFailure(Throwable caught) {
View Full Code Here

    }
   
    FlexTable flexTable = new FlexTable();
    add(flexTable);

    Label id = new Label ("Id:");
    id.setStyleName("portlet-form-field-label-right");
    flexTable.setWidget(0, 0, id);
    idBox.setText(this.publisher.getAuthorizedName());
    idBox.setStyleName("portlet-form-input-field");
    flexTable.setWidget(0, 1, idBox);
   
    Label name = new Label ("Name:");
    name.setStyleName("portlet-form-field-label-right");
    flexTable.setWidget(1, 0, name);
    nameBox.setText(this.publisher.getPublisherName());
    nameBox.setStyleName("portlet-form-input-field");
    flexTable.setWidget(1, 1,nameBox);
   
    Label email = new Label ("Email:");
    email.setStyleName("portlet-form-field-label-right");
    flexTable.setWidget(2, 0,email);
    emailAddressBox.setText(this.publisher.getEmailAddress());
    emailAddressBox.setStyleName("portlet-form-input-field");
    flexTable.setWidget(2, 1,emailAddressBox);
   
    Label isAdmin = new Label ("Is Admin:");
    isAdmin.setStyleName("portlet-form-field-label-right");
    flexTable.setWidget(3, 0,isAdmin);
    isAdminBox.setChecked("true".equalsIgnoreCase(this.publisher.getIsAdmin()));
    isAdminBox.setStyleName("portlet-form-input-field");
    flexTable.setWidget(3, 1,isAdminBox);
   
    Label isEnabled = new Label ("Is Enabled:");
    isEnabled.setStyleName("portlet-form-field-label-right");
    flexTable.setWidget(4, 0,isEnabled);
    isEnabledBox.setChecked("true".equalsIgnoreCase(this.publisher.getIsEnabled()));
    isEnabledBox.setStyleName("portlet-form-input-field");
    flexTable.setWidget(4, 1,isEnabledBox);
   
    Label maxBusinesses = new Label ("Max Businesses:");
    maxBusinesses.setStyleName("portlet-form-field-label-right");
    flexTable.setWidget(5, 0,maxBusinesses);
    maxBusinessesBox.setText(String.valueOf(this.publisher.getMaxBusinesses()));
    maxBusinessesBox.setStyleName("portlet-form-input-field");
    flexTable.setWidget(5, 1,maxBusinessesBox);
   
    Label maxServicesPerBusiness = new Label ("Max Service Per Business:");
    maxServicesPerBusiness.setStyleName("portlet-form-field-label-right");
    flexTable.setWidget(6, 0,maxServicesPerBusiness);
    maxServicesPerBusinessBox.setText(String.valueOf(this.publisher.getMaxServicePerBusiness()));
    maxServicesPerBusinessBox.setStyleName("portlet-form-input-field");
    flexTable.setWidget(6, 1,maxServicesPerBusinessBox);
   
    Label maxBindingsPerService = new Label ("Max Bindings Per Service:");
    maxBindingsPerService.setStyleName("portlet-form-field-label-right");
    flexTable.setWidget(7, 0,maxBindingsPerService);
    maxBindingsPerServiceBox.setText(String.valueOf(this.publisher.getMaxBindingsPerService()));
    maxBindingsPerServiceBox.setStyleName("portlet-form-input-field");
    flexTable.setWidget(7, 1,maxBindingsPerServiceBox);
   
    Label maxTModels = new Label ("Max TModels:");
    maxTModels.setStyleName("portlet-form-field-label-right");
    flexTable.setWidget(8, 0,maxTModels);
    maxTModelBox.setText(String.valueOf(this.publisher.getMaxTModels()));
    maxTModelBox.setStyleName("portlet-form-input-field");
    flexTable.setWidget(8, 1,maxTModelBox);
   
View Full Code Here

  public NotifyPanel(UDDISubscriptionNotification notification) {
    super();
    //this.notification = notification;
    //notifyPanel = this;
    getElement().setId("notifications-body");
    Label notifyLabel = new Label ("Subscription notifications:");
    notifyLabel.setStyleName("portlet-form-field-label");
    add(notifyLabel);
   
      textArea = new TextArea();
      textArea.setCharacterWidth(50);
      textArea.setVisibleLines(50);
View Full Code Here

{
   private AbsolutePanel panel = new AbsolutePanel();
  
   public AskQuestionWidget()
   {     
      Label lbl = new Label("OK, what do you want to know?");
      panel.add(lbl);
      final TextBox box = new TextBox();
      box.setText("What is the meaning of life?");
      panel.add(box);
      Button ok = new Button("Ask");
View Full Code Here

    super();
    this.application = application;
    getToken(null, null);
    getElement().setId("parentApp-body");
   
    Label publisher = new Label ("Publisher:");
    publisher.setStyleName("portlet-form-field-label");
    add(publisher);
    usernameBox.setStyleName("portlet-form-input-field");
    add(usernameBox);
   
    Label password = new Label ("Password:");
    password.setStyleName("portlet-form-field-label");
    add(password);
    passwordBox.setStyleName("portlet-form-input-field");
    add(passwordBox);
   
    tokenButton.addClickListener(this);
View Full Code Here

  }
 
  public void drawPanel() {
   
   
    Label clerkName = new Label ("Clerk:");
    clerkName.setStyleName("portlet-form-field-label-right");
    flexTable.setWidget(0, 0, clerkName);
    clerkNameBox.setText(String.valueOf(this.subscription.getNode().getClerkName()));
    clerkNameBox.setStyleName("portlet-form-input-field");
    flexTable.setWidget(0, 1, clerkNameBox);

    Label subscriptionKey = new Label ("Subscription Key:");
    subscriptionKey.setStyleName("portlet-form-field-label-right");
    flexTable.setWidget(1, 0, subscriptionKey);
    subscriptionKeyBox.setText(String.valueOf(this.subscription.getSubscriptionKey()));
    subscriptionKeyBox.setStyleName("portlet-form-input-field");
    flexTable.setWidget(1, 1, subscriptionKeyBox);
   
    //async
    Label isBrief = new Label ("Is Brief:");
    isBrief.setStyleName("portlet-form-field-label-right");
    isBrief.setVisible(isAsync);
    flexTable.setWidget(2, 0,isBrief);
    isBriefBox.setChecked(this.subscription.getBrief());
    isBriefBox.setStyleName("portlet-form-input-field");
    isBriefBox.setVisible(isAsync);
    flexTable.setWidget(2, 1, isBriefBox);
   
    Label expiresAfter = new Label ("Expires After:");
    expiresAfter.setStyleName("portlet-form-field-label-right");
    expiresAfter.setVisible(isAsync);
    flexTable.setWidget(3, 0, expiresAfter);
    expiresAfterBox.setText(this.subscription.getExpiresAfter());
    expiresAfterBox.setStyleName("portlet-form-input-field");
    expiresAfterBox.setVisible(isAsync);
    flexTable.setWidget(3, 1, expiresAfterBox);
   
    Label maxEntities = new Label ("Max Entities:");
    maxEntities.setStyleName("portlet-form-field-label-right");
    maxEntities.setVisible(isAsync);
    flexTable.setWidget(4, 0, maxEntities);
    maxEntitiesBox.setText(String.valueOf(this.subscription.getMaxEntities()));
    maxEntitiesBox.setStyleName("portlet-form-input-field");
    maxEntitiesBox.setVisible(isAsync);
    flexTable.setWidget(4, 1, maxEntitiesBox);
   
    Label subscriptionFilter = new Label ("Search Filter:");
    subscriptionFilter.setStyleName("portlet-form-field-label-right");
    subscriptionFilter.setVisible(isAsync);
    flexTable.setWidget(5, 0, subscriptionFilter);
    subscriptionFilterBox.setText(String.valueOf(this.subscription.getSubscriptionFilter()));
    subscriptionFilterBox.setStyleName("portlet-form-input-field");
    subscriptionFilterBox.setHeight("100px");
    subscriptionFilterBox.setVisible(isAsync);
    flexTable.setWidget(5, 1, subscriptionFilterBox);
   
    Label bindingKey = new Label ("Binding Key:");
    bindingKey.setStyleName("portlet-form-field-label-right");
    bindingKey.setVisible(isAsync);
    flexTable.setWidget(6, 0, bindingKey);
    bindingKeyBox.setText(this.subscription.getBindingKey());
    bindingKeyBox.setStyleName("portlet-form-input-field");
    bindingKeyBox.setVisible(isAsync);
    flexTable.setWidget(6, 1, bindingKeyBox);
   
    Label notificationInterval = new Label ("Notification Interval:");
    notificationInterval.setStyleName("portlet-form-field-label-right");
    notificationInterval.setVisible(isAsync);
    flexTable.setWidget(7, 0, notificationInterval);
    notificationIntervalBox.setText(String.valueOf(this.subscription.getNotificationInterval()));
    notificationIntervalBox.setStyleName("portlet-form-input-field");
    notificationIntervalBox.setVisible(isAsync);
    flexTable.setWidget(7, 1, notificationIntervalBox);
   
    subscription.setCoverageStart("2008-01-01T00:00:00");
    subscription.setCoverageEnd("2010-01-01T00:00:00");
   
    Label coverageStart = new Label ("Coverage Start Date:");
    coverageStart.setStyleName("portlet-form-field-label-right");
    coverageStart.setVisible(!isAsync);
    flexTable.setWidget(8, 0, coverageStart);
    coverageStartBox.setText(this.subscription.getCoverageStart());
    coverageStartBox.setStyleName("portlet-form-input-field");
    coverageStartBox.setVisible(!isAsync);
    flexTable.setWidget(8, 1, coverageStartBox);
   
    Label coverageEnd = new Label ("Coverage End Date:");
    coverageEnd.setStyleName("portlet-form-field-label-right");
    coverageEnd.setVisible(!isAsync);
    flexTable.setWidget(9, 0, coverageEnd);
    coverageEndBox.setText(this.subscription.getCoverageEnd());
    coverageEndBox.setStyleName("portlet-form-input-field");
    coverageEndBox.setVisible(!isAsync);
    flexTable.setWidget(9, 1, coverageEndBox);
View Full Code Here

  /**
   * This is the entry point method.
   */
  public void onModuleLoad() {
       
    Label searchQuery = new Label ("Search Query");
    searchQuery.setStyleName("portlet-form-field-label");
    searchPanel.add(searchQuery);
   
      queryTextArea.setCharacterWidth(55);
      queryTextArea.setVisibleLines(10);
      queryTextArea.setText(DEFAULT_QUERY);
      searchPanel.add(queryTextArea);

    Label spacerLabel = new Label ("Query Result");
    spacerLabel.setStyleName("portlet-form-field-label");
    searchPanel.add(spacerLabel);
     
      resultTextArea.setCharacterWidth(55);
      resultTextArea.setVisibleLines(10);
      searchPanel.add(resultTextArea);
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.