Esempio n. 1
0
  public PanelResults() {
    super();
    this.setSpacing(10);

    DecoratorPanel panel = new DecoratorPanel();
    this.add(new HTML("<h4>Resultats par etudiant</h4>"));
    panel.add(new UserEnigmeTable().onInitialize());
    this.add(panel);

    DecoratorPanel panel2 = new DecoratorPanel();
    this.add(new HTML("<h4>Resultats par enigme</h4>"));
    panel2.add(new EnigmeUserTable().onInitialize());
    this.add(panel2);
  }
Esempio n. 2
0
  public WeaponsView() {
    DecoratorPanel contentTableDecorator = new DecoratorPanel();
    initWidget(contentTableDecorator);
    contentTableDecorator.setWidth("100%");
    contentTableDecorator.setWidth("15em");

    contentTable = new FlexTable();
    contentTable.setWidth("100%");
    contentTable.getCellFormatter().addStyleName(0, 0, "contacts-ListContainer");
    contentTable.getCellFormatter().setWidth(0, 0, "100%");
    contentTable.getFlexCellFormatter().setVerticalAlignment(0, 0, DockPanel.ALIGN_TOP);

    HorizontalPanel hPanel = new HorizontalPanel();
    hPanel.setBorderWidth(0);
    hPanel.setSpacing(0);
    hPanel.setHorizontalAlignment(HorizontalPanel.ALIGN_LEFT);
    addButton = new Button("增加");
    hPanel.add(addButton);
    deleteButton = new Button("删除");
    hPanel.add(deleteButton);
    contentTable.getCellFormatter().addStyleName(0, 0, "contacts-ListMenu");
    contentTable.setWidget(0, 0, hPanel);

    contactsTable = new FlexTable();
    contactsTable.setCellSpacing(0);
    contactsTable.setCellPadding(0);
    contactsTable.setWidth("100%");
    contactsTable.addStyleName("contacts-ListContents");
    contactsTable.getColumnFormatter().setWidth(0, "15px");
    contentTable.setWidget(1, 0, contactsTable);

    contentTableDecorator.add(contentTable);
  }
Esempio n. 3
0
  public UploadAutorizar() {

    uploadTable = new FlexTable();

    notaInterinstitucional = createUploaderNotaInterinstitucional();

    uploadTable.setText(0, 0, "Nota Interinstitucional");
    uploadTable.setWidget(0, 1, notaInterinstitucional);

    VerticalPanel v = new VerticalPanel();
    DecoratorPanel dp = new DecoratorPanel();
    dp.add(uploadTable);
    v.add(new Label("Adjuntos"));
    v.add(dp);

    initWidget(v);

    addEliminarHander();
  }
Esempio n. 4
0
  //	public Rol(CriadorWidgets<T> criador, Parser<Ob, T> parser){
  public Rol(Parser<Ob, T> parser) {
    formularios = new ArrayList<T>();
    //		botaoMais = new BotaoMais(criador);
    botaoMais = new BotaoMais();
    painelWidgets = new VerticalPanel();
    this.parser = parser;

    DecoratorPanel painel = new DecoratorPanel();
    initWidget(painel);
    painel.setWidth("");

    VerticalPanel painelIntermediario = new VerticalPanel();
    painel.add(painelIntermediario);

    painelIntermediario.add(painelWidgets);
    painelIntermediario.add(botaoMais);

    botaoMais.onClick(null);
  }
  public LeftTabPanel() {
    initWidget(main);
    main.add(left);
    left.add(leftTree);
    DecoratorPanel decorator = new DecoratorPanel();
    Style decoratorStyle = decorator.getElement().getStyle();
    decoratorStyle.setPropertyPx("marginLeft", 15);
    Style rightStyle = right.getElement().getStyle();
    rightStyle.setPropertyPx("margin", 5);
    decorator.add(right);

    main.add(decorator);
    leftTree.addSelectionHandler(
        new SelectionHandler<TreeItem>() {
          public void onSelection(SelectionEvent<TreeItem> event) {
            String name = event.getSelectedItem().getText();
            setWidget(right, cogs.get(name));
          }
        });
  }
  public Widget asWidget() {
    Widget layout = UI_BINDER.createAndBindUi(this);

    // Create the MapPresenter and add an InitializationHandler:
    mapPresenter = GeomajasImpl.getInstance().createMapPresenter();
    mapPresenter.setSize(480, 480);
    mapPresenter.getEventBus().addMapInitializationHandler(new MyMapInitializationHandler());

    // Define the whole layout:
    DecoratorPanel mapDecorator = new DecoratorPanel();
    mapDecorator.add(mapPresenter.asWidget());
    mapPanel.add(mapDecorator);

    // Initialize the map, and return the layout:
    GeomajasServerExtension.getInstance().initializeMap(mapPresenter, "gwt-app", "mapOsm");
    label.setVisible(false);
    for (int option : options) {
      countBox.addItem(option + "");
    }
    countBox.setSelectedIndex(2);
    return layout;
  }
Esempio n. 7
0
  /**
   * Default constructor.
   *
   * @param aDataSource
   * @param aStep
   * @param mustBeVisible
   */
  public CaseRecapViewerWidget(
      StepItemDataSource aDataSource,
      CaseItem aCase,
      CaseDataSource aCaseDataSource,
      ProcessDataSource aProcessDataSource) {
    super();
    myStepDataSource = aDataSource;
    myCaseDataSource = aCaseDataSource;
    myProcessDataSource = aProcessDataSource;
    myCase = aCase;
    formId = myCase.getProcessUUID().getValue() + "$recap";
    myInnerPanel.add(myFirstRowPanel);
    myInnerPanel.add(mySecondRowPanel);
    myInnerPanel.add(myThirdRowPanel);
    myOuterPanel.add(myInnerPanel);

    myFirstRowPanel.setStylePrimaryName("bos_first_row");
    mySecondRowPanel.setStylePrimaryName("bos_second_row");
    myThirdRowPanel.setStylePrimaryName("bos_third_row");
    myInnerPanel.setStylePrimaryName("bos_case_recap_viewer_inner");
    myOuterPanel.setStylePrimaryName("bos_case_recap_viewer");
    myOuterPanel.addStyleName(CSSClassManager.ROUNDED_PANEL);
    this.initWidget(myOuterPanel);

    myProcessDataSource.getItem(
        myCase.getProcessUUID(),
        new AsyncHandler<BonitaProcess>() {
          public void handleFailure(Throwable aT) {
            // Do nothing.
            GWT.log("Unable to get the process definition:", aT);
          }

          public void handleSuccess(BonitaProcess aResult) {
            myProcess = aResult;
            initContent();
            update();
          }
        });
  }
  /** Default constructor */
  public DeleteConfiguration() {
    super();

    initService();

    initWidget(mainPanel);

    mainPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
    mainPanel.setSpacing(10);

    DecoratorPanel dp = new DecoratorPanel();
    mainPanel.add(dp);
    mainPanel.setCellHorizontalAlignment(dp, HasHorizontalAlignment.ALIGN_CENTER);

    mainPanel.setWidth(DOCK_PANEL_WIDTH);

    upperPanel.setWidth(PERCENT_100);
    upperPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
    upperPanel.setSpacing(10);

    // Sub-Title
    Label subTitleLabel = new Label(SUB_TITLE);
    subTitleLabel.addStyleDependentName(SUB_TITLE_LABEL_STYLE);
    upperPanel.add(subTitleLabel);
    upperPanel.setCellHorizontalAlignment(subTitleLabel, HasHorizontalAlignment.ALIGN_CENTER);

    wbConfigTextBox.addChangeHandler(this);
    LabeledWidget workbookIdBox = new LabeledWidget(wbConfigTextBox);
    workbookIdBox.setLabelText(CONFIG_ID_COLON);
    workbookIdBox.setPanelWidth(RESULTS_DATA_WIDTH);
    upperPanel.add(workbookIdBox);

    submitButton.addClickHandler(this);
    submitButton.setEnabled(false);
    upperPanel.add(submitButton);

    dp.add(upperPanel);
  }
Esempio n. 9
0
 public MenuChoicesPanel() {
   super();
   myContainer.add(myOuterPanel);
   myContainer.removeStyleName(myContainer.getStylePrimaryName());
   this.initWidget(myContainer);
 }