コード例 #1
0
  public PopupFusionViewImpl() {
    super(popupConstants.titrePopup(), false, false, true);
    this.addStyleName(SquareResources.INSTANCE.css().popupFusion());

    final VerticalPanel pConteneur = new VerticalPanel();
    pConteneur.setWidth(PopupFusionConstants.LARGEUR_POPUP);
    pConteneur.setSpacing(5);

    pConteneurComposantFusion = new VerticalPanel();
    pConteneurComposantFusion.setWidth(AppControllerConstants.POURCENT_100);

    btnFermer = new DecoratedButton(popupConstants.btnFermer());
    btnReduire = new DecoratedButton(popupConstants.reduire());

    final HorizontalPanel conteneurBoutons = new HorizontalPanel();
    conteneurBoutons.add(btnReduire);
    conteneurBoutons.add(btnFermer);
    conteneurBoutons.setSpacing(5);

    pConteneur.add(pConteneurComposantFusion);
    pConteneur.add(conteneurBoutons);
    pConteneur.setCellHorizontalAlignment(conteneurBoutons, HasAlignment.ALIGN_CENTER);

    this.setWidget(pConteneur, 0);

    // on en fait une popup minimisable
    minimizablePopup = new PopupMinimizable(this, popupConstants.titrePopup(), btnReduire);
  }
コード例 #2
0
  public VerticalPanel buildUsersListPanel() {
    DockPanel headerDockPanel = new DockPanel();
    headerDockPanel.add(deleteUserBtn, DockPanel.EAST);
    VerticalPanel spacer = new VerticalPanel();
    spacer.setWidth("2"); // $NON-NLS-1$
    headerDockPanel.add(spacer, DockPanel.EAST);
    headerDockPanel.add(addUserBtn, DockPanel.EAST);
    Label label = new Label("Users"); // $NON-NLS-1$
    headerDockPanel.add(label, DockPanel.WEST);
    headerDockPanel.setCellWidth(label, "100%"); // $NON-NLS-1$
    VerticalPanel userListPanel = new VerticalPanel();
    userListPanel.add(headerDockPanel);
    userListPanel.add(usersList);
    userListPanel.add(new Label(Messages.getString("filter"))); // $NON-NLS-1$
    userListPanel.add(filterTextBox);

    userListPanel.setCellHeight(usersList, "100%"); // $NON-NLS-1$
    userListPanel.setCellWidth(usersList, "100%"); // $NON-NLS-1$
    userListPanel.setHeight("100%"); // $NON-NLS-1$
    userListPanel.setWidth("100%"); // $NON-NLS-1$
    usersList.setHeight("100%"); // $NON-NLS-1$
    usersList.setWidth("100%"); // $NON-NLS-1$
    filterTextBox.setWidth("100%"); // $NON-NLS-1$
    deleteUserBtn.setEnabled(false);

    filterTextBox.addKeyboardListener(this);
    usersList.addChangeListener(this);
    addUserBtn.addClickListener(this);
    deleteUserBtn.addClickListener(this);
    return userListPanel;
  }
コード例 #3
0
  public DiscussionWidget(final Artifact artifact, boolean readOnly) {
    this.artifact = artifact;
    this.readOnly = readOnly;

    DecoratedDisclosurePanel discussionPanel = new DecoratedDisclosurePanel(constants.Discussion());
    discussionPanel.setWidth("100%");

    commentList.setWidth("100%");
    VerticalPanel discussionLayout = new VerticalPanel();
    discussionLayout.setWidth("90%");

    newCommentLayout.setWidth("100%");
    refreshDiscussion();
    showNewCommentButton();

    discussionLayout.add(newCommentLayout);
    discussionLayout.add(commentList);

    discussionPanel.setContent(discussionLayout);

    pushNotify =
        new ServerPushNotification() {
          public void messageReceived(PushResponse response) {
            if ("discussion".equals(response.messageType)
                && artifact.getUuid().equals(response.message)) {
              System.err.println("Refreshing discussion...");
              refreshDiscussion();
            }
          }
        };

    PushClient.instance().subscribe(pushNotify);

    initWidget(discussionPanel);
  }
コード例 #4
0
  private static void initRootPanel() {

    RootPanel.get().add(vpRoot, 8, 3);

    vpMain.setWidth("100%");
    vpRoot.setWidth("100%");

    vpRoot.add(new Header());

    vpRoot.add(vpMain);
  }
コード例 #5
0
ファイル: MultiViewEditor.java プロジェクト: ramzi2011/guvnor
  private void init() {
    VerticalPanel rootPanel = new VerticalPanel();

    rootPanel.setWidth("100%");

    rootPanel.add(createToolbar());

    viewsPanel.setWidth("100%");
    rootPanel.add(viewsPanel);

    doViews();

    initWidget(rootPanel);
  }
コード例 #6
0
  public MainPanel() {
    super(Unit.PX);

    Image logoUfcg = new Image(Adicionais.RESOURCES.logoUfcg());
    Image logoAdicionais = new Image(Adicionais.RESOURCES.logoAdicionais());
    HorizontalPanel header = new HorizontalPanel();
    header.add(logoUfcg);
    header.setCellVerticalAlignment(logoUfcg, HasVerticalAlignment.ALIGN_MIDDLE);
    header.add(logoAdicionais);
    header.setCellHorizontalAlignment(logoAdicionais, HasHorizontalAlignment.ALIGN_RIGHT);
    header.setWidth("100%");
    header.setStyleName(Adicionais.RESOURCES.css().header());
    this.addNorth(header, 88);

    VerticalPanel footer = new VerticalPanel();
    Label developersLabel =
        new Label("Desenvolvido por Cleber Gonçalves de Sousa e Vitor Morato Almeida");
    developersLabel.setStyleName(Adicionais.RESOURCES.css().developers());
    footer.add(developersLabel);

    this.addSouth(footer, 23);
    footer.setWidth("100%");
    footer.setStyleName(Adicionais.RESOURCES.css().footer());

    this.contentArea = new SimplePanel();
    this.contentArea.setStyleName(Adicionais.RESOURCES.css().content());
    this.add(this.contentArea);
  }
コード例 #7
0
  public PermissionsPanel(final JSONObject entityJsonObject) {

    //	this.center();
    this.setAutoHideEnabled(true);

    VerticalPanel vp = new VerticalPanel();
    vp.setSpacing(30);
    vp.setWidth("300px");

    vp.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);

    vp.add(new CloseButton(this));

    vp.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);

    vp.add(new Label("Permissions to Edit this information:"));

    vp.add(listPermissions(entityJsonObject));

    permissionName.setValue(null);
    permissionName.setWidth("200px");
    vp.add(permissionName);

    vp.add(new ButtonAddPermission(entityJsonObject, this));

    this.setWidget(vp);
  }
コード例 #8
0
  public LoginRegister(ServerSideServiceClientImpl ssService, Home home) {
    this.ssService = ssService;
    this.homeParent = home;

    // Adding the login section
    // login button is implemented in Login class
    loginSection = new Login(home);
    this.add(loginSection);

    // Adding space between login and register section
    VerticalPanel spacing = new VerticalPanel();
    spacing.setWidth("200px");
    this.add(spacing);

    // Adding the register section
    // register button is implemented in Register class
    registerSection = new Register(home);
    this.add(registerSection);

    this.addHandler(
        new TabUpdateEvent.Handler() {

          @Override
          public void onUpdate(TabUpdateEvent event) {
            // TODO Auto-generated method stub

            System.out.println("We are updating the login register");

            // Tell things to update
            update();
          }
        },
        TabUpdateEvent.TYPE);
  }
コード例 #9
0
ファイル: SnapshotView.java プロジェクト: nhenggeler/guvnor
  public SnapshotView(
      ClientFactory clientFactory, EventBus eventBus, SnapshotInfo snapInfo, Module parentPackage) {
    this.clientFactory = clientFactory;
    this.eventBus = eventBus;
    vert = new VerticalPanel();
    this.snapInfo = snapInfo;
    this.parentConf = parentPackage;
    PrettyFormLayout head = new PrettyFormLayout();

    head.addHeader(DroolsGuvnorImages.INSTANCE.snapshot(), header());

    vert.add(head);

    AssetViewerActivity assetViewerActivity =
        new AssetViewerActivity(parentConf.getUuid(), clientFactory);
    assetViewerActivity.start(
        new AcceptItem() {
          public void add(String tabTitle, IsWidget widget) {
            ScrollPanel pnl = new ScrollPanel();
            pnl.setWidth("100%");
            pnl.add(widget);
            vert.add(pnl);
          }
        },
        null);

    vert.setWidth("100%");
    initWidget(vert);
  }
コード例 #10
0
ファイル: ButtonExample.java プロジェクト: lihong671/heron
  private FlowLayoutContainer createButtons(Category cat) {
    VerticalPanel vp = new VerticalPanel();
    vp.setSpacing(10);
    vp.setWidth("400px");

    for (Type type : Type.values()) {
      vp.add(format(type.getText()));

      HorizontalPanel hp = new HorizontalPanel();
      hp.setSpacing(5);

      CellButtonBase<?> small = createButton(cat, type);
      CellButtonBase<?> medium = createButton(cat, type);
      CellButtonBase<?> large = createButton(cat, type);

      configureButton(small, type, ButtonScale.SMALL);
      configureButton(medium, type, ButtonScale.MEDIUM);
      configureButton(large, type, ButtonScale.LARGE);

      hp.add(small);
      hp.add(medium);
      hp.add(large);

      vp.add(hp);
    }

    FlowLayoutContainer f = new FlowLayoutContainer();
    f.getScrollSupport().setScrollMode(ScrollMode.AUTO);
    f.add(vp);

    con.add(f);

    return f;
  }
コード例 #11
0
ファイル: Term.java プロジェクト: scbd/vocbench
    public void initLayout() {
      lang = new ListBox();
      lang =
          Convert.makeSelectedLanguageListBox(
              (ArrayList<String[]>) MainApp.getLanguage(), tObj.getLang());
      lang.setWidth("100%");
      lang.setEnabled(false);

      term = new TextBox();
      term.setText(tObj.getLabel());
      term.setWidth("100%");

      main = new CheckBox(constants.conceptPreferredTerm());
      if (tObj.isMainLabel()) {
        main.setValue(tObj.isMainLabel());
        // main.setEnabled(false);
      }

      Grid table = new Grid(2, 2);
      table.setWidget(0, 0, new HTML(constants.conceptTerm()));
      table.setWidget(1, 0, new HTML(constants.conceptLanguage()));
      table.setWidget(0, 1, term);
      table.setWidget(1, 1, lang);
      table.setWidth("100%");
      table.getColumnFormatter().setWidth(1, "80%");

      VerticalPanel vp = new VerticalPanel();
      vp.add(GridStyle.setTableConceptDetailStyleleft(table, "gslRow1", "gslCol1", "gslPanel1"));
      vp.add(main);
      vp.setSpacing(0);
      vp.setWidth("100%");
      vp.setCellHorizontalAlignment(main, HasHorizontalAlignment.ALIGN_RIGHT);

      addWidget(vp);
    }
コード例 #12
0
  /** This is the entry point method. */
  public void onModuleLoad() {

    initHistoryObservations();

    HTML h = new HTML("Watch the http querystring change after #clickMe1...");
    HTML hh = new HTML("Each click will send an history event to Google Analytics.");
    HTML hhh =
        new HTML(
            "<a href=\"http://gwt-examples.googlecode.com\">gwt-examples.googlecode.com</a> - go back to where you came from");

    VerticalPanel pWidget = new VerticalPanel();
    pWidget.add(h);
    pWidget.add(hh);
    pWidget.add(hhh);
    pWidget.add(new HTML("&nbsp;"));
    pWidget.add(h1);
    pWidget.add(h2);
    pWidget.add(h3);
    pWidget.add(h4);

    VerticalPanel vp = new VerticalPanel();
    vp.add(pWidget);
    vp.setWidth("100%");

    vp.setCellHorizontalAlignment(pWidget, HorizontalPanel.ALIGN_CENTER);

    RootPanel.get("content").add(vp);
  }
コード例 #13
0
  /** Creates a new ProjectList */
  public ProjectList() {
    projects = new ArrayList<Project>();
    selectedProjects = new ArrayList<Project>();
    projectWidgets = new HashMap<Project, ProjectWidgets>();

    sortField = SortField.DATE_MODIFIED;
    sortOrder = SortOrder.DESCENDING;

    // Initialize UI
    table = new Grid(1, 4); // The table initially contains just the header row.
    table.addStyleName("ode-ProjectTable");
    table.setWidth("100%");
    table.setCellSpacing(0);
    nameSortIndicator = new Label("");
    dateCreatedSortIndicator = new Label("");
    dateModifiedSortIndicator = new Label("");
    refreshSortIndicators();
    setHeaderRow();

    VerticalPanel panel = new VerticalPanel();
    panel.setWidth("100%");

    panel.add(table);
    initWidget(panel);

    // It is important to listen to project manager events as soon as possible.
    Ode.getInstance().getProjectManager().addProjectManagerEventListener(this);
  }
コード例 #14
0
 public PositionTable() {
   super();
   redraw();
   layout.setWidth("100%");
   initWidget(layout);
   initializeTable();
   fetchPosition();
 }
コード例 #15
0
ファイル: SurveyWidget.java プロジェクト: awaazde/avaajotalo
    public DetailsDialog(JSOModel details) {
      // setWidth("500px");
      // Use this opportunity to set the dialog's caption.
      setText("Awaaz.De Administration");

      // Create a VerticalPanel to contain the 'about' label and the 'OK' button.
      VerticalPanel outer = new VerticalPanel();
      outer.setWidth("100%");
      outer.setSpacing(10);

      // Create the 'about' text and set a style name so we can style it with CSS.
      String startdate = details.get("startdate");
      String completed = details.get("completed");
      String pending = details.get("pending");

      String surveyDetails = "<b>Start: </b> " + startdate + "<br><br>";
      int numrecipients = completed.split(", ").length + pending.split(", ").length;
      // For some reason, the above line creates an array of length one if
      // one of the strings is empty
      // Assumes that completed and pending cannot both be empty
      if (completed.equals("") || pending.equals("")) {
        numrecipients -= 1;
      }
      surveyDetails += "<b>Num Recipients: </b>" + String.valueOf(numrecipients);

      surveyDetails += "<br><br><b>Pending:</b>";
      HTML pendingHTML = new HTML(surveyDetails);
      pendingHTML.setStyleName("mail-AboutText");
      outer.add(pendingHTML);

      Label pendingLbl = new Label(pending, true);
      pendingLbl.setWordWrap(true);
      pendingLbl.setStyleName("dialog-NumsText");
      outer.add(pendingLbl);

      HTML compHTML = new HTML("<br><b>Completed:</b>");
      compHTML.setStyleName("mail-AboutText");
      outer.add(compHTML);

      Label completedLbl = new Label(completed, true);
      completedLbl.setWordWrap(true);
      completedLbl.setStyleName("dialog-NumsText");
      outer.add(completedLbl);

      // Create the 'OK' button, along with a handler that hides the dialog
      // when the button is clicked.
      outer.add(
          new Button(
              "Close",
              new ClickHandler() {
                public void onClick(ClickEvent event) {
                  hide();
                }
              }));

      setWidget(outer);
    }
コード例 #16
0
 @Override
 protected Widget createMainWidget() {
   VerticalPanel verticalPanel = new VerticalPanel();
   verticalPanel.setSpacing(6);
   verticalPanel.setWidth(width_ + "px");
   verticalPanel.add(captionLabel_);
   verticalPanel.add(textBox_);
   return verticalPanel;
 }
コード例 #17
0
ファイル: Term.java プロジェクト: scbd/vocbench
    public Widget getTable(TermMoveObject tmObj) {
      if (!tmObj.isTermListEmpty()) {
        HashMap<String, ArrayList<TermObject>> termList = tmObj.getTermList();
        HashMap<String, TermRelationshipObject> termRelList = tmObj.getTermRelList();

        ArrayList<String> termlanglist = new ArrayList<String>(termList.keySet());
        ArrayList<String> sortedlanglist = new ArrayList<String>();
        for (LanguageCode langCode : MainApp.languageCode) {
          String lang = langCode.getLanguageCode().toLowerCase();

          if (termlanglist.contains(lang)) {
            termlanglist.remove(lang);
            if (MainApp.userPreference.isHideNonselectedlanguages()) {
              if (!MainApp.userSelectedLanguage.contains(lang)) {
                lang = "";
              }
            }
            if (!lang.equals("")) sortedlanglist.add(lang);
          }
        }
        sortedlanglist.addAll(termlanglist);

        FlexTable table = new FlexTable();
        table.setWidget(0, 0, new HTML(constants.conceptLanguage()));
        table.setWidget(0, 1, new HTML("&nbsp;"));

        table.getColumnFormatter().setWidth(1, "80%");
        int i = 1;
        for (String language : sortedlanglist) {
          table.setWidget(
              i, 0, new HTML(getFullnameofLanguage(language) + " (" + language.toString() + ")"));
          ArrayList<TermObject> list = (ArrayList<TermObject>) termList.get(language);
          table.setWidget(i, 1, getTermTable(list, termRelList));
          i++;
        }

        VerticalPanel panel = new VerticalPanel();
        String str =
            "This action will move following terms in different languages and remove all their current relationships with other terms if exists. Please click browse button to select the new concept and click OK button to move or Cancel button to cancel the task?";
        HTML msg = new HTML(str);
        HorizontalPanel msghp = new HorizontalPanel();
        msghp.setStyleName("language-message");
        msghp.add(msg);
        msghp.setSpacing(10);
        panel.add(msg);
        panel.add(getConceptBrowseButton());
        panel.add(
            GridStyle.setTableConceptDetailStyleTop(
                table, "gstFR1", "gstFC1", "gstR1", "gstPanel1", true));
        panel.setWidth("100%");
        return panel;

      } else {
        Label sayNo = new Label(constants.conceptNoTerm());
        return sayNo;
      }
    }
コード例 #18
0
ファイル: RheaViewer.java プロジェクト: reactome-pwp/rhea
  private void initialize() {
    this.container = new VerticalPanel();
    container.setWidth("100%");
    //noinspection GWTStyleCheck
    this.container.addStyleName("rhea-RheaViewer");

    String msg = "Loading the Rhea structure. Please wait...";
    container.add(getMessage(Images.INSTANCE.getLoadingImage(), msg));
    initWidget(container);
  }
コード例 #19
0
 private VerticalPanel discriptionPanel() {
   VerticalPanel discriptionPanel = new VerticalPanel();
   discriptionPanel.setStyleName("pannel-Border");
   discriptionPanel.setWidth("100%");
   Label discriptionLabel =
       new Label(
           "This application supports annotations of Virtual Physiological Human data and models (VPHDM)s.");
   discriptionPanel.add(discriptionLabel);
   return discriptionPanel;
 }
コード例 #20
0
  public VerticalPanel buildUserDetailsDockPanel() {

    VerticalPanel assignedRolesPanel = buildAssignedRolesPanel();

    VerticalPanel mainUserDetailsPanel = new VerticalPanel();

    VerticalPanel userPanelFieldsetContent = new VerticalPanel();
    userPanelFieldsetContent.setSpacing(4);
    userPanelFieldsetContent.add(userDetailsPanel);
    userPanelFieldsetContent.add(updateUserBtn);
    userPanelFieldsetContent.setCellWidth(userDetailsPanel, "100%"); // $NON-NLS-1$

    userPanelFieldsetContent.setCellHorizontalAlignment(updateUserBtn, VerticalPanel.ALIGN_RIGHT);

    VerticalPanel fieldsetPanel = new VerticalPanel();
    fieldsetPanel.add(new Label(Messages.getString("userDetails"))); // $NON-NLS-1$
    fieldsetPanel.add(userPanelFieldsetContent);
    userPanelFieldsetContent.setWidth("100%"); // $NON-NLS-1$

    fieldsetPanel.setWidth("100%"); // $NON-NLS-1$

    mainUserDetailsPanel.add(fieldsetPanel);
    mainUserDetailsPanel.setCellWidth(fieldsetPanel, "100%"); // $NON-NLS-1$
    SimplePanel spacerPanel = new SimplePanel();
    spacerPanel.add(new Label(" ")); // $NON-NLS-1$
    mainUserDetailsPanel.add(spacerPanel);
    mainUserDetailsPanel.setCellHeight(spacerPanel, "10px"); // $NON-NLS-1$

    mainUserDetailsPanel.add(assignedRolesPanel);

    mainUserDetailsPanel.setCellHorizontalAlignment(
        updateUserBtn, HasHorizontalAlignment.ALIGN_RIGHT);

    mainUserDetailsPanel.setCellHeight(assignedRolesPanel, "100%"); // $NON-NLS-1$
    mainUserDetailsPanel.setCellWidth(assignedRolesPanel, "100%"); // $NON-NLS-1$

    userDetailsPanel.setWidth("100%"); // $NON-NLS-1$
    assignedRolesPanel.setWidth("100%"); // $NON-NLS-1$
    assignedRolesPanel.setHeight("100%"); // $NON-NLS-1$

    updateUserBtn.addClickListener(this);
    return mainUserDetailsPanel;
  }
  /** Construit le contenu. */
  private void construireBlocContenu(GarantiePersonneMoraleModel garantie) {
    conteneurGlobal = new VerticalPanel();
    conteneurGlobal.setWidth(ComposantContratPersonneMoraleConstants.POURCENT_100);
    conteneurGlobal.setSpacing(5);

    conteneurIconePdf = new VerticalPanel();
    conteneurGlobal.add(conteneurIconePdf);

    construireTableauGarantie(garantie);
  }
コード例 #22
0
  public void setReceivedData(DatabaseObject data) {
    this.modifiedResidue = (AbstractModifiedResidue) data;
    VerticalPanel vp = new VerticalPanel();
    vp.setWidth("99%");

    // ############################################### IMPORTANT
    // ###############################################
    // # This implementation will produce several queries to the RESTFul service but is the easiest
    // way to     #
    // # provide an easy to extend implementation of the AbstractModifiedResidue summary panels for
    // the future #
    // #########################################################################################################

    // All the panels that contain a subclass of AbstractModifiedResidue DOES NOT HAVE to contain a
    // disclosure panel
    // as a first instance because they will be part o a "major" content
    // The "if" statements are used because this.modified residue can be more than one of those at
    // the same time

    // NOTE: The commented ones are because at the moment of implementation, no data extra data for
    // them is provided
    //      by the RESTFul service. When new data is added, there is only needed to create the panel
    // and add it to
    //      the VerticalPanel

    // if(this.modifiedResidue instanceof GeneticallyModifiedResidue){}
    // if(this.modifiedResidue instanceof ReplacedResidue){}
    if (this.modifiedResidue instanceof FragmentModification) {
      vp.add(new FragmentModificationPanel(this, (FragmentModification) this.modifiedResidue));
    }
    // if(this.modifiedResidue instanceof FragmentDeletionModification){}
    if (this.modifiedResidue instanceof FragmentInsertionModification) {
      vp.add(
          new FragmentInsertionModificationPanel(
              this, (FragmentInsertionModification) this.modifiedResidue));
    }
    if (this.modifiedResidue instanceof TranslationalModification) {
      vp.add(
          new TranslationalModificationPanel(
              this, (TranslationalModification) this.modifiedResidue));
    }
    if (this.modifiedResidue instanceof CrosslinkedResidue) {
      vp.add(new CrosslinkedResiduePanel(this, (CrosslinkedResidue) this.modifiedResidue));
    }
    if (this.modifiedResidue instanceof InterChainCrosslinkedResidue) {}

    // if(this.modifiedResidue instanceof IntraChainCrosslinkedResidue){}
    // if(this.modifiedResidue instanceof ModifiedResidue){}
    if (this.modifiedResidue instanceof GroupModifiedResidue) {}

    // All the AbstractModifiedResidue contain the Reference Sequence
    vp.add(getReferenceSequencePanel(this.modifiedResidue.getReferenceSequence()));

    this.disclosurePanel.setContent(vp);
  }
コード例 #23
0
 private VerticalPanel createItems(ArrayList<MenuItem> items) {
   VerticalPanel panel = new VerticalPanel();
   panel.setWidth("100%");
   panel.setSpacing(4);
   if (items != null) {
     for (MenuItem item : items) {
       panel.add(createHyperlinkToUserPanel(item.getTitle(), item.getEvent()));
     }
   }
   return panel;
 }
コード例 #24
0
  @PostConstruct
  public void init() {
    layout = new VerticalPanel();
    layout.setWidth("100%");

    ts = new FormStyleLayout(getIcon(), DecisionTableXLSEditorConstants.INSTANCE.DecisionTable());
    layout.add(ts);

    initWidget(layout);
    setWidth("100%");
  }
コード例 #25
0
ファイル: InputsPanel.java プロジェクト: alexafshar/paco
  public InputsPanel(InputsListPanel parent, Input2 input) {
    this.input = input;
    this.parent = parent;
    mainPanel = new VerticalPanel();
    mainPanel.setStyleName("inputsBordered");
    mainPanel.setSpacing(2);
    mainPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
    initWidget(mainPanel);
    mainPanel.setWidth("258px");

    createLayout();
  }
コード例 #26
0
  private Widget getReferenceSequencePanel(ReferenceSequence referenceSequence) {
    VerticalPanel vp = new VerticalPanel();
    vp.getElement().getStyle().setMarginBottom(10, Style.Unit.PX);
    vp.addStyleName("elv-Details-OverviewDisclosure-content");
    vp.setWidth("98%");

    vp.add(new Label("Reference Entity:"));
    Widget pPanel = new ReferenceEntityPanel(this, referenceSequence);
    pPanel.getElement().getStyle().setMarginLeft(15, Style.Unit.PX);
    vp.add(pPanel);

    return vp;
  }
コード例 #27
0
  public ContainerBuilderWidget() {
    this.setModal(false);
    this.setAutoHideEnabled(false);
    this.setAnimationEnabled(true);
    this.setPopupPosition(10, Window.getScrollTop() + 10);
    this.setText(constants.windowTitle());
    this.addStyleName("builder");

    builderContent = new VerticalPanel();
    this.add(builderContent);
    builderContent.setWidth("200px");
    builderContent.setStyleName("builder");
  }
コード例 #28
0
  /** 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);
  }
コード例 #29
0
  public RuleValidatorWrapper(Widget editor, RuleAsset asset) {
    this.asset = asset;
    this.editor = editor;

    layout.add(editor);
    if (!asset.isreadonly) {
      validatorActions();
    }

    layout.setWidth("100%");
    layout.setHeight("100%");

    initWidget(layout);
  }
コード例 #30
0
  private VerticalPanel createSearchPanel() {
    VerticalPanel searchPanel = new VerticalPanel();
    searchPanel.setStyleName("pannel-Border");
    searchPanel.setWidth("100%");

    searchTable.getColumnFormatter().setWidth(0, "150em");
    searchTable.setWidget(0, 0, new Label("Model url"));
    searchTable.setWidget(0, 1, modelText);
    modelText.setWidth("400");

    searchTable.setWidget(1, 1, createButtonPanel());
    searchPanel.add(searchTable);

    return searchPanel;
  }