コード例 #1
0
  public void OpenEditPanel() {
    GeneralPanel.remove(PanelEdicion);
    GeneralPanel.add(PanelEdicion, 0, 0);
    PanelEdicion.setSize(
        PanelActivity.getOffsetWidth() + "px", PanelActivity.getOffsetHeight() + "px");
    PanelEdicion.clear();
    PanelEdicion.setStyleName("BlancoTransparente");
    Button Boton = new Button();

    Boton.setHTML(ConstantsInformation.END_EDIT_BOTTON);
    Boton.addClickHandler(
        new ClickHandler() {

          @Override
          public void onClick(ClickEvent event) {
            closeEditPanel();

            if (!SelectTeacherCatalogButtonTextBox.getText().isEmpty())
              BOTTON_TEACHER_CATALOG = SelectTeacherCatalogButtonTextBox.getText();
            else BOTTON_TEACHER_CATALOG = BOTTON_TEACHER_CATALOG_RESET;

            if (!SelectOpenCatalogButtonTextBox.getText().isEmpty())
              BOTTON_OPEN_CATALOG = SelectOpenCatalogButtonTextBox.getText();
            else BOTTON_OPEN_CATALOG = BOTTON_OPEN_CATALOG_RESET;

            ParsearFieldsAItems();
            SaveChages();
          }
        });
    SelectTeacherCatalogButtonTextBox = new TextBox();
    SelectTeacherCatalogButtonTextBox.setText(BOTTON_TEACHER_CATALOG);
    SelectTeacherCatalogButtonTextBox.setSize(
        SelectTeacherCatalogButton.getOffsetWidth() + "px",
        SelectTeacherCatalogButton.getOffsetHeight() + "px");
    PanelEdicion.add(
        SelectTeacherCatalogButtonTextBox,
        SelectTeacherCatalogButton.getAbsoluteLeft()
            - PanelActivity.getAbsoluteLeft()
            - DecoradorWidth,
        SelectTeacherCatalogButton.getAbsoluteTop()
            - PanelActivity.getAbsoluteTop()
            - DecoradorWidth);

    SelectOpenCatalogButtonTextBox = new TextBox();
    SelectOpenCatalogButtonTextBox.setText(BOTTON_OPEN_CATALOG);
    SelectOpenCatalogButtonTextBox.setSize(
        SelectOpenCatalogButton.getOffsetWidth() + "px",
        SelectOpenCatalogButton.getOffsetHeight() + "px");
    PanelEdicion.add(
        SelectOpenCatalogButtonTextBox,
        SelectOpenCatalogButton.getAbsoluteLeft()
            - PanelActivity.getAbsoluteLeft()
            - DecoradorWidth,
        SelectOpenCatalogButton.getAbsoluteTop() - PanelActivity.getAbsoluteTop() - DecoradorWidth);

    PanelEdicion.add(Boton, PanelEdicion.getOffsetWidth() - Constants.TAMANOBOTOBEDITON, 0);
  }
コード例 #2
0
  @Override
  public void show() {
    super.show();
    //		GeneralPanel.setSize(400+Constants.PX, 40+Constants.PX);
    EditorZone.setVisible(false);
    GeneralPanel.setSize(
        PanelActivity.getOffsetWidth() + Constants.PX,
        PanelActivity.getOffsetHeight() + Constants.PX);

    if (ActualState.isLanguageActive()) {
      GeneralPanel.setHeight(Constants.TAMANO_PANEL_EDICION_INT + 40 + Constants.PX);
      EditorZone.setVisible(true);
      closeEditPanel();
    }
  }
コード例 #3
0
  private void closeEditPanel() {
    GeneralPanel.remove(PanelEdicion);
    GeneralPanel.add(PanelEdicion, PanelActivity.getOffsetWidth() - 40, 0);
    PanelEdicion.setSize(Constants.TAMANOBOTOBEDITOFF + Constants.PX, "50px");
    PanelEdicion.clear();
    PanelEdicion.setStyleName("");
    Button Boton = new Button();
    PanelEdicion.add(Boton, 0, 0);
    Boton.setHTML(ConstantsInformation.EDIT_BOTTON);
    Boton.addClickHandler(
        new ClickHandler() {

          @Override
          public void onClick(ClickEvent event) {
            OpenEditPanel();
          }
        });
  }