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_EDITORBIGSTRING, BOOLEAN, CHG_FMTTINGBLNAME, CHG_FMTTINGFORMULA, CHG_OTHER, COLOR, COMPFML_RESOURCE, CUSTOMER, CUSTOMERLINK, DELIM, DELIMCHAR, DOUBLE, ENUMERATION, IGNORED, IMAGE, IMGVECTOR, MAPPINGTBL, MODE_PAGE, MODE_UNKNOWN, MODE_WEB, NORMAL_RESOURCE, NUMBER, POINT, REFERENCE, STRING, SUB1_DELIM, UNIT, VAL_NORMALLENGTH, VAL_NORMALSTART, VECTOR| Constructor and Description |
|---|
JetImgProperty() |
JetImgProperty(jet.controls.JetObject parent,
String name)
Create JetImgProperty instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearEmbed() |
jet.util.image.ImageResource |
getEmbedImageResource() |
byte[] |
getGifBytes()
Deprecated.
|
ImageIcon |
getImageIcon(String currentPath)
Deprecated.
|
jet.util.image.ImageResource |
getImageResourceByID(String resourceId) |
jet.util.image.ImageResource |
getImageResourceByPath(File catalogFile) |
int |
getImageType()
Deprecated.
if "EMBED" return the image type of ImageResource, else return
MediaType.UNKNOWN |
String |
getInspValue()
Effective if
JetProperty.isCurrentAutoValue() is false. |
String |
getLocalPath()
Deprecated.
|
Object |
getObject()
Deprecated.
|
String |
getPath()
If path doesn't set, will return the report resource path,and try to set "catFullName" as catalog full file name
|
Object |
getResource()
Deprecated.
|
Object |
getResource(String depPath)
Deprecated.
|
int |
getResourceID()
Deprecated.
|
String |
getURL()
Deprecated.
|
boolean |
isEmbed()
Effective if
JetProperty.isCurrentAutoValue() is false. |
void |
set(String str)
Sets value and call
setURL(null) |
void |
set(String str,
int mode)
sets the normal value via a String.
|
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(String path)
Deprecated.
|
void |
setObject(Object value) |
void |
setObject(Object value,
int mode)
Sets normal value
|
void |
setResourceID(int id)
Deprecated.
|
void |
setURL(String url)
Deprecated.
|
String |
toString()
Effective if
JetProperty.isCurrentAutoValue() is false. |
get, get, getMatchingSqlType, getPropertyChoice, set, setPropertyChoiceaddPropertyChangeListener, addToAtomicAction, canChangeByBL, canChangeByFmtt, canChangeByOthers, checkValue, copy, curValueEqual, enableAllChangeBys, equal, getChangeBy, getChangeBy, getChangeByBL, getChangeByBL, getChangeByBLName, getChangeByBLName, getChangeByBLType, getChangeByBLType, getChangeByFmtt, getChangeByFmtt, getChangeByFmttName, getChangeByFmttName, getChangeByObject, getChangeByObject, getChangeByObjectName, getChangeByObjectName, getChangeByOtherType, getChangeByOtherType, getCurrentChangedBy, getCurrentChangedBy, getCurrentValue, getCurrentValue, getCurrentValue, getCurrentValue, getEditFlag, getEditorType, getInspValue, getInspValue, getModeProperty, getName, getNormalObject, getNormalObject, getObject, getParent, getPropType, getRuntimeChangeBy, getRuntimeChangeBy, getUnifiedObject, getUnifiedObject, getValue, getValue, isChagneByFmtt, isChagneByFmtt, isChangeByBL, isChangeByBL, isChangeByOther, isChangeByOther, isCurrentAutoValue, isCurrentAutoValue, isCurrentChangedBy, isCurrentChangedBy, isEnableAutoValue, isModeProperty, isNull, isNull, isSetAnyChangeBy, isSetRuntimeChgBy, isSetRuntimeChgBy, isSupportMode, isTransient, isUnavailable, loadFullChangeBy, loadFullChangeBy, propertyChanged, removePropertyChangeListener, saveFullChangeBy, saveFullChangeBy, setAsAutoValue, setAsAutoValue, setCanChangeByBL, setCanChangeByFmtt, setCanChangeByOthers, setChangeByBL, setChangeByBL, setChangeByBL, setChangeByBL, setChangeByFmtt, setChangeByFmtt, setChangeByObject, setChangeByObject, setChangeByObject, setChangeByObject, setEditFlag, setEditorType, setEnableAutoValue, setRuntimeChangeBy, setRuntimeChangeBy, setSupportMode, setTransient, setUnavailable, setUnitValue, setUnitValue, toUnitString, toUnitStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChangeByBL, getChangeByBL, getChangeByBLType, getChangeByBLType, getChangeByFmtt, getChangeByFmtt, getChangeByOtherType, getChangeByOtherType, getCurrentChangedBy, getCurrentChangedBy, getName, getNormalObject, getNormalObject, getObject, getPropType, getRuntimeChangeBy, getRuntimeChangeBy, getUnifiedObject, getUnifiedObject, isChagneByFmtt, isChagneByFmtt, isChangeByBL, isChangeByBL, isChangeByOther, isChangeByOther, isCurrentAutoValue, isCurrentAutoValue, isCurrentChangedBy, isCurrentChangedBy, isModeProperty, isSetRuntimeChgBy, isSetRuntimeChgBy, loadFullChangeBy, saveFullChangeBy, setAsAutoValue, setAsAutoValue, setChangeByBL, setChangeByBL, setChangeByBL, setChangeByBL, setChangeByFmtt, setChangeByFmtt, setChangeByObject, setChangeByObject, setChangeByObject, setChangeByObject, setRuntimeChangeBy, setRuntimeChangeBypublic JetImgProperty()
public JetImgProperty(jet.controls.JetObject parent,
String name)
parent - ownername - namepublic void set(String str)
setURL(null)set in interface jet.util.Propertiableset in class JetStringstr - the String value, null means default valuesetValue(String)public void set(String str, int mode)
JetPropertyset in interface jet.util.Propertiableset in class JetStringIf the subclass supports mode type, need to copy this methodpublic 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.GIFMediaTypepublic void clearEmbed()
public boolean isEmbed()
JetProperty.isCurrentAutoValue() is false. Had this been set to saving/retrieving an Image(Embed)?isEmbed in interface jet.util.ImagePropertiableJetProperty.isCurrentAutoValue()public String getInspValue()
JetProperty.isCurrentAutoValue() is false.
ONLY For Designer UI#setEmbedImage(Image).getInspValue in interface jet.convert.PropInfogetInspValue in class JetPropertyJetProperty.isCurrentAutoValue()public 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.PropInfotoString in class JetStringsetValue(String),
#imageToByte(Image, int),
#isImageEmbed(),
JetProperty.isCurrentAutoValue()public void setObject(Object value)
setObject in interface jet.util.PropertiablesetObject in class JetPropertypublic void setObject(Object value, int mode)
JetPropertysetObject in interface jet.util.PropertiablesetObject in class JetPropertypublic jet.util.image.ImageResource getImageResourceByID(String resourceId)
getImageResourceByID in interface jet.util.ImagePropertiablepublic jet.util.image.ImageResource getImageResourceByPath(File catalogFile)
resourcePath - public jet.util.image.ImageResource getEmbedImageResource()
getEmbedImageResource in interface jet.util.ImagePropertiablepublic int getResourceID()
getResourceID in interface jet.controls.JetResourceablegetResourceID in interface jet.convert.ImgInfopublic void setResourceID(int id)
setResourceID in interface jet.controls.JetResourceableUnsupportedOperationExceptionpublic String getLocalPath()
getLocalPath in interface jet.controls.JetResourceablegetLocalPath in interface jet.convert.ImgInfoUnsupportedOperationExceptionpublic void setLocalPath(String path)
setLocalPath in interface jet.controls.JetResourceableUnsupportedOperationExceptionpublic String getURL()
getURL in interface jet.controls.JetResourceablegetURL in interface jet.convert.ImgInfoUnsupportedOperationExceptionpublic void setURL(String url)
JetResourceablesetURL in interface jet.controls.JetResourceableUnsupportedOperationExceptionpublic String getPath()
getPath in interface jet.convert.ImgInfoUnsupportedOperationExceptionpublic Object getResource(String depPath)
getResource in interface jet.convert.ImgInfodepPath - the based pathUnsupportedOperationExceptionpublic Object getResource()
getResource in interface jet.controls.JetResourceablegetResource in interface jet.convert.ImgInfogetObject(),
getResource(String)public byte[] getGifBytes()
throws IOException
getGifBytes in interface jet.convert.ImgInfoIOExceptionImageEncoder.renderImageToGif(Image)public Object getObject()
getObject in interface jet.convert.ImgInfogetObject in interface jet.util.ImagePropertiablegetObject in interface jet.util.PropertiablegetObject in class JetPropertypublic ImageIcon getImageIcon(String currentPath) throws IOException
ImageIcon via ImageResource(EMBED) and return, else return null
IOExceptionpublic int getImageType()
MediaType.UNKNOWNMediaType,
ImageResource.getImageType()© insightsoftware. All rights reserved.