public abstract class RemoteElement extends java.lang.Object implements RemoteContent, ExemptibleManager
Modifier and Type | Field and Description |
---|---|
protected Context |
context |
protected boolean |
editable |
protected boolean |
enabled |
protected boolean |
lastEditability |
protected boolean |
lastVisibility |
protected java.lang.String |
name
the name of the remote element to be identified for update
|
protected java.lang.String |
nonstandardPanel |
protected int |
nonstandardPosition |
protected SessionData |
sessionData |
protected java.lang.String |
toolTipText |
protected boolean |
visible |
Constructor and Description |
---|
RemoteElement(SessionData sessionData)
Constructs a new remote element without need to be identified for update.
|
RemoteElement(SessionData sessionData,
java.lang.String name)
Constructs a new remote element to be identified by name, e.g. to update it as one of several
remote elements in an attribute list.
|
Modifier and Type | Method and Description |
---|---|
void |
beginAction(ToAppletWriter out) |
void |
buildRemoteView(ToAppletWriter out)
Build remote view.
|
void |
endAction(ToAppletWriter out) |
void |
free()
Releases external resources.
|
Context |
getContext()
Returns the remote element's context.
|
java.lang.String |
getName()
Returns the name of the input field.
|
protected java.lang.String |
getTranslation(java.lang.String resourceKey) |
boolean |
isEnabled()
Determines whether this button is enabled.
|
boolean |
isVisible()
Returns true if component is visible.
|
void |
register(Exemptible exemptible)
Registers an object to free its external resources as soon as they are not needed any more.
|
void |
requestFocusInWindow()
Set focus on the receiving component if isRequestFocusEnabled returns true.
|
void |
resetLastStatus() |
void |
selectAll()
Selects all input of the component, if it is supported - e.g. in JTextField.
|
void |
setEditable(boolean editable)
Sets the flag that determines whether or not this component is editable.
|
void |
setEnabled(boolean enabled) |
void |
setToolTipText(java.lang.String newToolTipText)
Sets the component's tool tip text.
|
void |
setValues(ToAppletWriter out) |
void |
setVisible(boolean visible)
Makes the component visible or invisible.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy, fetchValuesFromRequest
protected SessionData sessionData
protected java.lang.String name
protected Context context
protected java.lang.String toolTipText
protected java.lang.String nonstandardPanel
protected int nonstandardPosition
protected boolean enabled
protected boolean visible
protected boolean lastVisibility
protected boolean editable
protected boolean lastEditability
public RemoteElement(SessionData sessionData)
sessionData
- the shared data of the sessionpublic RemoteElement(SessionData sessionData, java.lang.String name)
sessionData
- the shared data of the sessionname
- the name of the remote element to be identified for updatepublic void setToolTipText(java.lang.String newToolTipText)
Remotable
setToolTipText
in interface Remotable
newToolTipText
- the component's tool tip textpublic Context getContext()
public void register(Exemptible exemptible)
ExemptibleManager
register
in interface ExemptibleManager
exemptible
- the exemptible object to registerpublic void setEditable(boolean editable)
editable
- a flag indicating whether this component should be user editable#setEditableForUserTyping
public void setEnabled(boolean enabled)
public boolean isEnabled()
setEnabled
method.true
if the button is enabled;
false
otherwise.setEnabled(boolean)
public java.lang.String getName()
protected java.lang.String getTranslation(java.lang.String resourceKey)
public void requestFocusInWindow()
RemoteContent
requestFocusInWindow
in interface RemoteContent
public void selectAll()
RemoteContent
selectAll
in interface RemoteContent
public void setVisible(boolean visible)
visible
- true to make the component visible; false to make it invisiblepublic boolean isVisible()
public void resetLastStatus()
public void beginAction(ToAppletWriter out)
public void endAction(ToAppletWriter out)
public void buildRemoteView(ToAppletWriter out)
AppletTalker
buildRemoteView
in interface AppletTalker
out
- the writer which will be read by the appletpublic void setValues(ToAppletWriter out)
setValues
in interface RemoteContent
public void free()
ExemptibleManager
free
in interface Exemptible
free
in interface ExemptibleManager
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de