Examples of addStyleName()


Examples of org.jboss.ballroom.client.widgets.window.DefaultWindow.addStyleName()

        final ModelNodeForm form = assets.getForm();
        form.setEnabled(true);

        if(form.hasWritableAttributes()) {
            final DefaultWindow window = new DefaultWindow("Create Resource '" + type + "'");
            window.addStyleName("browser-view");

            DialogueOptions options = new DialogueOptions(new ClickHandler() {
                @Override
                public void onClick(ClickEvent event) {
                    // save
View Full Code Here

Examples of org.mcarthur.sandy.gwt.table.client.TableCell.addStyleName()

            a.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
            a.setRowSpan(2);
            tr.add(a);

            final TableCell nameCell = tr.newTableDataCell();
            nameCell.addStyleName("name");
            final TextBox tb = new TextBox();
            tb.addChangeListener(new ChangeListener() {
                public void onChange(final Widget sender) {
                    final TextBox tb = (TextBox)sender;
                    person.setName(tb.getText());
View Full Code Here

Examples of org.mcarthur.sandy.gwt.table.client.TableCol.addStyleName()

        public List/*<TableColSpec>*/ getColSpec() {
            final List cols = new ArrayList();

            final TableColSpec cb = new TableCol();
            cb.addStyleName("cc");
            //DOM.setStyleAttribute(cb.getElement(), "width", "20px");
            //setAttribute(cb.getElement(), "style", "width: 20px;");

            final TableColSpec star = new TableCol();
            setAttribute(star.getElement(), "style", "width: 20px;");
View Full Code Here

Examples of org.mcarthur.sandy.gwt.table.client.TableColSpec.addStyleName()

        public List/*<TableColSpec>*/ getColSpec() {
            final List cols = new ArrayList();

            final TableColSpec cb = new TableCol();
            cb.addStyleName("cc");
            //DOM.setStyleAttribute(cb.getElement(), "width", "20px");
            //setAttribute(cb.getElement(), "style", "width: 20px;");

            final TableColSpec star = new TableCol();
            setAttribute(star.getElement(), "style", "width: 20px;");
View Full Code Here

Examples of org.mcarthur.sandy.gwt.table.client.TableDataCell.addStyleName()

            cb.setWidth("31px");
            cb.add(new CheckBox());

            final TableDataCell star = tr.newTableDataCell();
            star.setWidth("20px");
            star.addStyleName("sc");
            star.addStyleName("t");

            final TableDataCell from = tr.newTableDataCell();
            from.setWidth("27ex");
            from.add(new Label(message.getFrom()));
View Full Code Here

Examples of org.mcarthur.sandy.gwt.table.client.TableRow.addStyleName()

    private static class Renderer1 implements ObjectListTable.Renderer, ObjectListTable.ColSpecRenderer {

        public void render(final Object obj, final TableBodyGroup bodyGroup) {
            final Message message = (Message)obj;
            final TableRow tr = bodyGroup.newTableRow();
            tr.addStyleName("rr");

            final TableDataCell cb = tr.newTableDataCell();
            cb.setHorizontalAlignment(HasAlignment.ALIGN_RIGHT);
            cb.setWidth("31px");
            cb.add(new CheckBox());
View Full Code Here

Examples of org.onebusaway.webapp.gwt.common.widgets.DivPanel.addStyleName()

    clear();

    if (_minimized) {

      DivPanel panel = new DivPanel();
      panel.addStyleName(_css.ResultsTableWidgetMinimized());
      _tablePanel.add(panel);

      Anchor showAllEntries = new Anchor("Show all results...");
      showAllEntries.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent arg0) {
View Full Code Here

Examples of org.onebusaway.webapp.gwt.common.widgets.DivWidget.addStyleName()

    elements.addStyleName(_css.ResultsTableWidgetNavigationWidget());
    String itemCountStyle = "ItemCount";
    DivWidget itemCount = new DivWidget("<span class=\"" + itemCountStyle + "\">" + fromIndex
        + "</span> to <span class=\"" + itemCountStyle + "\">" + toIndex + "</span> of <span class=\"" + itemCountStyle
        + "\">" + totalSize + "</span>");
    itemCount.addStyleName(_css.ItemCountPanel());
    elements.setWidget(0, 0, itemCount);

    FlowPanel pagesPanel = new FlowPanel();
    pagesPanel.addStyleName(_css.PagesPanel());
    pagesPanel.add(new SpanWidget("Go to page "));
View Full Code Here

Examples of org.onebusaway.webapp.gwt.common.widgets.SpanPanel.addStyleName()

        if (stop != null) {
          String routeName = leg.getRouteShortName();

          TripPlannerResources resources = TripPlannerResources.INSTANCE;
          SpanPanel w = new SpanPanel();
          w.addStyleName(_css.routeTinyInfoWindow());
          Image image = new Image(resources.getBus14x14().getUrl());
          image.addStyleName(_css.routeModeIcon());
          w.add(image);
          SpanWidget name = new SpanWidget(routeName);
          name.setStyleName(_css.routeName());
View Full Code Here

Examples of org.onebusaway.webapp.gwt.common.widgets.SpanWidget.addStyleName()

    addressPanel2.addStyleName(_css.SearchWidgetExamplePanel());
    addressPanel.add(addressPanel2);

    SpanWidget addressExampleLabel1 = new SpanWidget(
        "(ex. \"3rd and pike\" or ");
    addressExampleLabel1.addStyleName(_css.SearchWidgetExampleLabel());
    addressPanel2.add(addressExampleLabel1);

    Anchor addressExampleLabel2 = new Anchor("use the map");
    addressExampleLabel2.addStyleName(_css.SearchWidgetExampleLabel());
    addressExampleLabel2.addClickHandler(new UseTheMapHandler());
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.