List of usage examples for com.vaadin.ui.themes ValoTheme BUTTON_LINK
String BUTTON_LINK
To view the source code for com.vaadin.ui.themes ValoTheme BUTTON_LINK.
Click Source Link
From source file:com.hybridbpm.ui.component.bpm.designer.ParametersLayout.java
License:Apache License
public void initUI(boolean editable) { removeAllComponents();//from w w w .ja v a 2 s. c o m btnAdd.setCaption(("Add parameter")); btnAdd.setStyleName(ValoTheme.BUTTON_LINK); btnAdd.setIcon(FontAwesome.PLUS_CIRCLE); setMargin(true); setSpacing(true); setWidth(100, Sizeable.Unit.PERCENTAGE); for (FieldModel fieldModel : formModel.getParameters()) { FieldForm fieldForm = new FieldForm(FieldForm.CLASS_LIST_TYPE.BOTH); fieldForm.setFieldModel(fieldModel); fieldForm.setEnabled(editable); fieldForm.setReadOnly(!editable); addComponent(fieldForm); } addComponent(btnAdd); setComponentAlignment(btnAdd, Alignment.MIDDLE_RIGHT); btnAdd.setVisible(editable); }
From source file:com.hybridbpm.ui.component.bpm.designer.ProcessModelLayout.java
License:Apache License
private void prepareButtonsBars() { // element button bar btnEdit.addStyleName(ValoTheme.BUTTON_LINK); btnEdit.addStyleName(ValoTheme.BUTTON_SMALL); btnEdit.addStyleName("edit-button"); btnEdit.setIcon(FontAwesome.PENCIL_SQUARE); btnDelete.addStyleName(ValoTheme.BUTTON_LINK); btnDelete.addStyleName(ValoTheme.BUTTON_SMALL); btnDelete.addStyleName("edit-button"); btnDelete.setIcon(FontAwesome.TIMES); elementButtonBar.addComponent(btnEdit); elementButtonBar.addComponent(btnDelete); elementButtonBar.setId("button-bar"); // width button bar btnRight.setIcon(FontAwesome.ARROW_CIRCLE_RIGHT); btnRight.addStyleName(ValoTheme.BUTTON_LINK); btnLeft.setIcon(FontAwesome.ARROW_CIRCLE_LEFT); btnLeft.addStyleName(ValoTheme.BUTTON_LINK); widthButtonBar.addComponent(btnRight); widthButtonBar.addComponent(btnLeft); widthButtonBar.addStyleName("width-button-bar"); widthButtonBar.setWidthUndefined();// w ww .j a va 2s . co m addComponent(widthButtonBar); // height button bar btnUp.setIcon(FontAwesome.ARROW_CIRCLE_UP); btnUp.addStyleName(ValoTheme.BUTTON_LINK); btnDown.setIcon(FontAwesome.ARROW_CIRCLE_DOWN); btnDown.addStyleName(ValoTheme.BUTTON_LINK); heightButtonBar.addComponent(btnUp); heightButtonBar.addComponent(btnDown); heightButtonBar.addStyleName("height-button-bar"); addComponent(heightButtonBar); }
From source file:com.hybridbpm.ui.component.bpm.designer.VariableEditorLayout.java
License:Apache License
public void initUI() { removeAllComponents();/*from w w w.j a va 2 s. c o m*/ btnAdd.setCaption(("Add variable")); btnAdd.setStyleName(ValoTheme.BUTTON_LINK); btnAdd.setIcon(FontAwesome.PLUS_CIRCLE); setMargin(true); setSpacing(true); setWidth(100, Sizeable.Unit.PERCENTAGE); for (FieldModel fieldModel : processModel.getVariableModels()) { FieldForm fieldForm = new FieldForm(FieldForm.CLASS_LIST_TYPE.COMPLEX_DATA); fieldForm.setFieldModel(fieldModel); addComponent(fieldForm); } addComponent(btnAdd); setComponentAlignment(btnAdd, Alignment.MIDDLE_RIGHT); }
From source file:com.hybridbpm.ui.component.bpm.OpenCaseColumnGenerator.java
License:Apache License
@Override public Object generateCell(Table source, Object itemId, Object columnId) { Case case1 = (Case) itemId; String title = (String) source.getItem(itemId).getItemProperty("caseTitle").getValue(); Button button = new Button(title, clickListener); button.setData(case1); button.addStyleName(ValoTheme.BUTTON_LINK); button.setDescription("Open case"); return button; }
From source file:com.hybridbpm.ui.component.bpm.OpenTaskColumnGenerator.java
License:Apache License
@Override public Object generateCell(Table source, Object itemId, Object columnId) { Task task = (Task) itemId;/* w ww.ja v a 2 s.co m*/ Button button = new Button(task.getTaskTitle(), clickListener); button.setData(task); button.addStyleName(ValoTheme.BUTTON_LINK); button.setDescription("Open task"); return button; }
From source file:com.hybridbpm.ui.component.bpm.StartProcessColumnGenerator.java
License:Apache License
@Override public Object generateCell(Table source, Object itemId, Object columnId) { StartProcess spd = (StartProcess) itemId; Button button = new Button(spd.getProcessModel().getTitle().getValue(HybridbpmUI.getCurrent().getLocale()), clickListener);/* w w w .j av a2 s.c om*/ button.setData(spd); button.addStyleName(ValoTheme.BUTTON_LINK); button.setIcon(FontAwesome.valueOf(spd.getIcon())); button.setDescription("Start case"); return button; }
From source file:com.hybridbpm.ui.component.bpm.window.TransitionConfigureWindow.java
License:Apache License
public void initUI(ProcessModelLayout processModelLayout) { this.processModelLayout = processModelLayout; nameTextField.setCaption(("Name")); nameTextField.setWidth(300, Unit.PIXELS); nameTextField.setNullRepresentation(""); expressionTextField.setCaption(("Condition Expression")); expressionTextField.setWidth(100, Unit.PERCENTAGE); expressionTextField.setHeight(50, Unit.PIXELS); expressionTextField.setMode(AceMode.groovy); expressionTextField.setTheme(AceTheme.chrome); expressionTextField.setShowGutter(false); SuggestionExtension extension = new SuggestionExtension( new VariableSuggester(this.processModelLayout.getProcessModel())); extension.setSuggestOnDot(false);//from ww w .ja v a 2s . com extension.extend(expressionTextField); defaultCheckBox.setCaption(("Default Transition")); yTextField.setCaption(("Y")); yTextField.setWidth(100, Unit.PIXELS); yTextField.setNullRepresentation(""); yTextField.setVisible(false); xTextField.setCaption(("Y")); xTextField.setWidth(100, Unit.PIXELS); xTextField.setNullRepresentation(""); xTextField.setVisible(false); // configurationLayout.setCaption("Transition properties"); // configurationLayout.addStyleName("process-config"); configurationLayout.setMargin(new MarginInfo(true, true, true, true)); configurationLayout.setSpacing(true); configurationLayout.addComponent(nameTextField, 0, 0, 0, 0); configurationLayout.addComponent(defaultCheckBox, 1, 0, 1, 0); configurationLayout.setComponentAlignment(defaultCheckBox, Alignment.BOTTOM_RIGHT); configurationLayout.addComponent(expressionTextField, 0, 1, 1, 1); configurationLayout.addComponent(xTextField, 0, 2, 0, 2); configurationLayout.addComponent(yTextField, 1, 2, 1, 2); configurationLayout.setColumnExpandRatio(0, 1f); configurationLayout.setColumnExpandRatio(1, 1f); configurationLayout.setColumnExpandRatio(2, 1f); fieldGroup.setBuffered(true); //important fieldGroup.bind(xTextField, "x"); fieldGroup.bind(yTextField, "y"); fieldGroup.bind(nameTextField, "name"); fieldGroup.bind(expressionTextField, "expression"); fieldGroup.bind(defaultCheckBox, "defaultTransition"); fieldGroup.setItemDataSource(processModelLayout.getActiveElement().getTransitionModel()); toolbar.setSpacing(true); toolbar.setWidth(100, Unit.PERCENTAGE); toolbar.addStyleName("toolbar"); btnShowMore.setCaption(("Show more")); btnShowMore.setStyleName(ValoTheme.BUTTON_LINK); toolbar.addComponent(btnShowMore); toolbar.setComponentAlignment(btnShowMore, Alignment.MIDDLE_LEFT); toolbar.setExpandRatio(btnShowMore, 1f); btnOk.addStyleName(ValoTheme.BUTTON_PRIMARY); btnOk.setCaption(("OK")); toolbar.addComponent(btnOk); toolbar.setComponentAlignment(btnOk, Alignment.MIDDLE_RIGHT); btnClose.setCaption(("Close")); toolbar.addComponent(btnClose); toolbar.setComponentAlignment(btnClose, Alignment.MIDDLE_RIGHT); layout.addStyleName("process-config-layout"); layout.setSpacing(true); layout.setMargin(true); layout.addComponent(configurationLayout); layout.addComponent(toolbar); layout.setComponentAlignment(toolbar, Alignment.MIDDLE_RIGHT); setCaption("Transition"); center(); setResizable(false); // setClosable(false); setModal(true); addStyleName("no-vertical-drag-hints"); addStyleName("no-horizontal-drag-hints"); addStyleName("process-config-window"); setContent(layout); }
From source file:com.hybridbpm.ui.component.dashboard.panel.AddColumnButton.java
License:Apache License
public AddColumnButton(Button.ClickListener clickListener) { addClickListener(clickListener);/*from w w w. j av a 2 s .c o m*/ setIcon(FontAwesome.PLUS_CIRCLE); setStyleName(ValoTheme.BUTTON_LINK); addStyleName(ValoTheme.BUTTON_TINY); setDescription("Add column"); }
From source file:com.hybridbpm.ui.component.dashboard.panel.AddRowButton.java
License:Apache License
public AddRowButton(Button.ClickListener clickListener) { addClickListener(clickListener);/* w ww. ja v a 2 s.c om*/ setIcon(FontAwesome.PLUS_CIRCLE); setStyleName(ValoTheme.BUTTON_LINK); addStyleName(ValoTheme.BUTTON_TINY); setDescription("Add row"); }
From source file:com.hybridbpm.ui.component.development.DataEditor.java
License:Apache License
private void prepareModeler() { btnAdd.setCaption("Add field"); btnAdd.setIcon(FontAwesome.PLUS_CIRCLE); btnAdd.setStyleName(ValoTheme.BUTTON_LINK); btnAdd.addStyleName(ValoTheme.BUTTON_SMALL); modelerLayout.setMargin(true);/* w w w . jav a2s .c o m*/ modelerLayout.setSpacing(true); modelerLayout.setWidth(100, Sizeable.Unit.PERCENTAGE); for (FieldModel fieldModel : dataModel.getFields()) { FieldForm fieldForm = new FieldForm(FieldForm.CLASS_LIST_TYPE.BOTH); fieldForm.setFieldModel(fieldModel); modelerLayout.addComponent(fieldForm); } modelerLayout.addComponent(btnAdd); modelerLayout.setComponentAlignment(btnAdd, Alignment.MIDDLE_RIGHT); }