Package org.gwt.mosaic.ui.client.layout

Examples of org.gwt.mosaic.ui.client.layout.BoxLayout


    createSourcePanel(this);
    setupListener();
  }

  public SourceViewWidget(String[] sourceNames) {
    super(new BoxLayout(BoxLayout.Orientation.VERTICAL));

    LayoutPanel toolbar = new LayoutPanel(new BoxLayout(BoxLayout.Orientation.HORIZONTAL));
    final ListBox listBox = new ListBox();
    for (String s : sourceNames)
      listBox.addItem(s);
    toolbar.add(listBox, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
    toolbar.add(new Button("View", new ClickHandler() {
View Full Code Here


  private Map<String, Integer> name2Index = new HashMap<String, Integer>();
  private int stackCount = 0;

  public Menu()
  {
    super(new BoxLayout(BoxLayout.Orientation.VERTICAL));

    this.setWidgetSpacing(5);

    this.stack = new StackLayoutPanel();
    //stack.showStack(0); // todo: loading event
View Full Code Here

  private LayoutPanel layout;

  public WSWindowPanel() {
    windowPanel = new WindowPanel();
    windowPanel.setAnimationEnabled(true);
    layout = new LayoutPanel(new BoxLayout(BoxLayout.Orientation.VERTICAL));
    layout.setPadding(5);
    windowPanel.setWidget(layout);
  }
View Full Code Here

  private String name;

  private List<ClickHandler> clickHandlers;

  public WSLaunchButton(ImageResource resource, String name) {
    super(new BoxLayout(BoxLayout.Orientation.VERTICAL));


    this.name = name;

    sinkEvents(Event.MOUSEEVENTS);
View Full Code Here

  private SourcePanel formatted;
  private MessageBus bus = ErraiBus.get();

  public SourceViewWidget(boolean hasInput)
  {
    super(new BoxLayout(BoxLayout.Orientation.VERTICAL));

    if(hasInput)
    {
      final TextBox sourceName = new TextBox();
View Full Code Here

    setupListener();
  }

  public SourceViewWidget(String[] sourceNames)
  {
    super(new BoxLayout(BoxLayout.Orientation.VERTICAL));

    LayoutPanel toolbar = new LayoutPanel(new BoxLayout(BoxLayout.Orientation.HORIZONTAL));
    final ListBox listBox = new ListBox();
    for(String s : sourceNames)
      listBox.addItem(s);
    toolbar.add(listBox, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
    toolbar.add(new Button("View", new ClickHandler()
View Full Code Here

    /**
     * Create content for layout.
     */
    private void createLayoutContent(MosaicPanel layoutPanel) {

        layoutPanel.setLayout(new BoxLayout(BoxLayout.Orientation.VERTICAL));
        layoutPanel.setPadding(10);


        Widget form = createForm();

        final Button submit = new Button("Login");
        submit.addClickHandler(new ClickHandler()
        {

            public void onClick(ClickEvent clickEvent)
            {
                engageLogin();
            }
        });


        HTML html = new HTML("Version: " + Version.VERSION);
        html.setStyleName("bpm-login-info");

        MosaicPanel btnPanel = new MosaicPanel(new BoxLayout());
        btnPanel.add(html, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
        btnPanel.add(submit);

        layoutPanel.add(messagePanel, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
        layoutPanel.add(form, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));
View Full Code Here

    }

    private Widget createForm()
    {
        MosaicPanel panel = new MosaicPanel(new BoxLayout(BoxLayout.Orientation.VERTICAL));
        panel.setPadding(0);

        MosaicPanel box1 = new MosaicPanel(new BoxLayout());
        box1.setPadding(0);       
        MosaicPanel box2 = new MosaicPanel(new BoxLayout());
        box2.setPadding(0);

        usernameInput = new TextBox();
        passwordInput = new PasswordTextBox();
View Full Code Here

    public void initialize()
    {
        if(!isInitialized)
        {
            instanceList = new MosaicPanel( new BoxLayout(BoxLayout.Orientation.VERTICAL));
            instanceList.setPadding(0);
            instanceList.setWidgetSpacing(0);

            listBox =
                    new ListBox<ProcessInstanceRef>(
View Full Code Here

    private void createSignalWindow()
    {
        signalTextBoxes = new ArrayList<TextBox>();

        MosaicPanel layout = new MosaicPanel(new BoxLayout(BoxLayout.Orientation.VERTICAL));
        layout.setStyleName("bpm-window-layout");
        layout.setPadding(5);
        // toolbar
        final MosaicPanel toolBox = new MosaicPanel();

        toolBox.setPadding(0);
        toolBox.setWidgetSpacing(5);
        toolBox.setLayout(new BoxLayout(BoxLayout.Orientation.HORIZONTAL));

        final ToolBar toolBar = new ToolBar();
        toolBar.add(
                new Button("Signal", new ClickHandler() {
View Full Code Here

TOP

Related Classes of org.gwt.mosaic.ui.client.layout.BoxLayout

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.