public class UniversalTable extends RemoteElement implements RemotableControler, PopupBuilder, ActionInterpreter
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector<ColumnEditor> |
editors |
protected java.util.Vector<Identifier> |
selectedIdentifiers |
context, editable, enabled, lastEditability, lastVisibility, name, nonstandardPanel, nonstandardPosition, sessionData, toolTipText, visible
Constructor and Description |
---|
UniversalTable(SessionData sessionData,
IdentifierTableModel tableModel)
Constructs a new universal table.
|
UniversalTable(SessionData sessionData,
IdentifierTableModel tableModel,
java.lang.String name)
Constructs a new universal table.
|
Modifier and Type | Method and Description |
---|---|
void |
addEditor(ColumnEditor newEditor) |
void |
buildPopup(ToAppletWriter out) |
void |
buildRemoteView(ToAppletWriter out)
Build remote view.
|
protected PopupMenu |
createContextMenu(java.util.Vector<Identifier> ids)
Returns the appropriate context menu according to the selected IDs
This method is called only of supportsContextMenu() returns true.
|
void |
destroy()
Don't wait until garbage collector removed weak reference.
|
void |
fetchValuesFromRequest(GeneralizedRequest request) |
IdentifierTableModel |
getModel() |
java.util.Vector<Identifier> |
getSelectedIdentifiers()
Returns the identifiers of selected items.
|
int |
getSelectedRow()
Returns the selected row.
|
boolean |
isElementOfAttributeList() |
boolean |
perform(java.lang.String action)
Performs this action if the passed action ID is equal to the action ID
of the class that implements this interface.
|
void |
process(GeneralizedRequest request) |
void |
requestFocusInWindow()
Set focus on the receiving component if isRequestFocusEnabled returns true.
|
void |
selectAll()
Selects all input of the component, if it is supported - e.g. in JTextField.
|
void |
setElementOfAttributeList(boolean isElementOfAttributeList) |
void |
setHeaders(java.util.Vector<java.lang.String> colHeaders) |
void |
setPreferredScrollableViewportSize(java.awt.Dimension size) |
void |
setPreferredWidth(int colIndex,
int width) |
protected boolean |
supportsContextMenu()
Returns true if context menu is supported for this table.
|
beginAction, endAction, free, getContext, getName, getTranslation, isEnabled, isVisible, register, resetLastStatus, setEditable, setEnabled, setToolTipText, setValues, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setVisible
setToolTipText
protected java.util.Vector<ColumnEditor> editors
protected java.util.Vector<Identifier> selectedIdentifiers
public UniversalTable(SessionData sessionData, IdentifierTableModel tableModel)
sessionData
- the shared data of the sessiontableModel
- the table model to be usedpublic UniversalTable(SessionData sessionData, IdentifierTableModel tableModel, java.lang.String name)
sessionData
- the shared data of the sessiontableModel
- the table model to be usedname
- the name of the remote element to be identified for updatepublic void setElementOfAttributeList(boolean isElementOfAttributeList)
public boolean isElementOfAttributeList()
public void setHeaders(java.util.Vector<java.lang.String> colHeaders)
public void setPreferredWidth(int colIndex, int width)
public void setPreferredScrollableViewportSize(java.awt.Dimension size)
public void addEditor(ColumnEditor newEditor)
public IdentifierTableModel getModel()
protected boolean supportsContextMenu()
createContextMenu(Vector)
public void selectAll()
RemoteContent
selectAll
in interface RemoteContent
selectAll
in class RemoteElement
public void requestFocusInWindow()
RemoteContent
requestFocusInWindow
in interface RemoteContent
requestFocusInWindow
in class RemoteElement
public void buildRemoteView(ToAppletWriter out)
AppletTalker
buildRemoteView
in interface AppletTalker
buildRemoteView
in class RemoteElement
out
- the writer which will be read by the appletpublic void fetchValuesFromRequest(GeneralizedRequest request)
fetchValuesFromRequest
in interface Remotable
public java.util.Vector<Identifier> getSelectedIdentifiers()
public int getSelectedRow()
public void process(GeneralizedRequest request)
process
in interface RemotableControler
protected PopupMenu createContextMenu(java.util.Vector<Identifier> ids)
ids
- the selected IDssupportsContextMenu()
public void buildPopup(ToAppletWriter out)
buildPopup
in interface PopupBuilder
public boolean perform(java.lang.String action)
ActionInterpreter
perform
in interface ActionInterpreter
action
- the action to performCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de