com.google.gwt.user.client.ui.FlowPanel Java Examples

The following examples show how to use com.google.gwt.user.client.ui.FlowPanel. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: UTCTimeBoxImplHtml4.java    From gwt-traction with Apache License 2.0 6 votes vote down vote up
public TimeBoxMenu() {
    super(true);
    setStyleName("gwt-TimeBox-menu");
    addAutoHidePartner(textbox.getElement());

    FlowPanel container = new FlowPanel();

    int numOptions = (int) (DAY / INTERVAL);
    options = new TimeBoxMenuOption[numOptions];

    // we need to use times for formatting, but we don't keep
    // them around. the purpose is only to generate text to
    // insert into the textbox.
    for (int i = 0; i < numOptions; i++) {
        options[i] = new TimeBoxMenuOption(i * INTERVAL);
        container.add(options[i]);
    }

    add(container);
}
 
Example #2
Source File: UnmanagedStep.java    From core with GNU Lesser General Public License v2.1 6 votes vote down vote up
@Override
protected Widget asWidget(final Context context) {
    FlowPanel panel = new FlowPanel();
    panel.add(new StaticHelpPanel(StaticHelp.unmanaged()).asWidget());

    form = new Form<>(UnmanagedBean.class);
    TextBoxItem name = new TextBoxItem("name", "Name");
    TextBoxItem runtimeName = new TextBoxItem("runtimeName", "Runtime Name") {
        @Override
        public void setFiltered(boolean filtered) {
            // ignore
        }
    };
    TextAreaItem path = new TextAreaItem("path", "Path");
    TextBoxItem relativeTo = new TextBoxItem("relativeTo", "Relative To", false);
    CheckBoxItem archive = new CheckBoxItem("archive", "Is Archive?");
    archive.setValue(true);
    enabled = new CheckBoxItem("enabled", "Enable");
    form.setFields(path, relativeTo, archive, name, runtimeName, enabled);
    panel.add(form.asWidget());

    return panel;
}
 
Example #3
Source File: GalleryList.java    From appinventor-extensions with Apache License 2.0 6 votes vote down vote up
/**
 * Creates the GUI components for search tab.
 *
 * @param searchApp: the FlowPanel that search tab will reside.
 */
private void addGallerySearchTab(FlowPanel searchApp) {
  // Add search GUI
  FlowPanel searchPanel = new FlowPanel();
  final TextBox searchText = new TextBox();
  searchText.addStyleName("gallery-search-textarea");
  Button sb = new Button(MESSAGES.gallerySearchForAppsButton());
  searchPanel.add(searchText);
  searchPanel.add(sb);
  searchPanel.addStyleName("gallery-search-panel");
  searchApp.add(searchPanel);
  appSearchContent.addStyleName("gallery-search-results");
  searchApp.add(appSearchContent);
  searchApp.addStyleName("gallery-search");

  sb.addClickHandler(new ClickHandler() {
    //  @Override
    public void onClick(ClickEvent event) {
      gallery.FindApps(searchText.getText(), 0, NUMAPPSTOSHOW, 0, true);
    }
  });
}
 
Example #4
Source File: UploadStep.java    From core with GNU Lesser General Public License v2.1 6 votes vote down vote up
@Override
protected Widget asWidget(final Context context) {
    final FlowPanel panel = new FlowPanel();

    HTML description = new HTML(Console.CONSTANTS.common_label_chooseFile());
    description.getElement().setAttribute("style", "padding-bottom:15px;");
    panel.add(description);

    form = new FormPanel();

    // create a panel to hold all of the form widgets.
    VerticalPanel formPanel = new VerticalPanel();
    form.setWidget(formPanel);

    // create a FileUpload widgets.
    fileUpload = new FileUpload();
    fileUpload.setName("uploadFormElement");
    IdHelper.setId(fileUpload, id(), "file");
    formPanel.add(fileUpload);

    panel.add(form);
    return panel;
}
 
Example #5
Source File: VerifyUploadStep.java    From core with GNU Lesser General Public License v2.1 6 votes vote down vote up
@Override
protected Widget asWidget(final Context context) {
    FlowPanel panel = new FlowPanel();
    panel.add(new StaticHelpPanel(StaticHelp.replace()).asWidget());

    form = new Form<>(UploadBean.class);
    TextBoxItem nameField = new TextBoxItem("name", Console.CONSTANTS.common_label_name());
    TextBoxItem runtimeNameField = new TextBoxItem("runtimeName", Console.CONSTANTS.common_label_runtimeName());
    enable = new CheckBoxItem("enableAfterDeployment", Console.CONSTANTS.common_label_enable());
    if (wizard instanceof CanEnableDeployment) {
        form.setFields(nameField, runtimeNameField, enable);
    } else {
        form.setFields(nameField, runtimeNameField);
    }
    panel.add(form.asWidget());

    return panel;
}
 
Example #6
Source File: Wizard.java    From core with GNU Lesser General Public License v2.1 6 votes vote down vote up
public Footer() {
    cancel = new DefaultButton(CONSTANTS.common_label_cancel());
    cancel.addClickHandler(clickEvent -> onCancel());
    cancel.addStyleName("wizard-cancel");
    IdHelper.setId(cancel, id(), "cancel");

    back = new DefaultButton(CONSTANTS.wizard_back());
    back.addClickHandler(clickEvent -> onBack());
    IdHelper.setId(back, id(), "back");

    next = new DefaultButton(CONSTANTS.common_label_next());
    next.addClickHandler(clickEvent -> onNext());
    next.addStyleName("primary");
    IdHelper.setId(next, id(), "next");

    panel = new FlowPanel();
    panel.addStyleName("wizard-footer");
    panel.add(cancel);
    panel.add(back);
    panel.add(next);
}
 
Example #7
Source File: GalleryAppBox.java    From appinventor-extensions with Apache License 2.0 6 votes vote down vote up
/**
 * Creates new Gallery app box.
 */
private GalleryAppBox() {
  gContainer = new FlowPanel();
  final HorizontalPanel container = new HorizontalPanel();
  container.setWidth("100%");
  container.setSpacing(0);
  container.setHorizontalAlignment(HorizontalPanel.ALIGN_CENTER);
  HorizontalPanel panel = new HorizontalPanel();
  Image image = new Image();
  image.setResource(Ode.getImageBundle().waitingIcon());
  panel.add(image);
  Label label = new Label();
  label.setText(Ode.getMessages().defaultRpcMessage());
  panel.add(label);
  gContainer.add(panel);
  this.add(gContainer);
}
 
Example #8
Source File: FileAttributeStep.java    From core with GNU Lesser General Public License v2.1 6 votes vote down vote up
@Override
protected Widget asWidget(final HandlerContext context) {
    ComplexAttributeForm fileAttributeForm = new ComplexAttributeForm(
            "file",
            wizard.getSecurityContext(),
            wizard.getResourceDescription()
    );
    formAssets = fileAttributeForm.build();

    FlowPanel layout = new FlowPanel();

    ContentDescription text = new ContentDescription(
            Console.CONSTANTS.logFileDescription());
    layout.add(text);
    layout.add(formAssets.asWidget());
    formAssets.getForm().setEnabled(true);

    return layout;
}
 
Example #9
Source File: SimpleNonVisibleComponentsPanel.java    From appinventor-extensions with Apache License 2.0 6 votes vote down vote up
/**
 * Creates new component design panel for non-visible components.
 */
public SimpleNonVisibleComponentsPanel() {
  // Initialize UI
  VerticalPanel panel = new VerticalPanel();
  panel.setHorizontalAlignment(VerticalPanel.ALIGN_CENTER);

  heading = new Label("");
  heading.setStyleName("ya-NonVisibleComponentsHeader");
  panel.add(heading);

  componentsPanel = new FlowPanel();
  componentsPanel.setStyleName("ode-SimpleUiDesignerNonVisibleComponents");
  panel.add(componentsPanel);

  initWidget(panel);
}
 
Example #10
Source File: CubaPopupButtonWidget.java    From cuba with Apache License 2.0 6 votes vote down vote up
protected void resetSelectedItem() {
    for (Widget popupChild : getPopup()) {
        if (popupChild instanceof FlowPanel) {
            FlowPanel content = (FlowPanel) popupChild;
            for (Widget contentChild : content) {
                VButton button = null;
                if (contentChild instanceof CubaFileUploadWidget) {
                    button = ((CubaFileUploadWidget) contentChild).getSubmitButton();
                } else if (contentChild instanceof VButton) {
                    button = (VButton) contentChild;
                } else if (contentChild instanceof VUpload) {
                    button = ((VUpload) contentChild).submitButton;
                }

                if (button != null && button.getStyleName().contains(SELECTED_ITEM_STYLE)) {
                    button.removeStyleName(SELECTED_ITEM_STYLE);
                }
            }
        }
    }
}
 
Example #11
Source File: GwtMockitoWidgetBaseClassesTest.java    From gwtmockito with Apache License 2.0 6 votes vote down vote up
@Test
public void testPanels() throws Exception {
  invokeAllAccessibleMethods(new AbsolutePanel() {});
  invokeAllAccessibleMethods(new CellPanel() {});
  invokeAllAccessibleMethods(new ComplexPanel() {});
  invokeAllAccessibleMethods(new DeckLayoutPanel() {});
  invokeAllAccessibleMethods(new DeckPanel() {});
  invokeAllAccessibleMethods(new DecoratorPanel() {});
  invokeAllAccessibleMethods(new DockLayoutPanel(Unit.PX) {});
  invokeAllAccessibleMethods(new DockPanel() {});
  invokeAllAccessibleMethods(new FlowPanel() {});
  invokeAllAccessibleMethods(new FocusPanel() {});
  invokeAllAccessibleMethods(new HorizontalPanel() {});
  invokeAllAccessibleMethods(new HTMLPanel("") {});
  invokeAllAccessibleMethods(new LayoutPanel() {});
  invokeAllAccessibleMethods(new PopupPanel() {});
  invokeAllAccessibleMethods(new RenderablePanel("") {});
  invokeAllAccessibleMethods(new ResizeLayoutPanel() {});
  invokeAllAccessibleMethods(new SimpleLayoutPanel() {});
  invokeAllAccessibleMethods(new SimplePanel() {});
  invokeAllAccessibleMethods(new SplitLayoutPanel() {});
  invokeAllAccessibleMethods(new StackPanel() {});
  invokeAllAccessibleMethods(new VerticalPanel() {});
}
 
Example #12
Source File: SummaryStep.java    From core with GNU Lesser General Public License v2.1 6 votes vote down vote up
@Override
protected Widget asWidget(final Context<T> context) {
    FlowPanel body = new FlowPanel();
    form = context.xa ? new Form<>(XADataSource.class) : new Form<>(DataSource.class);
    TextBoxItem nameItem = new TextBoxItem("name", "Name");
    TextBoxItem jndiItem = new TextBoxItem("jndiName", "JNDI Name");
    TextBoxItem connectionUrl = new TextBoxItem("connectionUrl", "Connection URL");
    xaProperties = new PropertyListItem("_do_not_populate_", "Properties");
    TextBoxItem user = new TextBoxItem("username", "Username");
    PasswordBoxItem pass = new PasswordBoxItem("password", "Password");
    if (context.xa) {
        form.setFields(nameItem, jndiItem, xaProperties, user, pass);
    } else {
        form.setFields(nameItem, jndiItem, connectionUrl, user, pass);
    }
    form.setEnabled(false);

    body.add(new ContentDescription(MESSAGES.datasourceSummaryDescription()));
    body.add(form);
    return body;
}
 
Example #13
Source File: UniTimeDialogBox.java    From unitime with Apache License 2.0 6 votes vote down vote up
public UniTimeDialogBox(boolean autoHide, boolean modal) {
      super(autoHide, modal);
      
setAnimationEnabled(true);
setGlassEnabled(true);
	
      iContainer = new FlowPanel();
      iContainer.addStyleName("dialogContainer");
      
      iClose = new Anchor();
  	iClose.setTitle(MESSAGES.hintCloseDialog());
      iClose.setStyleName("close");
      iClose.addClickHandler(new ClickHandler() {
      	@Override
          public void onClick(ClickEvent event) {
              onCloseClick(event);
          }
      });
      iClose.setVisible(autoHide);

      iControls = new FlowPanel();
      iControls.setStyleName("dialogControls");        
      iControls.add(iClose);
  }
 
Example #14
Source File: GwtLoadingPanelImplConnector.java    From consulo with Apache License 2.0 6 votes vote down vote up
public static Widget createPanel() {
  // http://tobiasahlin.com/spinkit/
  // MIT
  FlowPanel flowPanel = new FlowPanel();
  flowPanel.addStyleName("sk-cube-grid");

  for (int i = 1; i <= 9; i++) {
    FlowPanel child = new FlowPanel();
    child.addStyleName("sk-cube sk-cube" + i);
    flowPanel.add(child);
  }

  FlowPanel container = GwtUIUtil.fillAndReturn(new FlowPanel());
  container.getElement().getStyle().setProperty("display", "flex");
  container.getElement().getStyle().setProperty("justifyContent", "center");

  flowPanel.getElement().getStyle().setProperty("alignSelf", "center");
  container.add(flowPanel);
  return container;
}
 
Example #15
Source File: ConnectionStep.java    From core with GNU Lesser General Public License v2.1 6 votes vote down vote up
@Override
protected Widget asWidget(final Context<T> context) {
    form = context.xa ? new Form<>(XADataSource.class) : new Form<>(DataSource.class);
    TextAreaItem connectionUrl = new TextAreaItem("connectionUrl", "Connection URL");
    NonRequiredTextBoxItem user = new NonRequiredTextBoxItem("username", "Username");
    PasswordBoxItem pass = new PasswordBoxItem("password", "Password") {{
        setRequired(false);
    }};
    NonRequiredTextBoxItem domain = new NonRequiredTextBoxItem("securityDomain", "Security Domain");

    if (context.xa) {
        form.setFields(user, pass, domain);
    } else {
        form.setFields(connectionUrl, user, pass, domain);
    }

    FlowPanel body = new FlowPanel();
    body.add(new FormHelpPanel(context.dataSourceHelp, form).asWidget());
    body.add(form.asWidget());
    return body;
}
 
Example #16
Source File: TractionDialogBox.java    From gwt-traction with Apache License 2.0 6 votes vote down vote up
public TractionDialogBox(boolean autoHide, boolean modal, boolean showCloseIcon) {
super(autoHide, modal, new TractionCaption());

container = new SimplePanel();
container.addStyleName("dialogContainer");

close = new Anchor();
close.setStyleName("x");
close.addClickHandler(new ClickHandler() {
           @Override
           public void onClick(ClickEvent event) {
               onCloseClick(event);
           }
});
setCloseIconVisible(showCloseIcon);

controls = new FlowPanel();
controls.setStyleName("dialogControls");
controls.add(close);

// add the controls to the end of the caption
TractionCaption caption = (TractionCaption) getCaption();
caption.add(controls);
   }
 
Example #17
Source File: TableEditorTH.java    From putnami-web-toolkit with GNU Lesser General Public License v3.0 6 votes vote down vote up
@Override
public void redraw() {
	super.redraw();
	this.clear();
	if (!this.aspects.isEmpty()) {
		FlowPanel flowPanel = new FlowPanel();
		int countAspectWidget = 0;
		for (AbstractTableColumnAspect<T> aspect : this.aspects) {
			Widget aspectWidget = aspect.asWidget();
			if (aspectWidget != null) {
				flowPanel.add(aspectWidget);
				countAspectWidget++;
			}
		}
		if (countAspectWidget > 0) {
			StyleUtils.addStyle(flowPanel, TableEditorTH.STYLE_FLOAT_RIGHT);
			this.append(flowPanel);
		}
	}
	if (this.text != null) {
		Label label = new Label();
		label.setText(this.text);
		this.append(label);
	}
}
 
Example #18
Source File: HexViewer.java    From bitcoin-transaction-explorer with MIT License 6 votes vote down vote up
@Override
public void removeField(final int index) {
  final ContextField<Entry<T, byte[]>> contextField = fields.get(index);

  final FlowPanel byteSetContainer = (FlowPanel) contextField.getParent();

  contextField.removeFromParent();

  if(byteSetContainer.getWidgetCount() == 0) {
    byteSetContainer.removeFromParent();
  } else {
    this.byteSetContainer = byteSetContainer;
  }

  fields.remove(index);
}
 
Example #19
Source File: PropertiesStep.java    From core with GNU Lesser General Public License v2.1 5 votes vote down vote up
@Override
protected Widget asWidget(Context<T> context) {
    propertyEditor = new PropertyEditor(this, true, true);

    errorMessages = new HTML(Console.CONSTANTS.subsys_jca_err_prop_required());
    errorMessages.setStyleName("error-panel");
    errorMessages.setVisible(false);

    FlowPanel body = new FlowPanel();
    body.add(errorMessages);
    body.add(propertyEditor.asWidget());
    return body;
}
 
Example #20
Source File: StreamingProgress.java    From core with GNU Lesser General Public License v2.1 5 votes vote down vote up
public StreamingProgress(final LogStore logStore, int timeout) {
    super(false, true);
    this.timeout = timeout;

    setWidth(WIDTH + "px");
    setHeight(HEIGHT + "px");
    setGlassEnabled(true);
    setId(getElement(), WINDOW, BASE_ID, "stream_in_progress");
    setStyleName("default-window");

    FlowPanel content = new FlowPanel();
    content.addStyleName("stream-log-file-pending");
    content.add(new Pending(Console.CONSTANTS.downloadInProgress()));
    cancel = new Button(Console.CONSTANTS.common_label_cancel());
    setId(cancel.getElement(), BUTTON, BASE_ID, "cancel_stream");
    cancel.addStyleName("cancel");
    cancel.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
            PendingStreamingRequest request = logStore.getPendingStreamingRequest();
            if (request != null) {
                request.cancel();
                done();
            }
        }
    });
    content.add(cancel);
    setWidget(content);
}
 
Example #21
Source File: NamesStep.java    From core with GNU Lesser General Public License v2.1 5 votes vote down vote up
@Override
protected Widget asWidget(final Context<T> context) {
    form = context.xa ? new Form<>(XADataSource.class) : new Form<>(DataSource.class);
    DataSourceNameItem<DataSource> nameItem = new DataSourceNameItem<>(existingDataSources);
    DataSourceJndiItem<DataSource> jndiItem = new DataSourceJndiItem<>(existingDataSources);
    form.setFields(nameItem, jndiItem);

    FlowPanel body = new FlowPanel();
    body.add(new FormHelpPanel(context.dataSourceHelp, form).asWidget());
    body.add(form.asWidget());
    return body;
}
 
Example #22
Source File: InputCode.java    From putnami-web-toolkit with GNU Lesser General Public License v3.0 5 votes vote down vote up
protected InputCode(InputCode source) {
	super(new FlowPanel(), source);
	this.content = (FlowPanel) this.getWidget();
	this.endConstruct();
	if (source != null) {
		this.codeDriver.applyConfiguration(source.codeDriver);
	}
}
 
Example #23
Source File: ContentAssistAspect.java    From putnami-web-toolkit with GNU Lesser General Public License v3.0 5 votes vote down vote up
SuggestionDisplayImpl() {
	this.suggestionPopup = new PopupPanel(true, false);
	this.suggestionPopup.setPreviewingAllNativeEvents(true);
	StyleUtils.addStyle(this.suggestionPopup, ContentAssistAspect.STYLE_POPUP);
	FlowPanel dropdownContainer = new FlowPanel();
	StyleUtils.addStyle(dropdownContainer, ContentAssistAspect.STYLE_DROPDOWN);
	StyleUtils.addStyle(dropdownContainer, ContentAssistAspect.STYLE_OPEN);
	dropdownContainer.add(this.suggestionsContainer);
	this.suggestionPopup.setWidget(dropdownContainer);
}
 
Example #24
Source File: GoogleTableDisplayerView.java    From dashbuilder with Apache License 2.0 5 votes vote down vote up
@Override
public void drawTable() {
    table.draw(getDataTable(), createOptions());

    FlowPanel tablePanel  = new FlowPanel();
    tablePanel.add(table);
    if (pagerEnabled) {
        HorizontalPanel pager = createTablePager();
        tablePanel.add(pager);
    }
    super.showDisplayer(tablePanel);
}
 
Example #25
Source File: GoogleTableDisplayerView.java    From dashbuilder with Apache License 2.0 5 votes vote down vote up
@Override
public void nodata() {
    table.draw(getDataTable(), createOptions());

    FlowPanel tablePanel  = new FlowPanel();
    tablePanel.add(table);
    tablePanel.add(new Label(GoogleDisplayerConstants.INSTANCE.common_noData()));
    super.showDisplayer(tablePanel);
}
 
Example #26
Source File: ChooseStep.java    From core with GNU Lesser General Public License v2.1 5 votes vote down vote up
@Override
protected Widget asWidget(final Context context) {
    FlowPanel body = new FlowPanel();

    deployNew = new RadioButton("deployment_kind", Console.CONSTANTS.uploadNewDeployment());
    deployNew.addStyleName("radio-block");
    IdHelper.setId(deployNew, id(), "deployNew");
    addDescription(deployNew, Console.CONSTANTS.uploadNewDeploymentDescription());

    deployExisting = new RadioButton("deployment_kind", Console.CONSTANTS.chooseFromContentRepository());
    deployExisting.addStyleName("radio-block");
    IdHelper.setId(deployExisting, id(), "deployExisting");
    addDescription(deployExisting,Console.CONSTANTS.chooseFromContentRepositoryDescription());

    deployUnmanaged = new RadioButton("deployment_kind", Console.CONSTANTS.createUnmanaged());
    deployUnmanaged.addStyleName("radio-block");
    IdHelper.setId(deployUnmanaged, id(), "deployUnmanaged");
    addDescription(deployUnmanaged, Console.CONSTANTS.createUnmanagedDescription());

    if (showDeployNew) {
        body.add(deployNew);
    }
    if (showDeployExisting) {
        body.add(deployExisting);
    }
    if (showDeployUnmanaged) {
        body.add(deployUnmanaged);
    }
    return body;
}
 
Example #27
Source File: GoogleCategoriesDisplayerView.java    From dashbuilder with Apache License 2.0 5 votes vote down vote up
@Override
public void nodata() {
    FlowPanel noDataPanel = new FlowPanel();
    noDataPanel.setWidth(width + "px");
    noDataPanel.setHeight(height + "px");
    noDataPanel.add(new Label(GoogleDisplayerConstants.INSTANCE.common_noData()));

    super.showDisplayer(noDataPanel);
}
 
Example #28
Source File: GpsEmulator.java    From android-gps-emulator with Apache License 2.0 5 votes vote down vote up
/**
 * Initialize the Emulator UI
 */
private void initializeUI() {
   // Create textboxes and set default hostname and port
   _hostname = new TextBox();
   _hostname.setText(DEFAULT_HOST);
   _hostname.getElement().setPropertyString("placeholder", "hostname");
   _port = new TextBox();
   _port.setText(String.valueOf(DEFAULT_PORT));
   _port.getElement().setPropertyString("placeholder", "port");

   // Create button to connect
   _button = new Button("Connect");
   // Create the info/status label, initially not visible
   _info = new InlineLabel();
   _info.setVisible(false);

   // register the button action
   _button.addClickHandler(new ClickHandler() {
      public void onClick(final ClickEvent event) {
         final String hostname = _hostname.getText();
         final int port = Integer.valueOf(_port.getText());
         new PortAsyncCallback(hostname, port).execute();
      }
   });
   
   // Create panel for textbox, button and info label
   final FlowPanel div = new FlowPanel();
   div.setStylePrimaryName("emulator-controls");
   _hostname.setStyleName("emulator-hostname");
   _port.setStyleName("emulator-port");
   _button.setStyleName("emulator-connect");
   _info.setStyleName("emulator-info");
   div.add(_hostname);
   div.add(_port);
   div.add(_button);
   div.add(_info);

   // add the controls before the map so that the div doesn't cover the map
   RootLayoutPanel.get().add(div);
}
 
Example #29
Source File: GalleryPage.java    From appinventor-extensions with Apache License 2.0 5 votes vote down vote up
/**
   * Helper method called by constructor to initialize ui components
   */
  private void initComponents() {
    // Initialize UI
    panel = new VerticalPanel();
    panel.setWidth("100%");
    galleryGUI = new FlowPanel();
    appSingle = new FlowPanel();
    appDetails = new FlowPanel();
    appHeader = new FlowPanel();
    appInfo = new FlowPanel();
    appAction = new FlowPanel();
    appAuthor = new FlowPanel();
    appMeta = new FlowPanel();
    appDates = new FlowPanel();
    appPrimaryWrapper = new FlowPanel();
    appSecondaryWrapper = new FlowPanel();
    appDescPanel = new FlowPanel();
    appReportPanel = new FlowPanel();
    appSharePanel = new FlowPanel();
    appActionTabs = new TabPanel();
    sidebarTabs = new TabPanel();
    appComments = new FlowPanel();
    appCommentsList = new FlowPanel();
    appsByAuthor = new FlowPanel();
    appsByTags = new FlowPanel();
    appsRemixes = new FlowPanel();
    returnToGallery = new FlowPanel();
//    tagSelected = "";

    appCreated = new Label();
    appChanged = new Label();
    descBox = new FlowPanel();
    titleBox = new FlowPanel();
    desc = new TextArea();
    titleText = new TextArea();
    moreInfoText = new TextArea();
    creditText = new TextArea();
    ccLicenseRef = new HTML(MESSAGES.galleryCcLicenseRef());
    ccLicenseRef.addStyleName("app-action-html");
  }
 
Example #30
Source File: WidgetComboBox.java    From consulo with Apache License 2.0 5 votes vote down vote up
/**
 * This method gets a widget that is currently selected in the drop down list.
 *
 * @return <code>null</code> if the drop down list is collapsed.
 */
public Widget getSelectedWidget() {
  if (isListPanelOpened() && getModel().getSelectedIndex() >= 0) {
    FlowPanel list = getListPanel().getList();
    if (list.getWidgetCount() > getModel().getSelectedIndex()) return list.getWidget(getModel().getSelectedIndex());
    return null;
  }
  else {
    return null;
  }
}