本文整理汇总了Java中com.vaadin.ui.themes.Reindeer类的典型用法代码示例。如果您正苦于以下问题:Java Reindeer类的具体用法?Java Reindeer怎么用?Java Reindeer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Reindeer类属于com.vaadin.ui.themes包,在下文中一共展示了Reindeer类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createHeader
import com.vaadin.ui.themes.Reindeer; //导入依赖的package包/类
@SuppressWarnings("serial")
private HorizontalLayout createHeader(String title) {
HorizontalLayout header = ViewUtil.createSubHeader(title, getSubViewHelpGuid());
Button refresh = new Button();
refresh.setStyleName(Reindeer.BUTTON_LINK);
refresh.setDescription("Refresh");
refresh.setIcon(new ThemeResource("img/Refresh.png"));
refresh.addClickListener(new ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
populateTable();
}
});
header.addComponent(refresh);
return header;
}
示例2: AlfrescoProcessInstanceTableItem
import com.vaadin.ui.themes.Reindeer; //导入依赖的package包/类
public AlfrescoProcessInstanceTableItem(final ProcessInstance processInstance) {
addItemProperty(PROPERTY_ID, new ObjectProperty<String>(processInstance.getId(), String.class));
if (processInstance.getBusinessKey() != null) {
addItemProperty(PROPERTY_BUSINESSKEY, new ObjectProperty<String>(processInstance.getBusinessKey(), String.class));
}
Button viewProcessInstanceButton = new Button(ExplorerApp.get().getI18nManager().getMessage(Messages.PROCESS_ACTION_VIEW));
viewProcessInstanceButton.addStyleName(Reindeer.BUTTON_LINK);
viewProcessInstanceButton.addListener(new ClickListener() {
private static final long serialVersionUID = 1L;
public void buttonClick(ClickEvent event) {
ExplorerApp.get().getViewManager().showProcessInstancePage(processInstance.getId());
}
});
viewProcessInstanceButton.setIcon(Images.MAGNIFIER_16);
addItemProperty(PROPERTY_ACTIONS, new ObjectProperty<Component>(viewProcessInstanceButton, Component.class));
}
示例3: initUi
import com.vaadin.ui.themes.Reindeer; //导入依赖的package包/类
protected void initUi() {
removeAllComponents();
addStyleName(Reindeer.PANEL_LIGHT);
addStyleName(ExplorerLayout.STYLE_PROFILE_LAYOUT);
setSizeFull();
// Profile page is a horizontal layout: left we have a panel with the picture,
// and one the right there is another panel the about, contact, etc information
this.profilePanelLayout = new HorizontalLayout();
profilePanelLayout.setSizeFull();
setContent(profilePanelLayout);
// init both panels
initImagePanel();
Label emptySpace = new Label(" ", Label.CONTENT_XHTML);
emptySpace.setWidth(50, UNITS_PIXELS);
profilePanelLayout.addComponent(emptySpace);
initInformationPanel();
}
示例4: initInformationPanel
import com.vaadin.ui.themes.Reindeer; //导入依赖的package包/类
protected void initInformationPanel() {
Panel infoPanel = new Panel();
infoPanel.addStyleName(Reindeer.PANEL_LIGHT);
infoPanel.setSizeFull();
profilePanelLayout.addComponent(infoPanel);
profilePanelLayout.setExpandRatio(infoPanel, 1.0f); // info panel should take all the remaining width available
// All the information sections are put under each other in a vertical layout
this.infoPanelLayout = new VerticalLayout();
infoPanel.setContent(infoPanelLayout);
initAboutSection();
initContactSection();
}
示例5: ChangePasswordPopupWindow
import com.vaadin.ui.themes.Reindeer; //导入依赖的package包/类
public ChangePasswordPopupWindow() {
this.identityService = ProcessEngines.getDefaultProcessEngine().getIdentityService();
this.currentUser = ExplorerApp.get().getLoggedInUser();
this.i18nManager = ExplorerApp.get().getI18nManager();
setCaption(i18nManager.getMessage(Messages.PASSWORD_CHANGE));
setModal(true);
center();
addStyleName(Reindeer.WINDOW_LIGHT);
setWidth(350, UNITS_PIXELS);
setHeight(205, UNITS_PIXELS);
initLayout();
initPasswordFields();
initChangePasswordButton();
initEnterKeyListener();
}
示例6: initChangePasswordButton
import com.vaadin.ui.themes.Reindeer; //导入依赖的package包/类
protected void initChangePasswordButton() {
errorLabel = new Label(" ", Label.CONTENT_XHTML);
errorLabel.addStyleName(Reindeer.LABEL_SMALL);
errorLabel.addStyleName(ExplorerLayout.STYLE_LABEL_RED);
layout.addComponent(errorLabel);
Button changePasswordButton = new Button(i18nManager.getMessage(Messages.PASSWORD_CHANGE));
layout.addComponent(changePasswordButton);
layout.setComponentAlignment(changePasswordButton, Alignment.MIDDLE_CENTER);
changePasswordButton.addListener(new ClickListener() {
public void buttonClick(ClickEvent event) {
handlePasswordChange();
}
});
}
示例7: DetailPanel
import com.vaadin.ui.themes.Reindeer; //导入依赖的package包/类
public DetailPanel() {
setSizeFull();
addStyleName(ExplorerLayout.STYLE_DETAIL_PANEL);
setMargin(true);
CssLayout cssLayout = new CssLayout(); // Needed for rounded corners
cssLayout.addStyleName(ExplorerLayout.STYLE_DETAIL_PANEL);
cssLayout.setSizeFull();
super.addComponent(cssLayout);
mainPanel = new Panel();
mainPanel.addStyleName(Reindeer.PANEL_LIGHT);
mainPanel.setSizeFull();
cssLayout.addComponent(mainPanel);
// Use default layout
VerticalLayout verticalLayout = new VerticalLayout();
verticalLayout.setWidth(100, UNITS_PERCENTAGE);
verticalLayout.setMargin(true);
mainPanel.setContent(verticalLayout);
}
示例8: ConfirmationDialogPopupWindow
import com.vaadin.ui.themes.Reindeer; //导入依赖的package包/类
public ConfirmationDialogPopupWindow(String title, String description) {
setWidth(400, UNITS_PIXELS);
setModal(true);
setResizable(false);
addStyleName(Reindeer.PANEL_LIGHT);
layout = new GridLayout(2,2);
layout.setMargin(true);
layout.setSpacing(true);
layout.setSizeFull();
setContent(layout);
I18nManager i18nManager = ExplorerApp.get().getI18nManager();
if(title != null) {
setCaption(title);
} else {
setCaption(i18nManager.getMessage(Messages.CONFIRMATION_DIALOG_DEFAULT_TITLE));
}
initLabel(description);
initButtons(i18nManager);
}
示例9: TaskListHeader
import com.vaadin.ui.themes.Reindeer; //导入依赖的package包/类
public TaskListHeader() {
this.i18nManager = ExplorerApp.get().getI18nManager();
this.taskService = ProcessEngines.getDefaultProcessEngine().getTaskService();
addStyleName(Reindeer.PANEL_LIGHT);
addStyleName(ExplorerLayout.STYLE_SEARCHBOX);
layout = new HorizontalLayout();
layout.setHeight(36, UNITS_PIXELS);
layout.setWidth(99, UNITS_PERCENTAGE); // 99, otherwise the Panel will display scrollbars
layout.setSpacing(true);
layout.setMargin(false, true, false, true);
setContent(layout);
initInputField();
initKeyboardListener();
// initSortMenu();
}
示例10: initUi
import com.vaadin.ui.themes.Reindeer; //导入依赖的package包/类
protected void initUi() {
setCaption(title);
setModal(true);
addStyleName(Reindeer.WINDOW_LIGHT);
center();
windowLayout = (VerticalLayout) getContent();
windowLayout.setSpacing(true);
if (multiSelect && showRoles) {
setWidth(820, UNITS_PIXELS);
} else if (multiSelect && !showRoles) {
setWidth(685, UNITS_PIXELS);
} else {
setWidth(340, UNITS_PIXELS);
}
setHeight(350, UNITS_PIXELS);
initSearchField();
initUserSelection();
initDoneButton();
}
示例11: AttachmentDetailPopupWindow
import com.vaadin.ui.themes.Reindeer; //导入依赖的package包/类
public AttachmentDetailPopupWindow(Attachment attachment) {
super(attachment.getName());
addStyleName(Reindeer.PANEL_LIGHT);
center();
setModal(true);
setResizable(false);
AttachmentRenderer renderer = ExplorerApp.get().getAttachmentRendererManager().getRenderer(attachment.getType());
Component detail = renderer.getDetailComponent(attachment);
if(detail instanceof ComponentContainer) {
setContent((ComponentContainer) detail);
} else {
addComponent(detail);
}
getContent().setSizeUndefined();
}
示例12: getOverviewComponent
import com.vaadin.ui.themes.Reindeer; //导入依赖的package包/类
public Component getOverviewComponent(final Attachment attachment, final RelatedContentComponent parent) {
// If the attachment has no description, overview link is link to actual page
// instead of showing popup with details.
if(attachment.getDescription() != null && !"".equals(attachment.getDescription())) {
Button attachmentLink = new Button(attachment.getName());
attachmentLink.addStyleName(Reindeer.BUTTON_LINK);
attachmentLink.addListener(new ClickListener() {
private static final long serialVersionUID = 1L;
public void buttonClick(ClickEvent event) {
parent.showAttachmentDetail(attachment);
}
});
return attachmentLink;
} else {
return new Link(attachment.getName(), new ExternalResource(attachment.getUrl()));
}
}
示例13: addTableName
import com.vaadin.ui.themes.Reindeer; //导入依赖的package包/类
protected void addTableName() {
HorizontalLayout header = new HorizontalLayout();
header.setWidth(100, UNITS_PERCENTAGE);
header.addStyleName(ExplorerLayout.STYLE_TITLE_BLOCK);
header.setSpacing(true);
// TODO: use right image
Embedded image = new Embedded(null, Images.DATABASE_50);
header.addComponent(image);
header.setComponentAlignment(image, Alignment.MIDDLE_LEFT);
header.setMargin(false, false, true, false);
Label name = new Label(tableName);
name.addStyleName(Reindeer.LABEL_H2);
header.addComponent(name);
header.setExpandRatio(name, 1.0f);
header.setComponentAlignment(name, Alignment.MIDDLE_LEFT);
addDetailComponent(header);
Label spacer = new Label();
spacer.setWidth(100, UNITS_PERCENTAGE);
spacer.addStyleName(ExplorerLayout.STYLE_DETAIL_BLOCK);
addDetailComponent(spacer);
}
示例14: GroupItem
import com.vaadin.ui.themes.Reindeer; //导入依赖的package包/类
public GroupItem(final Group group) {
Button idButton = new Button(group.getId());
idButton.addStyleName(Reindeer.BUTTON_LINK);
idButton.addListener(new ClickListener() {
public void buttonClick(ClickEvent event) {
ExplorerApp.get().getViewManager().showGroupPage(group.getId());
}
});
addItemProperty("id", new ObjectProperty<Button>(idButton, Button.class));
if (group.getName() != null) {
addItemProperty("name", new ObjectProperty<String>(group.getName(), String.class));
}
if (group.getType() != null) {
addItemProperty("type", new ObjectProperty<String>(group.getType(), String.class));
}
Embedded deleteIcon = new Embedded(null, Images.DELETE);
deleteIcon.addStyleName(ExplorerLayout.STYLE_CLICKABLE);
deleteIcon.addListener(new DeleteMembershipListener(identityService, userId, group.getId(), userDetailPanel));
addItemProperty("actions", new ObjectProperty<Embedded>(deleteIcon, Embedded.class));
}
示例15: initPageTitle
import com.vaadin.ui.themes.Reindeer; //导入依赖的package包/类
protected void initPageTitle() {
HorizontalLayout layout = new HorizontalLayout();
layout.setWidth(100, UNITS_PERCENTAGE);
layout.setSpacing(true);
layout.setMargin(false, false, true, false);
layout.addStyleName(ExplorerLayout.STYLE_TITLE_BLOCK);
addDetailComponent(layout);
Embedded userImage = new Embedded(null, Images.USER_50);
layout.addComponent(userImage);
Label userName = new Label(user.getFirstName() + " " + user.getLastName());
userName.setSizeUndefined();
userName.addStyleName(Reindeer.LABEL_H2);
layout.addComponent(userName);
layout.setComponentAlignment(userName, Alignment.MIDDLE_LEFT);
layout.setExpandRatio(userName, 1.0f);
}