Uses of Interface
com.vaadin.server.Resource
-
Packages that use Resource Package Description com.vaadin.event com.vaadin.icons com.vaadin.server com.vaadin.ui com.vaadin.ui.declarative.converters com.vaadin.ui.dnd com.vaadin.ui.renderers com.vaadin.util -
-
Uses of Resource in com.vaadin.event
Methods in com.vaadin.event that return Resource Modifier and Type Method Description ResourceAction. getIcon()Returns the action's icon.Methods in com.vaadin.event with parameters of type Resource Modifier and Type Method Description voidAction. setIcon(Resource icon)Sets the icon.Constructors in com.vaadin.event with parameters of type Resource Constructor Description Action(String caption, Resource icon)Constructs a new action with the given caption string and icon.ShortcutAction(String caption, Resource icon, int kc, int... m)Creates a shortcut that reacts to the givenShortcutAction.KeyCodeand (optionally)ShortcutAction.ModifierKeys.ShortcutListener(String caption, Resource icon, int keyCode, int... modifierKeys) -
Uses of Resource in com.vaadin.icons
Classes in com.vaadin.icons that implement Resource Modifier and Type Class Description classVaadinIconsFontIconthat represents the Vaadin Icons font. -
Uses of Resource in com.vaadin.server
Subinterfaces of Resource in com.vaadin.server Modifier and Type Interface Description interfaceConnectorResourceA resource that is served through the Connector that is using the resource.interfaceFontIconA font icon is a type of icon that is made by displaying one character from a specially constructed font containing icons ("icon font").Classes in com.vaadin.server that implement Resource Modifier and Type Class Description classClassResourceClassResourceis a named resource accessed with the class loader.classExternalResourceExternalResourceimplements source for resources fetched from location specified by URL:s.classFileResourceFileResourcesare files or directories on local filesystem.classFontAwesomeDeprecated.Since 8.0 replaced with included Vaadin Icons (#7979).classGenericFontIconA generic implementation ofFontIconinterface.classStreamResourceStreamResourceis a resource provided to the client directly by the application.classThemeResourceThemeResourceis a named theme dependant resource provided and managed by a theme.Methods in com.vaadin.server that return Resource Modifier and Type Method Description ResourceFileDownloader. getFileDownloadResource()Gets the resource set for download.protected ResourceAbstractClientConnector. getResource(String key)Gets a resource defined usingAbstractClientConnector.setResource(String, Resource)with the corresponding key.ResourceBrowserWindowOpener. getResource()Returns the resource for this instance.ResourceResourceReference. getResource()static ResourceResourceReference. getResource(URLReference reference)Methods in com.vaadin.server with parameters of type Resource Modifier and Type Method Description voidPage.Styles. add(Resource resource)Injects a CSS resource into the page.voidJsonPaintTarget. addAttribute(String name, Resource value)voidPaintTarget. addAttribute(String name, Resource value)Adds a resource attribute to component.static ResourceReferenceResourceReference. create(Resource resource, ClientConnector connector, String key)voidPage. open(Resource resource, String windowName, boolean tryToOpenAsPopup)Deprecated.As of 7.0, only retained to maintain compatibility with LegacyWindow.open methods.voidPage. open(Resource resource, String windowName, int width, int height, BorderStyle border)Deprecated.As of 7.0, only retained to maintain compatibility with LegacyWindow.open methods.voidGlobalResourceHandler. register(Resource resource, ClientConnector ownerConnector)Registers a resource to be served with a global URL.voidFileDownloader. setFileDownloadResource(Resource resource)Sets the resource that is downloaded when the extended component is clicked.protected voidAbstractClientConnector. setResource(String key, Resource resource)Registers a resource with this connector using the given key.voidBrowserWindowOpener. setResource(Resource resource)Sets the providedresourcefor this instance.Constructors in com.vaadin.server with parameters of type Resource Constructor Description BrowserWindowOpener(Resource resource)Creates a window opener that will open window to the provided resource.FileDownloader(Resource resource)Creates a new file downloader for the given resource.ResourceReference(Resource resource, ClientConnector connector, String key) -
Uses of Resource in com.vaadin.ui
Methods in com.vaadin.ui that return Resource Modifier and Type Method Description ResourceIconGenerator. apply(T item)Gets an icon resource for theitem.ResourceAbstractComponent. getIcon()ResourceComponent. getIcon()Gets the icon resource of the component.ResourceComposite. getIcon()ResourceMenuBar.MenuItem. getIcon()Gets the objects icon.ResourceNotification. getIcon()Gets the icon part of the notification message.ResourceTabSheet.Tab. getIcon()Gets the icon for the tab.ResourceTabSheet.TabSheetTabImpl. getIcon()ResourceTree. getIcon()ResourceVideo. getPoster()ResourceLink. getResource()Returns the resource this link opens.ResourceAbstractEmbedded. getSource()Get the object source resource.ResourceEmbedded. getSource()Gets the resource contained in the embedded object.Methods in com.vaadin.ui that return types with arguments of type Resource Modifier and Type Method Description List<Resource>AbstractMedia. getSources()Methods in com.vaadin.ui with parameters of type Resource Modifier and Type Method Description MenuBar.MenuItemMenuBar. addItem(String caption, Resource icon, MenuBar.Command command)Add a new item to the menu bar.MenuBar.MenuItemMenuBar.MenuItem. addItem(String caption, Resource icon, MenuBar.Command command)Add a new item inside this item, thus creating a sub-menu.MenuBar.MenuItemMenuBar. addItemBefore(String caption, Resource icon, MenuBar.Command command, MenuBar.MenuItem itemToAddBefore)Add an item before some item.MenuBar.MenuItemMenuBar.MenuItem. addItemBefore(String caption, Resource icon, MenuBar.Command command, MenuBar.MenuItem itemToAddBefore)Add an item before some item.voidAbstractMedia. addSource(Resource source)Adds an alternative media file to the sources list.TabSheet.TabTabSheet. addTab(Component c, String caption, Resource icon)Adds a new tab into TabSheet.TabSheet.TabTabSheet. addTab(Component tabComponent, String caption, Resource icon, int position)Adds a new tab into TabSheet.voidLegacyWindow. open(Resource resource)Deprecated.As of 7.0, use getPage().setLocation insteadvoidLegacyWindow. open(Resource resource, String windowName)Deprecated.As of 7.0, use getPage().open insteadvoidLegacyWindow. open(Resource resource, String windowName, boolean tryToOpenAsPopup)Deprecated.Opens the given resource in a window with the given name and optionally tries to force the resource to open in a new window instead of a new tab.voidLegacyWindow. open(Resource resource, String windowName, int width, int height, BorderStyle border)Deprecated.As of 7.0, use getPage().open insteadvoidAbstractComponent. setIcon(Resource icon)Sets the component's icon.voidButton. setIcon(Resource icon, String iconAltText)Sets the component's icon and alt text.voidComponent. setIcon(Resource icon)Sets the icon of the component.voidComposite. setIcon(Resource icon)voidMenuBar.MenuItem. setIcon(Resource icon)Sets the icon.voidNotification. setIcon(Resource icon)Sets the icon part of the notification message.voidTabSheet.Tab. setIcon(Resource icon)Sets the icon for the tab.voidTabSheet.Tab. setIcon(Resource icon, String iconAltText)Sets the icon and alt text for the tab.voidTabSheet.TabSheetTabImpl. setIcon(Resource icon)voidTabSheet.TabSheetTabImpl. setIcon(Resource icon, String iconAltText)voidTree. setIcon(Resource icon)voidVideo. setPoster(Resource poster)Sets the poster image, which is shown in place of the video before the user presses play.voidLink. setResource(Resource resource)Sets the resource this link opens.voidAbstractEmbedded. setSource(Resource source)Sets the object source resource.voidAbstractMedia. setSource(Resource source)Sets a single media file as the source of the media component.voidEmbedded. setSource(Resource source)Sets the object source resource.voidAbstractMedia. setSources(Resource... sources)Set multiple sources at once.Constructors in com.vaadin.ui with parameters of type Resource Constructor Description Audio(String caption, Resource source)BrowserFrame(String caption, Resource source)Creates a new browser frame with the given caption and content.Button(Resource icon)Creates a new push button with the given icon.Button(Resource icon, Button.ClickListener listener)Creates a new push button with a click listener.Button(String caption, Resource icon)Creates a new push button with the given caption and icon.Embedded(String caption, Resource source)Creates a new Embedded object whose contents is loaded from given resource.Image(String caption, Resource source)Creates a new Image whose contents is loaded from given resource.Link(String caption, Resource resource)Creates a new instance of Link.Link(String caption, Resource resource, String targetName, int width, int height, BorderStyle border)Creates a new instance of Link that opens a new window.MenuItem(String caption, Resource icon, MenuBar.Command command)Constructs a new menu item that can optionally have an icon and a command associated with it.TabSheetTabImpl(String key, String caption, Resource icon)Video(String caption, Resource source) -
Uses of Resource in com.vaadin.ui.declarative.converters
Methods in com.vaadin.ui.declarative.converters that return types with arguments of type Resource Modifier and Type Method Description Result<Resource>DesignResourceConverter. convertToModel(String value, ValueContext context)Methods in com.vaadin.ui.declarative.converters with parameters of type Resource Modifier and Type Method Description StringDesignResourceConverter. convertToPresentation(Resource value, ValueContext context) -
Uses of Resource in com.vaadin.ui.dnd
Methods in com.vaadin.ui.dnd with parameters of type Resource Modifier and Type Method Description voidDragSourceExtension. setDragImage(Resource imageResource)Set a custom drag image for the current drag source. -
Uses of Resource in com.vaadin.ui.renderers
Methods in com.vaadin.ui.renderers with parameters of type Resource Modifier and Type Method Description elemental.json.JsonValueImageRenderer. encode(Resource resource) -
Uses of Resource in com.vaadin.util
Fields in com.vaadin.util declared as Resource Modifier and Type Field Description static ResourceFileTypeResolver. DEFAULT_ICONDefault icon given if no icon is specified for a mime-type.
-