Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
import com.gencprogramcilar.MyUI;
import com.vaadin.ui.*;
public class Admin extends VerticalLayout {
private Panel panel;
private VerticalLayout buttonLayout;
private FormLayout formLayout;
private HorizontalLayout horizontalLayout;
private Button btnAddRestaurant;
private Button btnListMember;
private Button btnSignOut;
private TextField txtAddRestaurant;
private TextField txtPassword;
private Button btnSave;
private VerticalLayout tableLayout;
private Table tableMember;
private Button btnDeleteMember;
public Admin() {
buildLayout();
}
private void buildLayout(){
panel = new Panel();
panel.setWidth("50%");
this.addComponent(panel);
this.setComponentAlignment(panel,Alignment.MIDDLE_CENTER);
horizontalLayout = new HorizontalLayout();
panel.setContent(horizontalLayout);
buttonLayout = new VerticalLayout();
horizontalLayout.addComponent(buttonLayout);
buttonLayout.setSpacing(true);
buttonLayout.setMargin(true);
btnAddRestaurant = new Button("ADD RESTAURANT");
buttonLayout.addComponent(btnAddRestaurant);
btnAddRestaurant.setSizeFull();
btnAddRestaurant.addClickListener(new Button.ClickListener() {
@Override
public void buttonClick(Button.ClickEvent event) {
//restoran ekle formu
formLayout.setVisible(true);
tableLayout.setVisible(false);
btnSave.setVisible(true);
}
});
btnListMember = new Button("LIST MEMBER");
buttonLayout.addComponent(btnListMember);
btnListMember.setSizeFull();
btnListMember.addClickListener(new Button.ClickListener() {
@Override
public void buttonClick(Button.ClickEvent event) {
//üye listesi
formLayout.setVisible(false);
tableLayout.setVisible(true);
}
});
btnSignOut = new Button("SIGN OUT");
buttonLayout.addComponent(btnSignOut);
btnSignOut.addClickListener(new Button.ClickListener() {
@Override
public void buttonClick(Button.ClickEvent event) {
//sign out
getUI().getNavigator().navigateTo(MyUI.registerView);
}
});
formLayout = new FormLayout();
horizontalLayout.addComponent(formLayout);
formLayout.setVisible(false);
txtAddRestaurant = new TextField("Restoran Ekle:");
formLayout.addComponent(txtAddRestaurant);
txtPassword = new TextField("Şifre Belirle:");
formLayout.addComponent(txtPassword);
btnSave = new Button("KAYDET");
formLayout.addComponent(btnSave);
btnSave.addClickListener(new Button.ClickListener() {
@Override
public void buttonClick(Button.ClickEvent event) {
formLayout.setVisible(false);
btnSave.setVisible(false);
}
});
tableLayout = new VerticalLayout();
horizontalLayout.addComponent(tableLayout);
tableMember = new Table("Üyeler:");
tableLayout.addComponent(tableMember);
tableMember.addContainerProperty("Üye Adı", String.class, null);
btnDeleteMember = new Button("Üye Sil");
tableLayout.addComponent(btnDeleteMember);
tableLayout.setVisible(false);
}
}
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team