Examples of DivPanel


Examples of org.onebusaway.webapp.gwt.common.widgets.DivPanel

    RouteBean route = trip.getRoute();
    String routeName = RoutePresenter.getNameForRoute(route);
   
    _arrivalsAndDeparturesTable.setText(rowIndex, 0, routeName);

    DivPanel divPanel = new DivPanel();

    DivPanel destinationPanel = new DivPanel("arrivalsDestinationEntry");
    divPanel.add(destinationPanel);
    String href = "trip.action?id=" + trip.getId() + "&stop="
        + bean.getStop().getId();
    destinationPanel.add(new Anchor(trip.getTripHeadsign(), href));

    DivPanel timeAndStatusPanel = new DivPanel("arrivalsTimePanel");
    divPanel.add(timeAndStatusPanel);
    String time = _timeFormat.format(new Date(bean.computeBestDepartureTime()));
    timeAndStatusPanel.add(new SpanWidget(time, "arrivalsTimeEntry"));
    timeAndStatusPanel.add(new SpanWidget(" - "));
    String arrivalStatusLabelStyle = _methods.getStatusLabelStyle(bean);
    timeAndStatusPanel.add(new SpanWidget(_methods.getStatusLabel(bean),
        arrivalStatusLabelStyle));
    _arrivalsAndDeparturesTable.setWidget(rowIndex, 1, divPanel);

    _arrivalsAndDeparturesTable.getCellFormatter().setStyleName(rowIndex, 2,
        "arrivalsStatusEntry");
View Full Code Here

Examples of org.projectforge.web.wicket.flowlayout.DivPanel

    contactEditSupport.addName();
    contactEditSupport.addFirstName();
    final FieldsetPanel fs = (FieldsetPanel)contactEditSupport.addFormOfAddress();
    //    final DivPanel checkBoxPanel = fs.addNewCheckBoxDiv();
    //    checkBoxPanel.addCheckBox(new PropertyModel<Boolean>(contactEditSupport.personalContact, "favoriteCard"), getString("favorite"),
    final DivPanel checkBoxPanel = fs.addNewCheckBoxButtonDiv();
    checkBoxPanel.addCheckBoxButton(new PropertyModel<Boolean>(contactEditSupport.personalContact, "favoriteCard"), getString("favorite"),
        getString("address.tooltip.vCardList"));
    contactEditSupport.addTitle();
    contactEditSupport.addOrganization();
    contactEditSupport.addDivision();
    contactEditSupport.addPosition();
View Full Code Here

Examples of org.projectforge.web.wicket.flowlayout.DivPanel

            return getString("calendar.weekOfYearShortLabel");
          }
        }

      }, SingleButtonPanel.NORMAL).setTooltip(getString("recalculate")));
      final DivPanel checkBoxDiv = new DivPanel(fs.newChildId(), DivType.BTN_GROUP) {
        /**
         * @see org.apache.wicket.Component#isVisible()
         */
        @Override
        public boolean isVisible()
        {
          return data.hasDeletedEntries();
        }
      };
      fs.add(checkBoxDiv);
      checkBoxDiv.add(new CheckBoxButton(checkBoxDiv.newChildId(), new PropertyModel<Boolean>(this, "showDeletedOnly"),
          getString("onlyDeleted")) {
        /**
         * @see org.projectforge.web.wicket.flowlayout.CheckBoxButton#onSelectionChanged(java.lang.Boolean)
         */
        @Override
        protected void onSelectionChanged(final Boolean newSelection)
        {
          super.onSelectionChanged(newSelection);
          refresh();
        }

        @Override
        protected boolean wantOnSelectionChangedNotifications()
        {
          return true;
        }
      });
      if (isNew() == true) {
        fs.add(new SingleButtonPanel(fs.newChildId(), new Button(SingleButtonPanel.WICKET_ID, new Model<String>("predecessor")) {
          @Override
          public final void onSubmit()
          {
            if (getPredecessor() != null && predecessor.getEntries() != null) {
              final Iterator<HRPlanningEntryDO> it = getData().getEntries().iterator();
              while (it.hasNext() == true) {
                if (it.next().isEmpty() == true) {
                  it.remove();
                }
              }
              for (final HRPlanningEntryDO entry : predecessor.getEntries()) {
                getData().addEntry(entry.newClone());
              }
            }
            predecessor = null;
            refresh();
          }
        }.setDefaultFormProcessing(false), getString("hr.planning.entry.copyFromPredecessor")) {
          /**
           * @see org.apache.wicket.Component#isVisible()
           */
          @Override
          public boolean isVisible()
          {
            return getPredecessor() != null;
          }
        });
      }
    }
    gridBuilder.newGridPanel();
    entriesRepeater = gridBuilder.newRepeatingView();
    refresh();
    if (getBaseDao().hasInsertAccess(getUser()) == true && showDeletedOnly == false) {
      final DivPanel panel = gridBuilder.newGridPanel().getPanel();
      final Button addPositionButton = new Button(SingleButtonPanel.WICKET_ID) {
        @Override
        public final void onSubmit()
        {
          getData().addEntry(new HRPlanningEntryDO());
          refresh();
        }
      };
      final SingleButtonPanel addPositionButtonPanel = new SingleButtonPanel(panel.newChildId(), addPositionButton, getString("add"));
      addPositionButtonPanel.setTooltip(getString("hr.planning.tooltip.addEntry"));
      panel.add(addPositionButtonPanel);
    }
    WicketUtils.addShowDeleteRowQuestionDialog(this, hrPlanningEntryDao);
  }
View Full Code Here

Examples of org.projectforge.web.wicket.flowlayout.DivPanel

      final BigDecimal totalHours = entry.getTotalHours();
      if (NumberHelper.isNotZero(totalHours) == true) {
        heading += ": " + NumberHelper.formatFraction2(totalHours);
      }
      positionsPanel.setHeading(new HtmlCodePanel(ToggleContainerPanel.HEADING_TEXT_ID, heading));
      final DivPanel content = new DivPanel(ToggleContainerPanel.CONTENT_ID);
      positionsPanel.add(content);
      final GridBuilder posGridBuilder = new GridBuilder(content, content.newChildId());
      {
        // DropDownChoice status / project
        final FieldsetPanel fs = posGridBuilder.newFieldset(WicketUtils.createMultipleFieldsetLabel(getString("status"),
            getString("fibu.projekt")));
        final LabelValueChoiceRenderer<HRPlanningEntryStatus> statusChoiceRenderer = new LabelValueChoiceRenderer<HRPlanningEntryStatus>(
View Full Code Here

Examples of org.projectforge.web.wicket.flowlayout.DivPanel

    }
    {
      final FieldsetPanel fs = new FieldsetPanel("stayLoggedIn", "").suppressLabelForWarning();
      add(fs);
      final CheckBoxPanel stayLoggedInCheckBox = fs.addCheckBox(new PropertyModel<Boolean>(this, "stayLoggedIn"), null);
      final DivPanel divPanel = new DivPanel(fs.newChildId());
      fs.add(divPanel);
      final LabelPanel labelPanel = new LabelPanel(divPanel.newChildId(), getString("login.stayLoggedIn"));
      labelPanel.setLabelFor(stayLoggedInCheckBox.getCheckBox().getMarkupId());
      divPanel.add(labelPanel);
      WicketUtils.addTooltip(labelPanel.getLabel(), getString("login.stayLoggedIn"), getString("login.stayLoggedIn.tooltip"));
      stayLoggedInCheckBox.setTooltip(getString("login.stayLoggedIn"), getString("login.stayLoggedIn.tooltip"));
    }
    final Button loginButton = new Button(SingleButtonPanel.WICKET_ID, new Model<String>("login")) {
      @Override
View Full Code Here

Examples of org.projectforge.web.wicket.flowlayout.DivPanel

        public String getObject()
        {
          return AbstractListForm.getModifiedSearchExpressionLabel(SearchForm.this, filter.getSearchString());
        }
      };
      final DivPanel div = new DivPanel(fs.newChildId());
      div.add(AttributeModifier.append("class", "modifiedSearchExpressionLabel"));
      fs.add(div);
      modifiedSearchExpressionLabel = new Label(div.newChildId(), modifiedSearchExpressionModel) {
        @Override
        public boolean isVisible()
        {
          return StringUtils.isNotBlank(filter.getSearchString()) == true;
        }
      };
      modifiedSearchExpressionLabel.setEscapeModelStrings(false);
      div.add(modifiedSearchExpressionLabel);
    }
    {
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("label.options")).suppressLabelForWarning();
      final DivPanel checkBoxButton = fs.addNewCheckBoxButtonDiv();
      checkBoxButton.add(new CheckBoxButton(checkBoxButton.newChildId(), new PropertyModel<Boolean>(filter, "searchHistory"),
          getString("search.searchHistory")).setTooltip(getString("search.searchHistory.additional.tooltip")));
    }
    gridBuilder.newSplitPanel(GridSize.COL50);
    {
      final FieldsetPanel fs = gridBuilder.newFieldset(getString("search.area"));
View Full Code Here

Examples of org.projectforge.web.wicket.flowlayout.DivPanel

  @SuppressWarnings("serial")
  @Override
  protected void addBottomPanel(final String id)
  {
    final DivPanel panel = new DivPanel(id);// DivType.GRID12, DivType.BOX, DivType.ROUND_ALL);
    form.add(panel);
    resourceLinkPanel = new HRListResourceLinkPanel(panel.newChildId(), this, hrDao, userFormatter) {
      @Override
      public boolean isVisible()
      {
        return form.getSearchFilter().isOnlyMyProjects() == false;
      };
    };
    panel.add(resourceLinkPanel);
    recreateBottomPanel();
  }
View Full Code Here

Examples of org.projectforge.web.wicket.flowlayout.DivPanel

  {
    super.init();
    final HRFilter filter = getSearchFilter();
    gridBuilder.newGridPanel();
    final FieldsetPanel fs = gridBuilder.newFieldset(super.getOptionsLabel()).suppressLabelForWarning();
    final DivPanel optionsCheckBoxesPanel = fs.addNewCheckBoxButtonDiv();
    optionsCheckBoxesPanel.add(createAutoRefreshCheckBoxButton(optionsCheckBoxesPanel.newChildId(), new PropertyModel<Boolean>(filter, "showPlanning"),
        getString("hr.planning.filter.showPlanning")));
    optionsCheckBoxesPanel.add(createAutoRefreshCheckBoxButton(optionsCheckBoxesPanel.newChildId(), new PropertyModel<Boolean>(filter, "showBookedTimesheets"),
        getString("hr.planning.filter.showBookedTimesheets")));
    optionsCheckBoxesPanel.add(createAutoRefreshCheckBoxButton(optionsCheckBoxesPanel.newChildId(), new PropertyModel<Boolean>(filter, "onlyMyProjects"),
        getString("hr.planning.filter.onlyMyProjects")));
    optionsCheckBoxesPanel.add(createAutoRefreshCheckBoxButton(optionsCheckBoxesPanel.newChildId(), new PropertyModel<Boolean>(filter, "allProjectsGroupedByCustomer"),
        getString("hr.planning.filter.allProjectsGroupedByCustomer")));
    optionsCheckBoxesPanel.add(createAutoRefreshCheckBoxButton(optionsCheckBoxesPanel.newChildId(), new PropertyModel<Boolean>(filter, "otherProjectsGroupedByCustomer"),
        getString("hr.planning.filter.otherProjectsGroupedByCustomer")));
    pageSizeFieldsetPanel.setVisible(false);
    setPageSize(Integer.MAX_VALUE);
  }
View Full Code Here

Examples of org.projectforge.web.wicket.flowlayout.DivPanel

    columns.add(new CellItemListenerPropertyColumn<TimesheetDO>(getString("timesheet.location"), null, "location", cellItemListener) {

    });
    columns.add(new CellItemListenerPropertyColumn<TimesheetDO>(getString("timesheet.description"), null, "shortDescription",
        cellItemListener));
    final DivPanel panel = gridBuilder.getPanel();
    final TablePanel table = new TablePanel(panel.newChildId());
    panel.add(table);
    final IDataProvider<TimesheetDO> dataProvider = new ListDataProvider<TimesheetDO>(parentPage.getRecentTimesheets());
    final DataTable<TimesheetDO, String> dataTable = new DataTable<TimesheetDO, String>(TablePanel.TABLE_ID, columns, dataProvider, 100) {
      @Override
      protected Item<TimesheetDO> newRowItem(final String id, final int index, final IModel<TimesheetDO> model)
      {
View Full Code Here

Examples of org.projectforge.web.wicket.flowlayout.DivPanel

    /* GRID8 - BLOCK */
    gridBuilder.newSplitPanel(GridSize.COL50, true).newSubSplitPanel(GridSize.COL50);
    addressEditSupport.addName();
    addressEditSupport.addFirstName();
    final FieldsetPanel fs = (FieldsetPanel)addressEditSupport.addFormOfAddress();
    final DivPanel checkBoxPanel = fs.addNewCheckBoxButtonDiv();
    checkBoxPanel.addCheckBoxButton(new PropertyModel<Boolean>(addressEditSupport.personalAddress, "favoriteCard"), getString("favorite"),
        getString("address.tooltip.vCardList"));
    addressEditSupport.addTitle();
    addressEditSupport.addWebsite();

    // /////////////////
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.