Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.DisclosurePanel$Imager


    /**
     * Constructor
     */
    public OptionPanel() {
      paramsPanel = new ParamsPanel("parameters");
      dpParams = new DisclosurePanel("Parameters", false);
      dpParams.add(paramsPanel);
    }
View Full Code Here


      simplePanel = new SimplePanel();
      DOM.setElementAttribute(simplePanel.getElement(), "id", "currentAccount");
      simplePanel.add(g);

      dpCrntAccount = new DisclosurePanel("Current Account", true);
      dpCrntAccount.setStylePrimaryName(Styles.DISCLOSURE_PANEL);
      dpCrntAccount.add(simplePanel);
      add(dpCrntAccount);

      // operations
      dpOps = new DisclosurePanel("Operations", true);
      dpOps.setStylePrimaryName(Styles.DISCLOSURE_PANEL);
      opsPanel = new OptionsPanel();
      opsPanel.addOptionHandler(this);
      dpOps.add(opsPanel);
      add(dpOps);

      // command history
      cmdDisplay = new StatusDisplay(MsgAttr.EXCEPTION.flag | MsgAttr.STATUS.flag);
      simplePanel = new SimplePanel();
      simplePanel.add(cmdDisplay);
      dpOpsDisplay = new DisclosurePanel("Command History", false);
      dpOpsDisplay.setStylePrimaryName(Styles.DISCLOSURE_PANEL);
      DOM.setElementAttribute(dpOpsDisplay.getElement(), "id", "dpOpsDisplay");
      dpOpsDisplay.add(simplePanel);
      add(dpOpsDisplay);
    }
View Full Code Here

  /**
   * Constructor
   */
  public SwitchInterfacePanel() {
    paramsPanel = new ParamsPanel("options[0].parameters");
    dpParams = new DisclosurePanel("Parameters", false);
    dpParams.add(paramsPanel);
  }
View Full Code Here

* a GWT widget snippet created in a init using GWT designer.
*/
public class GwtWidgetSnippet1 extends FlexTable {
  public GwtWidgetSnippet1() {
   
    DisclosurePanel disclosurePanel = new DisclosurePanel("New panel", true);
    setWidget(0, 0, disclosurePanel);
   
    FlexTable flexTable_1 = new FlexTable();
    disclosurePanel.setContent(flexTable_1);
    flexTable_1.setSize("5cm", "4cm");
   
    Label lblThisIsYour = new Label("This is your status: ");
    flexTable_1.setWidget(0, 0, lblThisIsYour);
   
View Full Code Here

  public ComplexDisclosurePanel(final String text, final boolean isOpen) {
    // Ick. GWT's DisclosurePanel won't let us subclass it, or do any
    // other modification of its header. We're stuck with injecting
    // into the DOM directly.
    //
    main = new DisclosurePanel(text);
    main.setOpen(isOpen);
    final Element headerParent;
    {
      final Element table = main.getElement();
      final Element tbody = DOM.getFirstChild(table);
      final Element tr1 = DOM.getChild(tbody, 0);
      final Element tr2 = DOM.getChild(tbody, 1);

      DOM.setElementProperty(DOM.getChild(tr1, 0), "width", "20px");
      DOM.setElementPropertyInt(DOM.getChild(tr2, 0), "colSpan", 2);
      headerParent = tr1;
    }

    header = new ComplexPanel() {
      {
        setElement(DOM.createTD());
        DOM.setInnerHTML(getElement(), " ");
        addStyleName(Gerrit.RESOURCES.css().complexHeader());
      }

      @Override
      public void add(Widget w) {
        add(w, getElement());
      }
    };

    initWidget(new ComplexPanel() {
      {
        final DisclosurePanel main = ComplexDisclosurePanel.this.main;
        setElement(main.getElement());
        getChildren().add(main);
        adopt(main);

        add(ComplexDisclosurePanel.this.header, headerParent);
      }
View Full Code Here

    table.setWidget(0, 0, title_name);
    table.setWidget(0, 1, txt_name);
    table.setWidget(1, 0, title_contact);
    table.setWidget(1, 1, txt_contact);
    // detail panel
    DisclosurePanel detailPanel = new DisclosurePanel(msg.detail());
    Grid detailGrid = new Grid(3, 2);
    // birthday
    HTML title_birthday = new HTML(msg.birthday());
    txt_birthday.setFormat(new DateBox.DefaultFormat(DateTimeFormat
        .getFormat("yyyy/MM/dd")));
    // sex
    HTML title_sex = new HTML(msg.sex());
    // ps
    HTML title_ps = new HTML(msg.ps());

    detailGrid.setWidget(0, 0, title_birthday);
    detailGrid.setWidget(0, 1, txt_birthday);
    detailGrid.setWidget(1, 0, title_sex);
    detailGrid.setWidget(1, 1, txt_sex);
    detailGrid.setWidget(2, 0, title_ps);
    detailGrid.setWidget(2, 1, txt_ps);
    detailPanel.setContent(detailGrid);
    table.setWidget(2, 0, detailPanel);
    table.getFlexCellFormatter().setColSpan(2, 0, 2);
    // button
    Button saveButton = new Button("save");
    saveButton.addClickHandler(new ClickHandler() {
View Full Code Here

    nextButton.setText(prefsUtils.getMsg("gadgetLabelNext"));

    final HomeViewMainPanel mainPanel = new HomeViewMainPanel();

    final HorizontalPanel addItemPanel = new HorizontalPanel();
    final DisclosurePanel addDisclosurePanel = new DisclosurePanel();
   
   
    final VerticalPanel bookMark = new VerticalPanel();
   
    final TextBox bookMarkUrl = new TextBox();
    bookMarkUrl.setValue("http://");
    bookMarkUrl.setWidth("200px");
    final TextBox bookMarkTitle = new TextBox();
    bookMarkTitle.setWidth("200px");
   
    bookMark.add(bookMarkUrl);
   
    bookMark.add(bookMarkTitle);
   

    final VerticalPanel bookMarkType = new VerticalPanel();
    final RadioButton typePrivate = new RadioButton("priorityFilter",
        prefsUtils.getMsg("gadgetLabelHigh"));
    final RadioButton typePublic = new RadioButton("priorityFilter",
        prefsUtils.getMsg("gadgetLabelMedium"));
   
    typePrivate.setValue(true);
   
    bookMarkType.add(typePrivate);
    bookMarkType.add(typePublic);
   

    final Button saveButton = new Button(
        prefsUtils.getMsg("gadgetLabelSave"));


    addItemPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM);
    addItemPanel.add(bookMark);
   
    //addItemPanel.add(new HTML(" "));
    //addItemPanel.add(bookMarkType);
 
    addItemPanel.add(new HTML(" "));
    addItemPanel.add(saveButton);

    addDisclosurePanel.add(addItemPanel);
   
    ActionLabel add = new ActionLabel(prefsUtils.getMsg("gadgetLabelAdd"));
    add.setTitle(prefsUtils.getMsg("gadgetLabelAdd"));
    add.setStyleName("gadglet-ActionLabel");
   
    addDisclosurePanel.setHeader(add);

    mainPanel.add(addDisclosurePanel);

    mainPanel.add(results);
View Full Code Here

   

    final HomeViewMainPanel mainPanel = new HomeViewMainPanel();

    final HorizontalPanel addItemPanel = new HorizontalPanel();
    final DisclosurePanel addDisclosurePanel = new DisclosurePanel();
   
   
    final VerticalPanel bookMark = new VerticalPanel();
   
    final TextArea DiscussionText = new TextArea();
    DiscussionText.setWidth("200px");
 
   
    bookMark.add(DiscussionText);
 

    final Button saveButton = new Button(
        prefsUtils.getMsg("gadgetLabelSave"));


    addItemPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM);
    addItemPanel.add(bookMark);
   
    //addItemPanel.add(new HTML(" "));
    //addItemPanel.add(bookMarkType);
 
    addItemPanel.add(new HTML(" "));
    addItemPanel.add(saveButton);

    addDisclosurePanel.add(addItemPanel);
   
    ActionLabel add = new ActionLabel(prefsUtils.getMsg("gadgetLabelAdd"));
    add.setTitle(prefsUtils.getMsg("gadgetLabelAdd"));
    add.setStyleName("gadglet-ActionLabel");
   
    addDisclosurePanel.setHeader(add);

    mainPanel.add(addDisclosurePanel);

    mainPanel.add(results);
View Full Code Here

    nextButton.setText(prefsUtils.getMsg("gadgetLabelNext"));
 
    final CanvasViewMainPanel mainPanel = new CanvasViewMainPanel();

    final HorizontalPanel addItemPanel = new HorizontalPanel();
    final DisclosurePanel addDisclosurePanel = new DisclosurePanel();
   
    ActionLabel add = new ActionLabel(prefsUtils.getMsg("gadgetLabelAdd"));
    add.setTitle(prefsUtils.getMsg("gadgetLabelAdd"));
 
   
    addDisclosurePanel.setHeader(add);
   
    final VerticalPanel bookMark = new VerticalPanel();
   
    final TextBox bookMarkUrl = new TextBox();
    bookMarkUrl.setValue("http://");
    bookMarkUrl.setWidth("400px");
    final TextBox bookMarkTitle = new TextBox();
    bookMarkTitle.setWidth("400px");
   
    bookMark.add(bookMarkUrl);
   
    bookMark.add(bookMarkTitle);
   

    final VerticalPanel bookMarkType = new VerticalPanel();
    final RadioButton typePrivate = new RadioButton("priorityFilter",
        prefsUtils.getMsg("gadgetLabelHigh"));
    final RadioButton typePublic = new RadioButton("priorityFilter",
        prefsUtils.getMsg("gadgetLabelMedium"));
   
    typePrivate.setValue(true);
   
    bookMarkType.add(typePrivate);
    bookMarkType.add(typePublic);
   

    final Button saveButton = new Button(
        prefsUtils.getMsg("gadgetLabelSave"));


    addItemPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM);
    addItemPanel.add(bookMark);

    addItemPanel.add(new HTML(" "));
    addItemPanel.add(saveButton);

    addDisclosurePanel.add(addItemPanel);


    mainPanel.add(addDisclosurePanel);

 
View Full Code Here

    nextButton.setText(prefsUtils.getMsg("gadgetLabelNext"));

    final HomeViewMainPanel mainPanel = new HomeViewMainPanel();

    final HorizontalPanel addItemPanel = new HorizontalPanel();
    final DisclosurePanel addDisclosurePanel = new DisclosurePanel(
        prefsUtils.getMsg("gadgetLabelAdd"));
    final TextArea message = new TextArea();

    final VerticalPanel priority = new VerticalPanel();
    final RadioButton highPriority = new RadioButton("priorityFilter",
        prefsUtils.getMsg("gadgetLabelHigh"));
    final RadioButton medPriority = new RadioButton("priorityFilter",
        prefsUtils.getMsg("gadgetLabelMedium"));
    final RadioButton lowPriority = new RadioButton("priorityFilter",
        prefsUtils.getMsg("gadgetLabelLow"));
    lowPriority.setValue(true);
    priority.add(highPriority);
    priority.add(medPriority);
    priority.add(lowPriority);

    final Button saveButton = new Button(
        prefsUtils.getMsg("gadgetLabelSave"));

    final PrioritySelection selection = new PrioritySelection(
        viewPersonalNotesQry, viewPersonalNotesRequest);
    addItemPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM);
    addItemPanel.add(message);
    addItemPanel.add(new HTML(" "));
    addItemPanel.add(priority);
    addItemPanel.add(new HTML(" "));
    addItemPanel.add(saveButton);

    addDisclosurePanel.add(addItemPanel);
    addDisclosurePanel.setHeader(new HTML(prefsUtils
        .getMsg("gadgetLabelAdd")));

    mainPanel.add(addDisclosurePanel);

    mainPanel.add(selection.getPanel());
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.DisclosurePanel$Imager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.