com.vaadin.ui.AbsoluteLayout Java Examples
The following examples show how to use
com.vaadin.ui.AbsoluteLayout.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: UserListWindow.java From usergrid with Apache License 2.0 | 6 votes |
private void addList( AbsoluteLayout mainLayout ) { ListSelect list = new ListSelect(); list.setWidth( "100%" ); list.setHeight( "420px" ); list.setNullSelectionAllowed( false ); list.setImmediate( true ); list.addValueChangeListener( new Property.ValueChangeListener() { @Override public void valueChange( Property.ValueChangeEvent event ) { Object value = event.getProperty().getValue(); if ( value != null ) { close(); selectedUser = ( String ) value; showUser( ( String ) value ); } } }); loadData( list ); mainLayout.addComponent( list, "left: 0px; top: 0px;" ); }
Example #2
Source File: Login.java From usergrid with Apache License 2.0 | 5 votes |
private AbsoluteLayout addButtonLayout() { AbsoluteLayout layout = new AbsoluteLayout(); layout.setWidth( "100%" ); layout.setHeight( "50px" ); layout.addComponent( loginButton, "left: 0px; top: 20px;" ); loginButton.addClickListener( new Button.ClickListener() { public void buttonClick( Button.ClickEvent event ) { loginButtonClicked(); } } ); return layout; }
Example #3
Source File: UserListWindow.java From usergrid with Apache License 2.0 | 5 votes |
private void addCreateButton(AbsoluteLayout mainLayout) { Button createButton = new Button( "Create" ); createButton.addClickListener( new Button.ClickListener() { public void buttonClick( Button.ClickEvent event ) { close(); setSelectedUser( null ); showUser( null ); } } ); mainLayout.addComponent( createButton, "left: 10px; top: 425px;" ); }
Example #4
Source File: PopupWindow.java From usergrid with Apache License 2.0 | 5 votes |
private void addCloseButton(AbsoluteLayout mainLayout) { Button closeButton = new Button( "Close" ); closeButton.addClickListener( new Button.ClickListener() { public void buttonClick( Button.ClickEvent event ) { close(); } } ); mainLayout.addComponent( closeButton, "left: 220px; top: 425px;" ); }
Example #5
Source File: PopupWindow.java From usergrid with Apache License 2.0 | 5 votes |
private AbsoluteLayout addMainLayout() { AbsoluteLayout absoluteLayout = new AbsoluteLayout(); absoluteLayout.setSizeFull(); setContent( absoluteLayout ); return absoluteLayout; }
Example #6
Source File: DefaultAbsoluteLayoutDropHandler.java From cuba with Apache License 2.0 | 4 votes |
@Override public Class<AbsoluteLayout> getTargetLayoutType() { return AbsoluteLayout.class; }
Example #7
Source File: Simulator.java From XACML with MIT License | 4 votes |
@AutoGenerated private void buildMainLayout() { // the main layout and components will be created here mainLayout = new AbsoluteLayout(); }
Example #8
Source File: OverviewChartLayout.java From usergrid with Apache License 2.0 | 4 votes |
@Override protected void nextChartButtonClicked() { AbsoluteLayout layout = new RunsChartLayout( getParams(), tabSheetManager ); tabSheetManager.addTab( layout, "Runs Chart" ); }
Example #9
Source File: RunsChartLayout.java From usergrid with Apache License 2.0 | 4 votes |
@Override protected void nextChartButtonClicked() { AbsoluteLayout layout = new IterationsChartLayout( getParams() ); tabSheetManager.addTab( layout, "Iterations Chart" ); }
Example #10
Source File: TabSheetManager.java From usergrid with Apache License 2.0 | 4 votes |
public void addTab( AbsoluteLayout layout, String caption ) { removeAll(); tabSheet.addTab( layout, caption ); }
Example #11
Source File: MainView.java From usergrid with Apache License 2.0 | 4 votes |
@Override public void onModuleSelect( String moduleId ) { AbsoluteLayout layout = new OverviewChartLayout( new Params(moduleId), tabSheetManager ); tabSheetManager.addTab( layout, "Overview Chart" ); }
Example #12
Source File: UserListWindow.java From usergrid with Apache License 2.0 | 4 votes |
@Override protected void addItems( AbsoluteLayout mainLayout ) { addList( mainLayout ); addCreateButton( mainLayout ); }
Example #13
Source File: PopupWindow.java From usergrid with Apache License 2.0 | 4 votes |
private void addItems() { AbsoluteLayout mainLayout = addMainLayout(); addCloseButton( mainLayout ); addItems(mainLayout); }
Example #14
Source File: PopupWindow.java From usergrid with Apache License 2.0 | 2 votes |
protected void addItems(AbsoluteLayout absoluteLayout) { }