예제 #1
0
 /**
  * The constructor should first build the main layout, set the composition root and then do any
  * custom initialization.
  *
  * <p>The constructor will not be automatically regenerated by the visual editor.
  */
 public LoginComponent() {
   buildMainLayout();
   setCompositionRoot(mainLayout);
   mainLayout.setVisible(true);
   mainLayout.setEnabled(true);
   this.setSizeUndefined();
 }
  @Override
  public void setInputEditView(boolean isEdit) {
    if (isEdit) {
      buttonUpdate.setVisible(true);
      buttonSubmit.setVisible(false);
      buttonReset.setVisible(false);
      inputGoodsSelect.setEnabled(false);
      layoutButtonNav.setVisible(false);

    } else {
      inputGoodsSelect.setEnabled(true);
      buttonUpdate.setVisible(false);
      buttonSubmit.setVisible(true);
      buttonReset.setVisible(true);
      layoutButtonNav.setVisible(true);
    }
  }