public class DataImageViewer extends ImageViewer implements Storable, BinaryComponent, FileStreamTransfer
context, editable, enabled, lastEditability, lastVisibility, name, nonstandardPanel, nonstandardPosition, sessionData, toolTipText, visible
Constructor and Description |
---|
DataImageViewer(SessionData sessionData,
DataObject assignedDataObject,
java.lang.String columnNameForBinaryData) |
Modifier and Type | Method and Description |
---|---|
void |
buildRemoteView(ToAppletWriter out)
Build remote view.
|
void |
destroy()
Don't wait until garbage collector removed weak reference.
|
void |
fetchValuesFromRequest(GeneralizedRequest request) |
DataObject |
getAssignedDataObject() |
boolean |
isContentValid() |
boolean |
isFilled()
Returns true if the component has a value.
|
boolean |
isModified()
Returns true if the component's value differs from its initial value.
|
boolean |
isRequirementUnfulfilled()
Returns true if the component's value is mandatory but not filled.
|
boolean |
isToSave() |
boolean |
isValid()
Returns true if the component's value is valid.
|
void |
loadValue()
Loads the component's database stored value.
|
void |
receiveFrom(GeneralizedRequest request)
Receives information from request for further specification what to provide.
|
void |
saveValue()
Stores the component's value.
|
void |
setLabel(java.lang.String label) |
void |
setRequired(boolean required)
Sets the fact that user input is requested (mandatory)
|
void |
setValues(ToAppletWriter out) |
void |
writeToResponseOutputStream(GeneralizedRequest request,
HttpServletResponse response)
Writes the stream to the response output stream.
|
beginAction, endAction, free, getContext, getName, getTranslation, isEnabled, isVisible, register, requestFocusInWindow, resetLastStatus, selectAll, setEditable, setEnabled, setToolTipText, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
requestFocusInWindow, selectAll
setToolTipText
getName
public DataImageViewer(SessionData sessionData, DataObject assignedDataObject, java.lang.String columnNameForBinaryData)
public void setLabel(java.lang.String label)
public DataObject getAssignedDataObject()
getAssignedDataObject
in interface Storable
public void loadValue()
Storable
public boolean isToSave()
public boolean isContentValid()
public void buildRemoteView(ToAppletWriter out)
AppletTalker
buildRemoteView
in interface AppletTalker
buildRemoteView
in interface InlayCenterContent
buildRemoteView
in class RemoteElement
out
- the writer which will be read by the appletpublic void setValues(ToAppletWriter out)
setValues
in interface RemoteContent
setValues
in class RemoteElement
public void fetchValuesFromRequest(GeneralizedRequest request)
fetchValuesFromRequest
in interface Remotable
fetchValuesFromRequest
in class ImageViewer
public void receiveFrom(GeneralizedRequest request)
FileStreamTransfer
receiveFrom
in interface FileStreamTransfer
request
- the request starting the stream transferpublic void writeToResponseOutputStream(GeneralizedRequest request, HttpServletResponse response)
FileStreamTransfer
writeToResponseOutputStream
in interface FileStreamTransfer
request
- the request starting the stream transferresponse
- the servlet response to which the stream is to write topublic void saveValue()
Storable
saveValue
in interface Storable
saveValue
in interface BinaryComponent
public void setRequired(boolean required)
Storable
setRequired
in interface Storable
required
- whether this input is mandatory or not.public boolean isFilled()
Storable
public boolean isModified()
Storable
isModified
in interface Storable
public boolean isValid()
Storable
public boolean isRequirementUnfulfilled()
Storable
isRequirementUnfulfilled
in interface Storable
public void destroy()
Remotable
destroy
in interface Remotable
destroy
in class ImageViewer
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de