|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjet.controls.JetProperty
jet.controls.JetString
jet.controls.JetImgProperty
public class JetImgProperty
Image property, for saving/retriving a Image file name value.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
JetImgProperty()
|
|
JetImgProperty(JetObject parent,
java.lang.String name)
Constructor. |
|
| Method Summary | |
|---|---|
static java.lang.String |
createRelativePath(java.lang.String catalogPath,
java.lang.String imgSource)
|
java.lang.String |
getFilePath(java.lang.String currentPath)
|
static java.lang.String |
getFilePath(java.lang.String currentPath,
java.lang.String imgSourcePath)
|
byte[] |
getGifBytes()
Converte the java.awt.Image value to a GIF format bype array. |
javax.swing.ImageIcon |
getImageIcon(java.lang.String currentPath)
|
int |
getImageType()
|
java.lang.String |
getInspValue()
|
java.lang.String |
getLocalPath()
Get the local path of the resource. |
java.lang.Object |
getObject()
Get the java.awt.Image value. |
java.lang.String |
getPath()
Get the path of the resource. |
java.lang.Object |
getResource()
Get the resource instance. |
java.lang.Object |
getResource(java.lang.String depPath)
Get the resource instance with dependent path. |
int |
getResourceID()
Return the resource ID in the resource file. |
static java.lang.String |
getRootPath(java.lang.String currentPath)
|
java.lang.String |
getURL()
Get the URL string of the resource. |
static byte[] |
imageToByte(java.awt.Image image)
|
static byte[] |
imageToByte(java.awt.Image image,
int toByteType)
|
boolean |
isImageEmbed()
|
void |
set(java.lang.String str)
Sets the value to this property via a String. |
void |
setEmbedImage(java.awt.Image embedImage)
|
void |
setEmbedImageType(int type)
|
void |
setImage(java.lang.String name,
java.awt.Image img)
Set the Image value. |
void |
setLocalPath(java.lang.String path)
Set the local path of the resource. |
void |
setPath(java.lang.String path)
Set the path of the resource. |
void |
setResourceID(int id)
Set the resource ID in the resource file. |
void |
setURL(java.lang.String url)
Set the URL string of the resource. |
java.lang.String |
toString()
Returns the value as a String. |
| Methods inherited from class jet.controls.JetString |
|---|
get, getMatchingSqlType, getPropertyChoice, set, setPropertyChoice |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JetImgProperty()
public JetImgProperty(JetObject parent,
java.lang.String name)
parent - the owner of the property.name - the property name| Method Detail |
|---|
public int getResourceID()
public void setResourceID(int id)
public java.lang.String getLocalPath()
public void setLocalPath(java.lang.String path)
public java.lang.String getURL()
public void setURL(java.lang.String url)
public void set(java.lang.String str)
JetString
set in class JetStringstr - the String valuepublic void setPath(java.lang.String path)
public java.lang.String getPath()
public void setEmbedImage(java.awt.Image embedImage)
public void setEmbedImageType(int type)
public boolean isImageEmbed()
public java.lang.Object getResource(java.lang.String depPath)
public int getImageType()
public java.lang.Object getResource()
public java.lang.Object getObject()
getObject in class JetProperty
public byte[] getGifBytes()
throws java.io.IOException
java.io.IOException
public void setImage(java.lang.String name,
java.awt.Image img)
name - the name of the image.img - the Image value.
public javax.swing.ImageIcon getImageIcon(java.lang.String currentPath)
throws java.net.MalformedURLException,
java.io.IOException
currentPath - the default folder path such as "D:\Demo\Reports\"
java.net.MalformedURLException
java.io.IOExceptionpublic java.lang.String getFilePath(java.lang.String currentPath)
currentPath - the default folder path such as "D:\Demo\Reports\"
public static java.lang.String getFilePath(java.lang.String currentPath,
java.lang.String imgSourcePath)
currentPath - imageSourcePath -
public static java.lang.String createRelativePath(java.lang.String catalogPath,
java.lang.String imgSource)
public static java.lang.String getRootPath(java.lang.String currentPath)
public static byte[] imageToByte(java.awt.Image image,
int toByteType)
public static byte[] imageToByte(java.awt.Image image)
public java.lang.String getInspValue()
getInspValue in class JetPropertypublic java.lang.String toString()
JetString
toString in class JetString
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||