当前位置: 首页>>代码示例>>Java>>正文


Java Design类代码示例

本文整理汇总了Java中com.vaadin.ui.declarative.Design的典型用法代码示例。如果您正苦于以下问题:Java Design类的具体用法?Java Design怎么用?Java Design使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Design类属于com.vaadin.ui.declarative包,在下文中一共展示了Design类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: DashboardView

import com.vaadin.ui.declarative.Design; //导入依赖的package包/类
public DashboardView(ViewDefinition vd) {
    this.viewDefinition = HybridbpmUI.getDashboardAPI().getViewDefinitionById(vd.getId().toString());
    Design.read(this);
    Responsive.makeResponsive(this);

    btnAdd.addClickListener(this);
    btnAdd.setIcon(FontAwesome.PLUS_CIRCLE);
    btnAdd.setCaption("Add tab");

    btnEdit.addClickListener(this);
    btnEdit.setIcon(FontAwesome.EDIT);
    btnEdit.setCaption("Edit view");

    btnDelete.addClickListener(this);
    btnDelete.setIcon(FontAwesome.TIMES_CIRCLE);
    btnDelete.setCaption("Delete view");

    createTabs();
    checkDeveloperMode();

    tabSheet.addSelectedTabChangeListener(this);
    tabSheet.setCloseHandler(this);
}
 
开发者ID:hybridbpm,项目名称:hybridbpm,代码行数:24,代码来源:DashboardView.java

示例2: GroupLayout

import com.vaadin.ui.declarative.Design; //导入依赖的package包/类
public GroupLayout(Group group) {
    Design.read(this);
    if (group == null) {
        group = new Group();
        group.setTitle(new Translated(""));
        group.setDescription(new Translated(""));
    }
    binder.setItemDataSource(group);
    binder.bind(nameTextField, "name");
    binder.bind(titleTextField, "title");
    binder.bind(descriptionTextField, "description");
    binder.setBuffered(true);

    if (group.getName() != null) {
        nameTextField.setReadOnly(true);
    }
}
 
开发者ID:hybridbpm,项目名称:hybridbpm,代码行数:18,代码来源:GroupLayout.java

示例3: RoleLayout

import com.vaadin.ui.declarative.Design; //导入依赖的package包/类
public RoleLayout(Role role) {
    Design.read(this);
    if (role == null) {
        role = new Role();
        role.setTitle(new Translated(""));
        role.setDescription(new Translated(""));
    }
    binder.setItemDataSource(role);
    binder.bind(nameTextField, "name");
    binder.bind(titleTextField, "title");
    binder.bind(descriptionTextField, "description");
    binder.setBuffered(true);

    if (role.getName() != null) {
        nameTextField.setReadOnly(true);
    }
}
 
开发者ID:hybridbpm,项目名称:hybridbpm,代码行数:18,代码来源:RoleLayout.java

示例4: SystemParameterLayout

import com.vaadin.ui.declarative.Design; //导入依赖的package包/类
public SystemParameterLayout(Parameter parameterInstance) {
    Design.read(this);
    this.parameterInstance = parameterInstance;
    if (this.parameterInstance == null) {
        this.parameterInstance = new Parameter();
    }

    for (Parameter.PARAM_TYPE type : Parameter.PARAM_TYPE.values()) {
        Item item = typeComboBox.addItem(type);
        typeComboBox.setItemCaption(type, type.name());
    }
    typeComboBox.setItemCaptionMode(AbstractSelect.ItemCaptionMode.EXPLICIT);

    binder.setItemDataSource(this.parameterInstance);
    binder.bind(typeComboBox, "type");
    binder.bind(name, "name");
    binder.bind(value, "value");
    binder.setBuffered(true);
}
 
开发者ID:hybridbpm,项目名称:hybridbpm,代码行数:20,代码来源:SystemParameterLayout.java

示例5: DocumentPermissionLayout

import com.vaadin.ui.declarative.Design; //导入依赖的package包/类
public DocumentPermissionLayout(Document document, Permission permission) {
    Design.read(this);
    comboBoxRole.setCaption(Translate.getMessage("comboBoxRole"));
    permissionsField.setCaption(Translate.getMessage("permissionsField"));
    
    this.document = document;
    permission = permission == null ? new Permission() : permission;
    
    permissionsField.setPermissionsClass(Document.class);
    comboBoxRole.addContainerProperty(NAME, String.class, null);
    comboBoxRole.setItemCaptionMode(AbstractSelect.ItemCaptionMode.PROPERTY);
    comboBoxRole.setItemCaptionPropertyId(NAME);
    for (Role instance : HybridbpmUI.getAccessAPI().getAllRoles()) {
        Item item = comboBoxRole.addItem(instance);
        item.getItemProperty(NAME).setValue(instance.getName());
    }
    comboBoxRole.setNullSelectionAllowed(false);
    
    binder.setItemDataSource(permission);
    binder.bind(permissionsField, "permissions");
    binder.bind(comboBoxRole, "out");
    binder.setBuffered(true);

    
}
 
开发者ID:hybridbpm,项目名称:hybridbpm,代码行数:26,代码来源:DocumentPermissionLayout.java

示例6: AccessView

import com.vaadin.ui.declarative.Design; //导入依赖的package包/类
public AccessView() {
    Design.read(this);
    Responsive.makeResponsive(panelLayout);
    tabSheet.addTab(usersLayout, "Users", FontAwesome.USER);
    tabSheet.addTab(userGroupsLayout, "User Group", FontAwesome.SITEMAP);
    tabSheet.addTab(groupsLayout, "Group", FontAwesome.USERS);
    tabSheet.addTab(roleGroupsLayout, "Group Role", FontAwesome.SITEMAP);
    tabSheet.addTab(rolesLayout, "Roles", FontAwesome.USERS);
    
    tabSheet.addSelectedTabChangeListener(this);
    usersLayout.refreshTable();
}
 
开发者ID:hybridbpm,项目名称:hybridbpm,代码行数:13,代码来源:AccessView.java

示例7: TaskListView

import com.vaadin.ui.declarative.Design; //导入依赖的package包/类
public TaskListView() {
    Design.read(this);
    Responsive.makeResponsive(panelLayout);
    tabSheet.setSizeFull();
    tabSheet.addTab(todoListLayout, Translate.getMessage("todo"), FontAwesome.ENVELOPE);
    tabSheet.addTab(doneListLayout, Translate.getMessage("done"), FontAwesome.ARCHIVE);
    tabSheet.addSelectedTabChangeListener(this);
    tabSheet.setCloseHandler(this);
    todoListLayout.refreshTable();
    todoListLayout.setTabSheet(tabSheet);
    doneListLayout.setTabSheet(tabSheet);
}
 
开发者ID:hybridbpm,项目名称:hybridbpm,代码行数:13,代码来源:TaskListView.java

示例8: CalendarView

import com.vaadin.ui.declarative.Design; //导入依赖的package包/类
public CalendarView() {
    Design.read(this);
    Responsive.makeResponsive(panelLayout);
    tabSheet.setSizeFull();
    tabSheet.addTab(calendarLayout, "Calendar", FontAwesome.CALENDAR);
    tabSheet.addSelectedTabChangeListener(this);
    tabSheet.setCloseHandler(this);
    calendarLayout.refreshData();
    calendarLayout.setTabSheet(tabSheet);
}
 
开发者ID:hybridbpm,项目名称:hybridbpm,代码行数:11,代码来源:CalendarView.java

示例9: DevelopmentView

import com.vaadin.ui.declarative.Design; //导入依赖的package包/类
public DevelopmentView() {
    Design.read(this);
    Responsive.makeResponsive(panelLayout);

    moduleType.addContainerProperty("NAME", String.class, null);
    moduleType.addItem(Boolean.FALSE).getItemProperty("NAME").setValue("Module");
    moduleType.addItem(Boolean.TRUE).getItemProperty("NAME").setValue("Template");
    moduleType.setItemCaptionMode(AbstractSelect.ItemCaptionMode.PROPERTY);
    moduleType.setItemCaptionPropertyId("NAME");
    moduleType.setValue(Boolean.FALSE);
    moduleType.addValueChangeListener(this);

    btnAdd.setIcon(FontAwesome.PLUS_CIRCLE);
    btnAdd.addClickListener(this);

    btnRefresh.setIcon(FontAwesome.REFRESH);
    btnRefresh.addClickListener(this);

    btnExport.setIcon(FontAwesome.CLOUD_UPLOAD);
    btnExport.addClickListener(this);

    btnImport.setIcon(FontAwesome.CLOUD_DOWNLOAD);
    btnImport.addClickListener(this);
    
    btnRegenerate.setIcon(FontAwesome.WRENCH);
    btnRegenerate.addClickListener(this);

    modulesLayout.setMargin(new MarginInfo(true, false, false, false));
    modulesLayout.setExpandRatio(modulesTable, 1f);

    modulesTable.addContainerProperty("title", Component.class, null, "Title", null, Table.Align.LEFT);
    modulesTable.setColumnExpandRatio("title", 1f);
    modulesTable.addContainerProperty("updateDate", Date.class, null, "Update Date", null, Table.Align.LEFT);
    modulesTable.addContainerProperty("actions", TableButtonBar.class, null, "Actions", null, Table.Align.LEFT);
    modulesTable.setColumnWidth("updateDate", 150);
    modulesTable.setColumnWidth("actions", 80);
    modulesTable.addGeneratedColumn("updateDate", new DateColumnGenerator());
    modulesTable.setVisibleColumns("title", "updateDate", "actions");
}
 
开发者ID:hybridbpm,项目名称:hybridbpm,代码行数:40,代码来源:DevelopmentView.java

示例10: DocumentView

import com.vaadin.ui.declarative.Design; //导入依赖的package包/类
public DocumentView() {
    Design.read(this);
    tabSheet.getTab(documentsLayout).setCaption(Translate.getMessage("Documents"));
    btnSearch.setCaption(Translate.getMessage("btnSearch"));
    btnRefresh.setCaption(Translate.getMessage("btnRefresh"));
    btnAddFile.setCaption(Translate.getMessage("btnAddFile"));
    btnAddFolder.setCaption(Translate.getMessage("btnAddFolder"));
    textFieldSearch.setCaption(Translate.getMessage("textFieldSearch"));
    
    Responsive.makeResponsive(panelLayout);
    btnAddFolder.setIcon(FontAwesome.FOLDER_O);
    btnAddFolder.addClickListener(this);
    btnAddFile.setIcon(FontAwesome.FILE_O);
    btnAddFile.addClickListener(this);

    btnRefresh.setIcon(FontAwesome.REFRESH);
    btnRefresh.addClickListener(this);

    textFieldSearch.setIcon(FontAwesome.SEARCH);

    documentsLayout.setMargin(new MarginInfo(true, false, false, false));
    documentsLayout.setExpandRatio(documentTable, 1f);

    documentTable.addContainerProperty("name", String.class, null, Translate.getMessage("tableDocumentsName"), null, Table.Align.LEFT);
    documentTable.setColumnExpandRatio("name", 1f);
    documentTable.addContainerProperty("description", String.class, null, Translate.getMessage("tableDocumentsTitle"), null, Table.Align.LEFT);
    documentTable.addContainerProperty("creator", String.class, null, Translate.getMessage("tableDocumentsCreator"), null, Table.Align.LEFT);
    documentTable.addContainerProperty("createDate", Date.class, null, Translate.getMessage("tableDocumentsCreateDate"), null, Table.Align.LEFT);
    documentTable.addContainerProperty("updateDate", Date.class, null, Translate.getMessage("tableDocumentsUpdateDate"), null, Table.Align.LEFT);
    documentTable.addContainerProperty("actions", TableButtonBar.class, null, Translate.getMessage("tableDocumentsActions"), null, Table.Align.LEFT);
    documentTable.setColumnWidth("createDate", 150);
    documentTable.setColumnWidth("updateDate", 150);
    documentTable.setColumnWidth("actions", 55);
    documentTable.addGeneratedColumn("name", new DocumentColumnGenerator(this));
    documentTable.addGeneratedColumn("createDate", new DateColumnGenerator());
    documentTable.addGeneratedColumn("updateDate", new DateColumnGenerator());
    documentTable.setVisibleColumns("name", "description", "creator", "createDate", "updateDate", "actions");
    tabSheet.addSelectedTabChangeListener(this);
}
 
开发者ID:hybridbpm,项目名称:hybridbpm,代码行数:40,代码来源:DocumentView.java

示例11: AdministrationView

import com.vaadin.ui.declarative.Design; //导入依赖的package包/类
public AdministrationView() {
        Design.read(this);
        Responsive.makeResponsive(panelLayout);
        tabSheet.addTab(systemParametersLayout, "Parameters", FontAwesome.WRENCH);
        tabSheet.addTab(allProgressLayout, "Processes", FontAwesome.COGS);
//        tabSheet.addTab(viewsLayout, "Views", FontAwesome.LIST);
        tabSheet.addSelectedTabChangeListener(this);
        systemParametersLayout.refreshTable();
        allProgressLayout.setTabSheet(tabSheet);
    }
 
开发者ID:hybridbpm,项目名称:hybridbpm,代码行数:11,代码来源:AdministrationView.java

示例12: CaseView

import com.vaadin.ui.declarative.Design; //导入依赖的package包/类
public CaseView() {
    Design.read(this);
    Responsive.makeResponsive(panelLayout);
    tabSheet.setSizeFull();
    tabSheet.addTab(startProcessLayout, "Start case", FontAwesome.MAGIC);
    tabSheet.addTab(myCaseInProgressLayout, "In progress", FontAwesome.BRIEFCASE);
    tabSheet.addTab(myCaseDoneLayout, "Done", FontAwesome.ARCHIVE);
    tabSheet.setSelectedTab(myCaseInProgressLayout);
    tabSheet.addSelectedTabChangeListener(this);
    tabSheet.setCloseHandler(this);
    startProcessLayout.refreshTable();
    startProcessLayout.setTabSheet(tabSheet);
    myCaseInProgressLayout.setTabSheet(tabSheet);
    myCaseDoneLayout.setTabSheet(tabSheet);
}
 
开发者ID:hybridbpm,项目名称:hybridbpm,代码行数:16,代码来源:CaseView.java

示例13: MainMenu

import com.vaadin.ui.declarative.Design; //导入依赖的package包/类
public MainMenu() {
    setSizeUndefined();
    Design.read(this);
    settingsItem = settings.addItem("", null);
    profileItem = settingsItem.addItem("Profile", this);
    settingsItem.addSeparator();
    signOutItem = settingsItem.addItem("Sign Out", this);
    valoMenuToggleButton.addClickListener(this);
    valoMenuToggleButton.setIcon(FontAwesome.LIST);
    developerButton.setIcon(FontAwesome.EYE_SLASH);
    developerButton.setDescription("Turn on developer mode");
    developerButton.addClickListener(this);
}
 
开发者ID:hybridbpm,项目名称:hybridbpm,代码行数:14,代码来源:MainMenu.java

示例14: AdaptiveTaskEditor

import com.vaadin.ui.declarative.Design; //导入依赖的package包/类
public AdaptiveTaskEditor(DashboardTab panelView, Case case1) {
    this.panelView = panelView;
    this.case1 = case1;
    Design.read(this);

    btnSend.setIcon(FontAwesome.SEND);
    btnSend.addClickListener(this);
    btnProcess.addClickListener(this);

    TextComplete textComplete = new TextComplete();
    textComplete.extend(taskTitle,
            HybridbpmUI.getAccessAPI().findUserNamesByName(null),
            Arrays.asList(new String[]{"loan", "creditcard"}));

    taskTitle.addTextChangeListener(new FieldEvents.TextChangeListener() {

        @Override
        public void textChange(FieldEvents.TextChangeEvent event) {
            String text = event.getText();
            String[] lines = text.split(System.getProperty("line.separator"));
            if (lines != null && (lines.length > 1)) {
                taskTitle.setRows(lines.length + 2);
            }
        }
    });

    btnBack.addClickListener(this);
    btnBack.setStyleName(ValoTheme.BUTTON_LINK);
    btnBack.addStyleName(ValoTheme.BUTTON_SMALL);
    btnBack.setIcon(FontAwesome.ARROW_LEFT);
}
 
开发者ID:hybridbpm,项目名称:hybridbpm,代码行数:32,代码来源:AdaptiveTaskEditor.java

示例15: AdaptiveTaskPanel

import com.vaadin.ui.declarative.Design; //导入依赖的package包/类
public AdaptiveTaskPanel(DashboardTab panelView, Task task) {
        this.panelView = panelView;
        this.task = task;
        Design.read(this);

        taskFormHeader.initUI(task);
        
//        btnOpen.setIcon(FontAwesome.EXPAND);
        btnOpen.addClickListener(this);
    }
 
开发者ID:hybridbpm,项目名称:hybridbpm,代码行数:11,代码来源:AdaptiveTaskPanel.java


注:本文中的com.vaadin.ui.declarative.Design类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。