Class IImageCaptureProvider.ImageData
java.lang.Object
org.eclnt.jsfserver.defaultscreens.IImageCaptureProvider.ImageData
- Enclosing interface:
- IImageCaptureProvider
Information behind one information aspect.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCommand
(String id, String text) Each information aspect has a set of commands.void
addCommand
(String id, String text, boolean enabled) Extended way of passing a command => with "enabled"-information in addition.Returns list of commands.byte[]
getImage()
boolean
void
setAvailable
(boolean available) Define if information behind information aspect is available.void
setIconTooltip
(String iconTooltip) Tool tip which is shown for the information.void
setIconUrl
(String iconUrl) Set the icon for the aspect.void
setImage
(byte[] image) Image that is the image behind the information aspect.void
setPostBgpaint
(String value) BGPAINT command that is always appended BEHIND the bgpaint that is managed by the component.void
setReference
(Object value) ImageData allows to "park" a reference object, which can be used later on in the event processing.
-
Constructor Details
-
ImageData
public ImageData()
-
-
Method Details
-
setReference
ImageData allows to "park" a reference object, which can be used later on in the event processing. The object is not used within the processing of the IMAGECAPTURE controls, but just serves as reference. -
getReference
-
getIconUrl
-
setIconUrl
Set the icon for the aspect. Should be a "URL" which is absolute within the web application, e.g. "/images/xyz.png". -
getIconTooltip
-
setIconTooltip
Tool tip which is shown for the information. -
getImage
public byte[] getImage() -
setImage
public void setImage(byte[] image) Image that is the image behind the information aspect. Pay attention: this is not the icon, but this is the actual image. The icon tells something about the type of information aspect, the image is the information itself.
Use ValueManager in order to convert byte[] into "hex String". -
isAvailable
public boolean isAvailable() -
setAvailable
public void setAvailable(boolean available) Define if information behind information aspect is available. -
getCommands
Returns list of commands. You may change the list (e.g. clear it). Adding of items is done via addCommand(). -
addCommand
Each information aspect has a set of commands. The commands are shown aside the image of the information aspect. Each command is a combination out of "id" and "text".
There is a pre-configured command available which uploads an image from the client's file system. Use the id "UPLOAD" in order to take use. -
addCommand
Extended way of passing a command => with "enabled"-information in addition. -
setPostBgpaint
BGPAINT command that is always appended BEHIND the bgpaint that is managed by the component. -
getPostBgpaint
-