コード例 #1
0
  @Override
  public void init(final DocumentDetailsPresenter presenter) {
    this.presenter = presenter;

    documentIdLabel.setText(constants.DocumentID());
    documentNameLabel.setText(constants.DocumentName());
    openDocumentButton.setText(constants.DownloadButton());
    documentPathLabel.setText(constants.DownloadButtonLabel());
  }
コード例 #2
0
ファイル: MainContainer.java プロジェクト: Odilio/kune
  public MainContainer() {
    initWidget(uiBinder.createAndBindUi(this));
    deck.add(flow);
    deck.add(new Label("Deck 1"));
    final Label label2 = new Label("Deck 2");
    label2.setType(LabelType.WARNING);
    deck.add(label2);
    final Label label3 = new Label("Deck 3");
    label3.setType(LabelType.DANGER);
    deck.add(label3);

    scroll.getElement().getStyle().setOverflowX(Overflow.AUTO);
    scroll.getElement().getStyle().setOverflowY(Overflow.SCROLL);

    // scroll.setTouchScrollingDisabled(false);
    // NotifyUser.info("Touch enabled: " + !scroll.isTouchScrollingDisabled());

    // getScrollableElement().getStyle().setOverflowX(Overflow.HIDDEN);
    // scroll.getScrollableElement().getStyle().setOverflowY(Overflow.SCROLL);
    //
    // scroll.addScrollHandler(new ScrollHandler() {
    //
    // @Override
    // public void onScroll(final ScrollEvent event) {
    // // NotifyUser.info("scrolling");
    // }
    // });

    // addTouchEndHandler(new TouchEndHandler() {
    // @Override
    // public void onTouchEnd(final TouchEndEvent event) {
    // // NotifyUser.info("Touch end event");
    // next();
    // }
    // });
    // addTouchStartHandler(new TouchStartHandler() {
    // @Override
    // public void onTouchStart(final TouchStartEvent event) {
    // // NotifyUser.info("Touch start event");
    // }
    // });
    // addTouchCancelHandler(new TouchCancelHandler() {
    // @Override
    // public void onTouchCancel(final TouchCancelEvent event) {
    // // NotifyUser.info("Touch cancel event");
    // }
    // });
    // addTouchMoveHandler(new TouchMoveHandler() {
    // @Override
    // public void onTouchMove(final TouchMoveEvent event) {
    // // NotifyUser.info("Touch move event");
    //
    // }
    // });
  }
コード例 #3
0
  private void enableModeParams(ViewMode mode) {

    if (mode == ViewMode.EDIT_MULTI_MODULE_PROJECT || mode == ViewMode.EDIT_SINGLE_MODULE_PROJECT) {
      groupIdTextBox.setVisible(true);
      groupIdTextBoxHelpInline.setVisible(true);
      artifactIdTextBox.setVisible(true);
      artifactIdTextBoxHelpInline.setVisible(true);
      versionTextBox.setVisible(true);
      versionTextBoxHelpInline.setVisible(true);
    }
  }
コード例 #4
0
ファイル: LoadingLabel.java プロジェクト: vlahoda/aplikator
 public LoadingLabel(String text) {
   loadingLabel = new Label(text);
   initWidget(loadingLabel);
   loadingLabel.setType(LabelType.INFO);
 }
コード例 #5
0
  @Override
  public void setMode(ViewMode mode) {
    this.mode = mode;

    if (mode == ViewMode.CREATE_STRUCTURE) {

      projectTypeLabel.setText(
          Constants.INSTANCE.Repository_structure_view_create_projectTypeLabel());

      groupIdTextBoxHelpInline.setText(
          Constants.INSTANCE.Repository_structure_view_create_groupIdTextBoxHelpInline());
      artifactIdTextBoxHelpInline.setText(
          Constants.INSTANCE.Repository_structure_view_create_artifactIdTextBoxHelpInline());
      versionTextBoxHelpInline.setText(
          Constants.INSTANCE.Repository_structure_view_create_versionTextBoxHelpInline());

    } else if (mode == ViewMode.EDIT_SINGLE_MODULE_PROJECT) {

      projectTypeLabel.setText(
          Constants.INSTANCE.Repository_structure_view_edit_single_projectTypeLabel());

      groupIdTextBoxHelpInline.setText(
          Constants.INSTANCE.Repository_structure_view_edit_single_groupIdTextBoxHelpInline());
      artifactIdTextBoxHelpInline.setText(
          Constants.INSTANCE.Repository_structure_view_edit_single_artifactIdTextBoxHelpInline());
      versionTextBoxHelpInline.setText(
          Constants.INSTANCE.Repository_structure_view_edit_single_versionTextBoxHelpInline());

      groupIdTextBox.setVisible(true);
      groupIdTextBoxHelpInline.setVisible(true);
      artifactIdTextBox.setVisible(true);
      artifactIdTextBoxHelpInline.setVisible(true);
      versionTextBox.setVisible(true);
      versionTextBoxHelpInline.setVisible(true);

    } else if (mode == ViewMode.EDIT_MULTI_MODULE_PROJECT) {

      projectTypeLabel.setText(
          Constants.INSTANCE.Repository_structure_view_edit_multi_projectTypeLabel());

      groupIdTextBoxHelpInline.setText(
          Constants.INSTANCE.Repository_structure_view_edit_multi_groupIdTextBoxHelpInline());
      artifactIdTextBoxHelpInline.setText(
          Constants.INSTANCE.Repository_structure_view_edit_multi_artifactIdTextBoxHelpInline());
      versionTextBoxHelpInline.setText(
          Constants.INSTANCE.Repository_structure_view_edit_multi_versionTextBoxHelpInline());

      groupIdTextBox.setVisible(true);
      groupIdTextBoxHelpInline.setVisible(true);
      artifactIdTextBox.setVisible(true);
      artifactIdTextBoxHelpInline.setVisible(true);
      versionTextBox.setVisible(true);
      versionTextBoxHelpInline.setVisible(true);

    } else if (mode == ViewMode.EDIT_UNMANAGED_REPOSITORY) {

      projectTypeLabel.setText(
          Constants.INSTANCE.Repository_structure_view_edit_unmanaged_projectTypeLabel());

      groupIdTextBox.setVisible(false);
      groupIdTextBoxHelpInline.setVisible(false);
      artifactIdTextBox.setVisible(false);
      artifactIdTextBoxHelpInline.setVisible(false);
      versionTextBox.setVisible(false);
      versionTextBoxHelpInline.setVisible(false);
    }
  }
コード例 #6
0
 @Override
 public String getVersionId() {
   return versionTextBox.getText();
 }
コード例 #7
0
 @Override
 public void setVersion(String version) {
   versionTextBox.setText(version);
 }
コード例 #8
0
 @Override
 public String getArtifactId() {
   return artifactIdTextBox.getText();
 }
コード例 #9
0
 @Override
 public void setArtifactId(String artifactId) {
   artifactIdTextBox.setText(artifactId);
 }
コード例 #10
0
 @Override
 public String getGroupId() {
   return groupIdTextBox.getText();
 }
コード例 #11
0
 @Override
 public void setGroupId(String groupId) {
   groupIdTextBox.setText(groupId);
 }
コード例 #12
0
 public void clear() {
   groupIdTextBox.setText(null);
   artifactIdTextBox.setText(null);
   versionTextBox.setText(null);
 }