public class JetImgProperty extends JetString
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
Constructor and Description |
---|
JetImgProperty() |
JetImgProperty(JetObject parent,
java.lang.String name)
Create JetImgProperty instance
|
Modifier and Type | Method and Description |
---|---|
void |
clearEmbed() |
ImageResource |
getEmbedImageResource() |
byte[] |
getGifBytes()
Deprecated.
|
javax.swing.ImageIcon |
getImageIcon(java.lang.String currentPath)
Deprecated.
|
ImageResource |
getImageResourceByID(java.lang.String resourceId) |
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 |
set(java.lang.String str,
int mode)
sets the normal value via a String.
|
void |
setEmbedImage(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) |
void |
setObject(java.lang.Object value,
int mode)
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, get, getMatchingSqlType, getPropertyChoice, set, setPropertyChoice
addPropertyChangeListener, 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, toUnitString
public JetImgProperty()
public JetImgProperty(JetObject parent, java.lang.String name)
parent
- ownername
- namepublic void set(java.lang.String str)
setURL(null)
set
in class JetString
str
- the String value, null
means default valuesetValue(String)
public void set(java.lang.String str, int mode)
JetProperty
public void setEmbedImage(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)?JetProperty.isCurrentAutoValue()
public java.lang.String getInspValue()
JetProperty.isCurrentAutoValue()
is false.
ONLY For Designer UI#setEmbedImage(Image)
.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 class JetString
setValue(String)
,
#imageToByte(Image, int)
,
#isImageEmbed()
,
JetProperty.isCurrentAutoValue()
public void setObject(java.lang.Object value)
setObject
in class JetProperty
public void setObject(java.lang.Object value, int mode)
JetProperty
setObject
in class JetProperty
public ImageResource getImageResourceByID(java.lang.String resourceId)
public ImageResource getImageResourceByPath(java.io.File catalogFile)
resourcePath
- public ImageResource getEmbedImageResource()
public int getResourceID()
public void setResourceID(int id)
java.lang.UnsupportedOperationException
public java.lang.String getLocalPath()
java.lang.UnsupportedOperationException
public void setLocalPath(java.lang.String path)
java.lang.UnsupportedOperationException
public java.lang.String getURL()
java.lang.UnsupportedOperationException
public void setURL(java.lang.String url)
JetResourceable
java.lang.UnsupportedOperationException
public java.lang.String getPath()
java.lang.UnsupportedOperationException
public java.lang.Object getResource(java.lang.String depPath)
depPath
- the based pathjava.lang.UnsupportedOperationException
public java.lang.Object getResource()
getObject()
,
getResource(String)
public byte[] getGifBytes() throws java.io.IOException
java.io.IOException
jet.export.util.ImageEncoder#renderImageToGif(Image)
public java.lang.Object getObject()
getObject
in class JetProperty
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()