List of usage examples for com.vaadin.ui.themes ValoTheme TABSHEET_FRAMED
String TABSHEET_FRAMED
To view the source code for com.vaadin.ui.themes ValoTheme TABSHEET_FRAMED.
Click Source Link
From source file:steps.ConditionInstanceStep.java
License:Open Source License
/** * Create a new Condition Step for the wizard * /*w w w . j a v a 2 s . c o m*/ * @param options Set of different conditions available e.g. different species * @param optionName Title of the options selection e.g. Species * @param stepName Title of this step e.g. Extraction Conditions */ public ConditionInstanceStep(Set<String> options, String optionName, String stepName) { main = new VerticalLayout(); main.setSpacing(true); main.setMargin(true); instances = new TabSheet(); instances.setStyleName(ValoTheme.TABSHEET_FRAMED); main.addComponent(instances); preview = new Table(); preview.addContainerProperty("Factors", String.class, null); preview.addContainerProperty("Samples", TextField.class, null); preview.setStyleName(Styles.tableTheme); VerticalLayout frame = new VerticalLayout(); frame.setCaption("Preview of Combinations"); frame.addComponent(preview); previewFrame = new CustomVisibilityComponent(frame); previewFrame.setVisible(false); main.addComponent(Styles.questionize(previewFrame, "This table shows a preview of the number and type of samples " + "that will be created in the next step. You can change the number of samples for each " + "group of samples. For example, if one variable combination is not in the experiment at all, set it to 0.", "Preview")); this.options = options; this.optionName = optionName; this.stepName = stepName; factorInstances = new ArrayList<ConditionPropertyPanel>(); optionInstances = new ArrayList<FactorOptionBox>(); permutations = new LinkedHashMap<Object, Integer>(); }
From source file:steps.PoolingStep.java
License:Open Source License
public PoolingStep(Steps poolStep) { instances = new TabSheet(); instances.setStyleName(ValoTheme.TABSHEET_FRAMED); poolings = new ArrayList<DragDropPoolComponent>(); this.type = poolStep; main = new VerticalLayout(); main.setSpacing(true);/*from w w w. j a v a 2 s .com*/ main.setMargin(true); pooling = new DragDropPoolComponent(getPoolPrefix(poolStep)); main.addComponent(instances); }
From source file:uicomponents.DragDropPoolComponent.java
License:Open Source License
public DragDropPoolComponent(String poolingPrefix) { this.name = poolingPrefix; usedTimes = new HashMap<Integer, Integer>(); left = new VerticalLayout(); left.setSpacing(true);/*w w w.j av a2 s . co m*/ left.setWidth("500px"); tableLayout = new TabSheet(); tableLayout.setWidth("100%"); tableLayout.setStyleName(ValoTheme.TABSHEET_FRAMED); tables = new ArrayList<PoolingTable>(); add = new Button("Add Pool"); remove = new Button("Remove Last Pool"); initButtons(); addComponent(left); left.addComponent(Styles.questionize(tableLayout, "Here you can add pools and fill them with the samples " + "from earlier steps (found on the right). One sample can be in multiple pools.", "Target Pools")); left.addComponent(add); left.addComponent(remove); samples = new TabSheet(); initSelectionTables(); addComponent(Styles.questionize(samples, "These are the samples you prepared in the earlier steps. For convenience they are separated in unused samples " + "and samples that are already in at least one pool.", "Target Pools")); }
From source file:views.AdminView.java
License:Open Source License
public AdminView(IOpenBisClient openbis, DBVocabularies vocabularies, OpenbisCreationController creationController, String user) { this.user = user; this.registrator = creationController; this.openbis = openbis; tabs = new TabSheet(); tabs.setStyleName(ValoTheme.TABSHEET_FRAMED); VerticalLayout spaceView = new VerticalLayout(); spaceView.setSpacing(true);//from w w w . ja v a 2s. co m spaceView.setMargin(true); space = new TextField("Space"); space.setWidth("300px"); space.setStyleName(Styles.fieldTheme); users = new TextArea("Users"); users.setStyleName(Styles.areaTheme); users.setWidth("100px"); users.setHeight("100px"); createSpace = new Button("Create Space"); spaceView.addComponent(space); spaceView.addComponent(Styles.questionize(users, "Users must exist in openBIS, otherwise the space cannot be created!", "Add Users to Space")); spaceView.addComponent(createSpace); tabs.addTab(spaceView, "Create Space"); // METADATA // metadataUpload = new MetadataUploadView(openbis, vocabularies); // tabs.addTab(metadataUpload, "Update Metadata"); // MULTISCALE addMultiScale = new MCCView(openbis, creationController, user); addMultiScale.setSpacing(true); addMultiScale.setMargin(true); tabs.addTab(addMultiScale, "Add Multiscale Samples"); addComponent(tabs); initButtons(); }
From source file:views.WizardBarcodeView.java
License:Open Source License
/** * Creates a new component view for barcode creation * /*from w ww .j a v a 2 s.c o m*/ * @param spaces List of available openBIS spaces * @param isAdmin * @param gen */ public WizardBarcodeView(List<String> spaces, boolean isAdmin, SampleFilterGenerator gen) { VerticalLayout left = new VerticalLayout(); VerticalLayout right = new VerticalLayout(); initSampleTable(gen); right.addComponent(sampleTable); left.setSpacing(true); left.setMargin(true); right.setSpacing(true); right.setMargin(true); SampleToBarcodeFieldTranslator translator = new SampleToBarcodeFieldTranslator(); this.isAdmin = isAdmin; spaceBox = new ComboBox("Project", spaces); spaceBox.setStyleName(Styles.boxTheme); spaceBox.setFilteringMode(FilteringMode.CONTAINS); spaceBox.setNullSelectionAllowed(false); spaceBox.setImmediate(true); projectBox = new ComboBox("Sub-Project"); projectBox.setStyleName(Styles.boxTheme); projectBox.setEnabled(false); projectBox.setImmediate(true); projectBox.setNullSelectionAllowed(false); left.addComponent(Styles.questionize(spaceBox, "Name of the project", "Project Name")); left.addComponent(Styles.questionize(projectBox, "QBiC project code and project name", "Sub-Project")); initExperimentTable(); left.addComponent(Styles.questionize(experimentTable, "This table gives an overview of tissue samples and extracted materials" + " for which barcodes can be printed. You can select one or multiple rows.", "Sample Overview")); sortby = new OptionGroup("Sort Barcode Sheet/Stickers By"); sortby.addItems(SortBy.values()); sortby.setValue(SortBy.BARCODE_ID); left.addComponent(sortby); sheetPreview = new SheetOptionComponent(translator); tubePreview = new BarcodePreviewComponent(translator); tabs = new TabSheet(); tabs.setStyleName(ValoTheme.TABSHEET_FRAMED); tabs.addTab(sheetPreview, "Sample Sheet"); tabs.addTab(tubePreview, "Barcode Stickers"); tabsTab = new CustomVisibilityComponent(tabs); tabsTab.setVisible(false); left.addComponent(Styles.questionize(tabsTab, "Prepare an A4 sample sheet or barcodes for sample tubes.", "Barcode Preparation")); info = new Label(); bar = new ProgressBar(); bar.setVisible(false); left.addComponent(info); left.addComponent(bar); prepareBarcodes = new Button("Prepare Barcodes"); prepareBarcodes.setEnabled(false); left.addComponent(prepareBarcodes); printerSelection = new ComboBox("Printer"); printerSelection.setVisible(isAdmin); printerSelection.setWidth("300px"); printerSelection.setStyleName(Styles.boxTheme); printerSelection.setVisible(false); printerSelection.setNullSelectionAllowed(false); left.addComponent(printerSelection); printTubeCodes = new Button("Print Barcodes"); printTubeCodes.setVisible(isAdmin); printTubeCodes.setEnabled(false); left.addComponent(printTubeCodes); download = new Button("Download"); download.setEnabled(false); left.addComponent(download); addComponent(left); addComponent(right); disablePreview(); }