コード例 #1
0
 @Override
 public Composant getValue() {
   Composant composant = composantPropertiesWidget.getValue();
   if (composant != null) {
     composant.setViews(viewListWidget.getValue());
   }
   return composant;
 }
コード例 #2
0
  @Override
  public void setValue(Composant value) {

    if (composantPropertiesWidget != null && viewListWidget != null && value != null) {
      composantPropertiesWidget.setValue(value);
      viewListWidget.setValue(value.getViews());
      isModified = false;
    }
  }
コード例 #3
0
  @Override
  public void init() {
    mainPanel = new FlowPanel();

    composantPropertiesWidget = new ComposantPropertiesWidget();
    composantPropertiesWidget.addValueChangeHandler(
        new ValueChangeHandler<Composant>() {

          @Override
          public void onValueChange(ValueChangeEvent<Composant> event) {
            isModified = true;
          }
        });
    mainPanel.add(composantPropertiesWidget);

    GroupBoxPanel blocBox = new GroupBoxPanel();
    blocBox.setHtml("<b>Liste des blocs qui r\u00e9f\u00e9rencent ce composant</b>");
    mainPanel.add(blocBox);

    FlowPanel blocsPanel = new FlowPanel();
    blocsPanel.addStyleName("BlocUsedComposnant-Panel");
    blocBox.add(blocsPanel);
    composantsBlocsListWidget = new ComposantsBlocsListWidget();
    blocsPanel.add(composantsBlocsListWidget);

    GroupBoxPanel regionsBox = new GroupBoxPanel();
    regionsBox.setHtml("<b>Liste des vues</b>");
    mainPanel.add(regionsBox);
    viewListWidget = new ViewListWidget();
    viewListWidget.addValueChangeHandler(
        new ValueChangeHandler<List<View>>() {

          @Override
          public void onValueChange(ValueChangeEvent<List<View>> event) {
            isModified = true;
          }
        });
    regionsBox.add(viewListWidget);

    FlowPanel actionsPanel = new FlowPanel();
    mainPanel.add(actionsPanel);
    save = new AnchorButton("Sauvegarder");
    actionsPanel.add(save);
    save.addStyleName("button_ok");
    save.setTitle("Sauvegarder les modifications");
  }
コード例 #4
0
 @Override
 public void addDeleteClickHandler(ClickHandler deleteClickHandler) {
   if (viewListWidget != null) {
     viewListWidget.addDeletedClickHandler(deleteClickHandler);
   }
 }
コード例 #5
0
 @Override
 public void setPageBlocViewList(List<ViewBean> value) {
   if (viewListWidget != null) viewListWidget.setPageBlocViewList(value);
 }
コード例 #6
0
 @Override
 public void deleteSelectedView() {
   if (viewListWidget != null) viewListWidget.deleteSelectedView();
 }
コード例 #7
0
 @Override
 public View getSeletedView() {
   return viewListWidget.getSelectedView();
 }
コード例 #8
0
 @Override
 public void addUpdateClickHandler(ClickHandler updateClickHandler) {
   if (viewListWidget != null) {
     viewListWidget.addUpdateClickHandler(updateClickHandler);
   }
 }
コード例 #9
0
 @Override
 public void addSelectionClickHandler(ClickHandler clickHandler) {
   if (viewListWidget != null) {
     viewListWidget.addSelectionClickHandler(clickHandler);
   }
 }