public class JetImgProperty extends JetString implements jet.controls.JetResourceable, jet.util.ImagePropertiable, jet.convert.ImgInfo
CHART_BACKGROUND_EDITOR, CHART_FILLPATTERN_EDITOR, CHART_FILTER_EDITOR, CHART_FILTER_EDITOR_NO_DATE, CHART_ICON_STYLE, CHART_PATTERN_LIST_EDITOR, CHART_PENSTYLE_EDITOR, CHART_TEXTSTYLE_EDITOR, CHOICE_EDITOR, COLOR_EDITOR, COMBO_EDITOR, COMMAND_EDITOR, CONTROL_SELECT_ITEMS, DATASOURCE_EDITOR, DBCOL_EDITOR, DETAIL_REPORT_EDITOR, EDIT_FORBIDDEN, EDIT_FORBIDDEN_INIT, EDITABLE_ALLTIME, INTERNAL, LINK_EDITOR, MULSEL_EDITOR, PARAMCOL_EDITOR, QUERY_EDITOR, RECORDDB_EDITOR, SECURITY_EDITOR, TEXT_EDITOR
BIGSTRING, BOOLEAN, CHG_FMTTINGBLNAME, CHG_FMTTINGFORMULA, CHG_OTHER, COLOR, COMPFML_RESOURCE, CUSTOMER, CUSTOMERLINK, DELIM, DELIMCHAR, DOUBLE, ENUMERATION, IGNORED, IMAGE, IMGVECTOR, MAPPINGTBL, NORMAL_RESOURCE, NUMBER, REFERENCE, STRING, SUB1_DELIM, UNIT, VAL_NORMALLENGTH, VAL_NORMALSTART, VECTOR
Constructor and Description |
---|
JetImgProperty() |
JetImgProperty(jet.controls.JetObject parent,
java.lang.String name)
Create JetImgProperty instance
|
Modifier and Type | Method and Description |
---|---|
void |
clearEmbed() |
jet.util.image.ImageResource |
getEmbedImageResource() |
byte[] |
getGifBytes()
Deprecated.
|
javax.swing.ImageIcon |
getImageIcon(java.lang.String currentPath)
Deprecated.
|
jet.util.image.ImageResource |
getImageResourceByID(java.lang.String resourceId) |
jet.util.image.ImageResource |
getImageResourceByPath(java.io.File catalogFile) |
int |
getImageType()
Deprecated.
if "EMBED" return the image type of ImageResource, else return
MediaType.UNKNOWN |
java.lang.String |
getInspValue()
Effective if
JetProperty.isCurrentAutoValue() is false. |
java.lang.String |
getLocalPath()
Deprecated.
|
java.lang.Object |
getObject()
Deprecated.
|
java.lang.String |
getPath()
If path doesn't set, will return the report resource path,and try to set "catFullName" as catalog full file name
|
java.lang.Object |
getResource()
Deprecated.
|
java.lang.Object |
getResource(java.lang.String depPath)
Deprecated.
|
int |
getResourceID()
Deprecated.
|
java.lang.String |
getURL()
Deprecated.
|
boolean |
isEmbed()
Effective if
JetProperty.isCurrentAutoValue() is false. |
void |
set(java.lang.String str)
Sets value and call
setURL(null) |
void |
setEmbedImage(jet.util.image.ImageResource ir)
Changes to saving/retrieving an Image(Embed) or not.
Notice: must call #setEmbedImageType(int) before/after it. |
void |
setLocalPath(java.lang.String path)
Deprecated.
|
void |
setObject(java.lang.Object value)
Sets normal value
|
void |
setResourceID(int id)
Deprecated.
|
void |
setURL(java.lang.String url)
Deprecated.
|
java.lang.String |
toString()
Effective if
JetProperty.isCurrentAutoValue() is false. |
get, getMatchingSqlType, getPropertyChoice, set, setPropertyChoice
canChangeByBL, canChangeByFmtt, canChangeByOthers, enableAllChangeBys, getChangeBy, getChangeByBL, getChangeByBLName, getChangeByBLType, getChangeByFmtt, getChangeByFmttName, getChangeByObject, getChangeByObjectName, getChangeByOtherType, getCurrentChangedBy, getCurrentValue, getCurrentValue, getEditFlag, getEditorType, getInspValue, getName, getNormalObject, getParent, getPropType, getRuntimeChangeBy, getUnifiedObject, getValue, isChagneByFmtt, isChangeByBL, isChangeByOther, isCurrentAutoValue, isCurrentChangedBy, isEnableAutoValue, isNull, isSetAnyChangeBy, isSetRuntimeChgBy, isTransient, loadFullChangeBy, propertyChanged, saveFullChangeBy, setAsAutoValue, setCanChangeByBL, setCanChangeByFmtt, setCanChangeByOthers, setChangeByBL, setChangeByBL, setChangeByFmtt, setChangeByObject, setChangeByObject, setEditFlag, setEditorType, setEnableAutoValue, setRuntimeChangeBy, setTransient, setUnitValue, toUnitString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChangeByBL, getChangeByBLType, getChangeByFmtt, getChangeByOtherType, getCurrentChangedBy, getNormalObject, getPropType, getRuntimeChangeBy, getUnifiedObject, isChagneByFmtt, isChangeByBL, isChangeByOther, isCurrentAutoValue, isCurrentChangedBy, isSetRuntimeChgBy, loadFullChangeBy, saveFullChangeBy, setAsAutoValue, setChangeByBL, setChangeByBL, setChangeByFmtt, setChangeByObject, setChangeByObject, setRuntimeChangeBy
public JetImgProperty()
public JetImgProperty(jet.controls.JetObject parent, java.lang.String name)
parent
- ownername
- namepublic void set(java.lang.String str)
setURL(null)
set
in interface jet.util.Propertiable
set
in class JetString
str
- the String value, null
means default valuesetValue(String)
public void setEmbedImage(jet.util.image.ImageResource ir)
#setEmbedImageType(int)
before/after it.embedImage
- if null change to saving/retrieving an Image(file name) else an Image(Embed)imageType
- the meidaType must one of MediaType.JPG
,MediaType.PNG
,MediaType.BITMAP
,MediaType.GIF
MediaType
public void clearEmbed()
public boolean isEmbed()
JetProperty.isCurrentAutoValue()
is false. Had this been set to saving/retrieving an Image(Embed)?isEmbed
in interface jet.util.ImagePropertiable
JetProperty.isCurrentAutoValue()
public java.lang.String getInspValue()
JetProperty.isCurrentAutoValue()
is false.
ONLY For Designer UI#setEmbedImage(Image)
.getInspValue
in interface jet.convert.PropInfo
getInspValue
in class JetProperty
JetProperty.isCurrentAutoValue()
public java.lang.String toString()
JetProperty.isCurrentAutoValue()
is false.
If this is set saving/retrieving Image(file name), return image file name directly.toString
in interface jet.convert.PropInfo
toString
in class JetString
setValue(String)
,
#imageToByte(Image, int)
,
#isImageEmbed()
,
JetProperty.isCurrentAutoValue()
public void setObject(java.lang.Object value)
JetProperty
setObject
in interface jet.util.Propertiable
setObject
in class JetProperty
public jet.util.image.ImageResource getImageResourceByID(java.lang.String resourceId)
getImageResourceByID
in interface jet.util.ImagePropertiable
public jet.util.image.ImageResource getImageResourceByPath(java.io.File catalogFile)
resourcePath
- public jet.util.image.ImageResource getEmbedImageResource()
getEmbedImageResource
in interface jet.util.ImagePropertiable
public int getResourceID()
getResourceID
in interface jet.controls.JetResourceable
getResourceID
in interface jet.convert.ImgInfo
public void setResourceID(int id)
setResourceID
in interface jet.controls.JetResourceable
java.lang.UnsupportedOperationException
public java.lang.String getLocalPath()
getLocalPath
in interface jet.controls.JetResourceable
getLocalPath
in interface jet.convert.ImgInfo
java.lang.UnsupportedOperationException
public void setLocalPath(java.lang.String path)
setLocalPath
in interface jet.controls.JetResourceable
java.lang.UnsupportedOperationException
public java.lang.String getURL()
getURL
in interface jet.controls.JetResourceable
getURL
in interface jet.convert.ImgInfo
java.lang.UnsupportedOperationException
public void setURL(java.lang.String url)
JetResourceable
setURL
in interface jet.controls.JetResourceable
java.lang.UnsupportedOperationException
public java.lang.String getPath()
getPath
in interface jet.convert.ImgInfo
java.lang.UnsupportedOperationException
public java.lang.Object getResource(java.lang.String depPath)
getResource
in interface jet.convert.ImgInfo
depPath
- the based pathjava.lang.UnsupportedOperationException
public java.lang.Object getResource()
getResource
in interface jet.controls.JetResourceable
getResource
in interface jet.convert.ImgInfo
getObject()
,
getResource(String)
public byte[] getGifBytes() throws java.io.IOException
getGifBytes
in interface jet.convert.ImgInfo
java.io.IOException
ImageEncoder.renderImageToGif(Image)
public java.lang.Object getObject()
getObject
in interface jet.convert.ImgInfo
getObject
in interface jet.util.ImagePropertiable
getObject
in interface jet.util.Propertiable
getObject
in class JetProperty
JetProperty.isChangeByOther()
,
JetProperty.isCurrentAutoValue()
public javax.swing.ImageIcon getImageIcon(java.lang.String currentPath) throws java.io.IOException
ImageIcon
via ImageResource(EMBED) and return, else return null
java.io.IOException
public int getImageType()
MediaType.UNKNOWN
MediaType
,
ImageResource.getImageType()