java.lang.Object
org.gui4j.core.Gui4jAbstractComponent
org.gui4j.component.Gui4jAbstractPopupComponent
org.gui4j.component.Gui4jJComponent
org.gui4j.component.Gui4jTable
- All Implemented Interfaces:
- org.gui4j.exception.ErrorTags, org.gui4j.core.Gui4jComponent, java.io.Serializable
- public final class Gui4jTable
- extends Gui4jJComponent
| Fields inherited from interface org.gui4j.exception.ErrorTags |
EXCEPTION_OCCURED, PROGRAMMING_ERROR, PROGRAMMING_ERROR_illegal_access_exception, PROGRAMMING_ERROR_instantiation_exception, PROGRAMMING_ERROR_invocation_target_exception, PROGRAMMING_ERROR_method_ambiguous, PROGRAMMING_ERROR_method_not_found, PROGRAMMING_ERROR_parameter_null, RESOURCE_ERROR, RESOURCE_ERROR_access_type_not_compatible, RESOURCE_ERROR_access_unexpected_character, RESOURCE_ERROR_access_unexpected_end, RESOURCE_ERROR_access_value_type_not_defined, RESOURCE_ERROR_alias_already_defined, RESOURCE_ERROR_alias_class_not_found, RESOURCE_ERROR_alias_not_defined_in_path, RESOURCE_ERROR_alias_undefined, RESOURCE_ERROR_attribute_editable_defined, RESOURCE_ERROR_attribute_listEditable_defined, RESOURCE_ERROR_attribute_not_defined, RESOURCE_ERROR_double_DataConversionException, RESOURCE_ERROR_element_at_row_col_already_defined, RESOURCE_ERROR_gui4jComponent_already_defined, RESOURCE_ERROR_gui4jComponent_already_registered, RESOURCE_ERROR_gui4jComponent_not_defined, RESOURCE_ERROR_gui4jComponent_not_registered, RESOURCE_ERROR_int_DataConversionException, RESOURCE_ERROR_invalid_column, RESOURCE_ERROR_invalid_defaultButton, RESOURCE_ERROR_invalid_keystroke, RESOURCE_ERROR_invalid_row, RESOURCE_ERROR_invalid_url, RESOURCE_ERROR_jdom_exception, RESOURCE_ERROR_labelform_column_conflict, RESOURCE_ERROR_placement_must_contain_gui4jComponent, RESOURCE_ERROR_property_getter_type_incompatible, RESOURCE_ERROR_style_defined_twice, RESOURCE_ERROR_style_not_defined, RESOURCE_ERROR_tableLayout_invalid_col_row_str, RESOURCE_ERROR_type_not_compatible, RESOURCE_ERROR_unexpected_gui4jStyle_end, RESOURCE_ERROR_unknown_param, RESOURCE_ERROR_unknown_param_in_include |
|
Method Summary |
void |
addColumn(java.lang.Class contentClass,
Gui4jTable.Gui4jColumnTable column)
|
void |
addColumnGroup(Gui4jTable.Gui4jColumnHeaderTable columnGroup)
|
void |
addRowHeaderName(java.lang.Class type,
org.gui4j.core.Gui4jCall gui4jCall)
|
private org.gui4j.core.swing.ColumnGroup |
createColumnGroupInstances(javax.swing.table.TableColumnModel tcm,
Gui4jTable.Gui4jColumnHeaderTable columnGroup,
org.gui4j.Gui4jCallBase gui4jCall)
|
protected org.gui4j.core.Gui4jComponentInstance |
createComponentInstance(org.gui4j.core.Gui4jSwingContainer gui4jSwingContainer,
org.gui4j.Gui4jCallBase gui4jCallBase,
org.gui4j.core.Gui4jQualifiedComponent gui4jComponentInPath)
Method createComponentInstance |
protected org.gui4j.core.Gui4jMouseListener |
createMouseListener(org.gui4j.core.Gui4jComponentInstance gui4jComponentInstance)
Method createMouseListener |
void |
dispose(org.gui4j.core.Gui4jComponentInstance gui4jComponentInstance)
Gibt Speicher frei in Verbindung zu der angegebenen Instanz |
protected java.lang.Object |
getPopupContext(org.gui4j.core.Gui4jComponentInstance gui4jComponentInstance,
java.awt.event.MouseEvent mouseEvent)
Gui4jComponents should override this method if they want to supply a context object
to its popup menu. |
boolean |
hasRowHeaderName(java.lang.Class type)
|
void |
setActionCommand(org.gui4j.core.Gui4jCall actionCommand)
|
void |
setCellSelectionCall(org.gui4j.core.Gui4jCall cellSelection)
|
boolean |
setCellSelectionPair(org.gui4j.core.swing.Gui4jJTable table,
org.gui4j.util.Pair pair)
|
void |
setColSelectionMode(int colSelectionMode)
Sets the colSelectionMode. |
void |
setContent(org.gui4j.core.Gui4jComponentInstance gui4jComponentInstance,
java.util.Collection content)
|
void |
setEditCellSelection(org.gui4j.core.swing.Gui4jJTable table,
org.gui4j.util.Pair pair)
|
private void |
setHeader(org.gui4j.Gui4jCallBase gui4jCallBase,
javax.swing.JTable table)
|
void |
setHeaderBackground(org.gui4j.core.Gui4jCall headerBackground)
Sets the headerBackground. |
void |
setHideFocus(boolean hideFocus)
|
void |
setNames(org.gui4j.core.Gui4jComponentInstance gui4jComponentInstance,
java.util.Collection rows)
|
void |
setOnCellSelect(java.lang.Class typeClass,
org.gui4j.core.Gui4jCall onCellSelect)
Sets the onCellSelect. |
void |
setOnColSelect(java.lang.Class typeClass,
org.gui4j.core.Gui4jCall onColSelect)
Sets the onColSelect. |
void |
setOnDoubleClick(java.lang.Class typeClass,
org.gui4j.core.Gui4jCall onDoubleClick)
Sets the onDoubleClick. |
void |
setOnRowSelect(java.lang.Class classType,
org.gui4j.core.Gui4jCall onRowSelect)
|
void |
setOnSetValue(org.gui4j.core.Gui4jCall onSetValue)
Sets the onSetValue. |
void |
setPopupContext(java.lang.Class classType,
org.gui4j.core.Gui4jCall onRowSelect)
|
protected void |
setProperties(org.gui4j.core.Gui4jComponentInstance gui4jComponentInstance)
Initializes attributes for the generated swing instance |
void |
setRefresh(org.gui4j.core.Gui4jCall[] refresh)
|
void |
setReorderingAllowed(boolean reorderingAllowed)
Sets the reorderingAllowed. |
void |
setRowHeaderCharacters(org.gui4j.core.Gui4jCall rowHeaderCharacters)
|
void |
setRownames(org.gui4j.core.Gui4jComponentInstance gui4jComponentInstance,
java.util.Collection rows)
|
void |
setRowSelectionAllowed(boolean rowSelectionAllowed)
Sets the rowSelectionAllowed. |
boolean |
setRowSelectionIndex(org.gui4j.core.swing.Gui4jJTable table,
int row)
|
void |
setRowSelectionIndexCall(org.gui4j.core.Gui4jCall rowSelection)
|
boolean |
setRowSelectionItem(org.gui4j.core.swing.Gui4jJTable table,
java.lang.Object item)
|
void |
setRowSelectionItemCall(org.gui4j.core.Gui4jCall rowSelectionItem)
|
void |
setRowSelectionMode(int rowSelectionMode)
Sets the rowSelectionMode. |
void |
setSelectionMode(org.gui4j.core.swing.Gui4jJTable table,
int selectionMode)
|
| Methods inherited from class org.gui4j.core.Gui4jAbstractComponent |
applyInitialProperties, createGui4jComponentInstance, definePropertyGetter, definePropertySetter, definePropertySetter, evaluateContext, getComponentClass, getConfigurationSource, getGui4j, getGui4jComponentContainer, getGui4jComponentProperties, getId, getPopupLocation, handleException, handleSuccess, refreshComponent, registerEvents, setApply, setBackground, setContext, setCursor, setEnabled, setFocusable, setFont, setForeground, setOnClick, setOnInit, setPopupMenu, setVisible |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mLogger
protected static final org.apache.commons.logging.Log mLogger
mColumnManager
protected final Gui4jTable.ColumnManager mColumnManager
mDefaultType
protected final java.lang.Class mDefaultType
mOnCellSelect
private final org.gui4j.core.Gui4jTypeManager mOnCellSelect
mOnRowSelect
private final org.gui4j.core.Gui4jTypeManager mOnRowSelect
mOnColSelect
private final org.gui4j.core.Gui4jTypeManager mOnColSelect
mOnDoubleClick
private final org.gui4j.core.Gui4jTypeManager mOnDoubleClick
mPopupContext
private final org.gui4j.core.Gui4jTypeManager mPopupContext
mRowManager
protected final org.gui4j.core.Gui4jTypeManager mRowManager
mRefresh
private org.gui4j.core.Gui4jCall[] mRefresh
mOnSetValue
protected org.gui4j.core.Gui4jCall mOnSetValue
mCellSelectionPair
protected org.gui4j.core.Gui4jCall mCellSelectionPair
mRowSelectionIndex
protected org.gui4j.core.Gui4jCall mRowSelectionIndex
mRowSelectionItem
protected org.gui4j.core.Gui4jCall mRowSelectionItem
mHeaderBackground
protected org.gui4j.core.Gui4jCall mHeaderBackground
mActionCommand
protected org.gui4j.core.Gui4jCall mActionCommand
mRowHeaderCharacters
protected org.gui4j.core.Gui4jCall mRowHeaderCharacters
mHideFocus
protected boolean mHideFocus
mVisibleRows
private final int mVisibleRows
mAutomaticVisibleRows
protected final boolean mAutomaticVisibleRows
mAutomaticRefresh
protected final boolean mAutomaticRefresh
mUseRowHeaders
protected final boolean mUseRowHeaders
mHeaderLines
private final int mHeaderLines
mReorderingAllowed
private boolean mReorderingAllowed
mRowSelectionAllowed
protected boolean mRowSelectionAllowed
mRowSelectionMode
private int mRowSelectionMode
mColSelectionMode
private int mColSelectionMode
mColumnGroups
private java.util.List mColumnGroups
mResizeMode
private int mResizeMode
Gui4jTable
public Gui4jTable(org.gui4j.core.Gui4jComponentContainer gui4jComponentContainer,
java.lang.String id,
int visibleRows,
int headerLines,
java.lang.Class defaultType,
boolean automaticVisibleRows,
boolean automaticRefresh,
boolean useOriginalCollection,
boolean useRowHeaders,
int resizeMode)
setProperties
protected void setProperties(org.gui4j.core.Gui4jComponentInstance gui4jComponentInstance)
- Description copied from class:
org.gui4j.core.Gui4jAbstractComponent
- Initializes attributes for the generated swing instance
- Overrides:
setProperties in class Gui4jJComponent
createComponentInstance
protected org.gui4j.core.Gui4jComponentInstance createComponentInstance(org.gui4j.core.Gui4jSwingContainer gui4jSwingContainer,
org.gui4j.Gui4jCallBase gui4jCallBase,
org.gui4j.core.Gui4jQualifiedComponent gui4jComponentInPath)
- Description copied from class:
org.gui4j.core.Gui4jAbstractComponent
- Method createComponentInstance
- Overrides:
createComponentInstance in class Gui4jJComponent
setHeader
private void setHeader(org.gui4j.Gui4jCallBase gui4jCallBase,
javax.swing.JTable table)
createColumnGroupInstances
private org.gui4j.core.swing.ColumnGroup createColumnGroupInstances(javax.swing.table.TableColumnModel tcm,
Gui4jTable.Gui4jColumnHeaderTable columnGroup,
org.gui4j.Gui4jCallBase gui4jCall)
setHeaderBackground
public void setHeaderBackground(org.gui4j.core.Gui4jCall headerBackground)
- Sets the headerBackground.
createMouseListener
protected org.gui4j.core.Gui4jMouseListener createMouseListener(org.gui4j.core.Gui4jComponentInstance gui4jComponentInstance)
- Description copied from class:
org.gui4j.core.Gui4jAbstractComponent
- Method createMouseListener
setRowSelectionIndexCall
public void setRowSelectionIndexCall(org.gui4j.core.Gui4jCall rowSelection)
setRowSelectionItemCall
public void setRowSelectionItemCall(org.gui4j.core.Gui4jCall rowSelectionItem)
setCellSelectionCall
public void setCellSelectionCall(org.gui4j.core.Gui4jCall cellSelection)
setRowHeaderCharacters
public void setRowHeaderCharacters(org.gui4j.core.Gui4jCall rowHeaderCharacters)
setOnRowSelect
public void setOnRowSelect(java.lang.Class classType,
org.gui4j.core.Gui4jCall onRowSelect)
setActionCommand
public void setActionCommand(org.gui4j.core.Gui4jCall actionCommand)
setHideFocus
public void setHideFocus(boolean hideFocus)
setPopupContext
public void setPopupContext(java.lang.Class classType,
org.gui4j.core.Gui4jCall onRowSelect)
setContent
public void setContent(org.gui4j.core.Gui4jComponentInstance gui4jComponentInstance,
java.util.Collection content)
setEditCellSelection
public void setEditCellSelection(org.gui4j.core.swing.Gui4jJTable table,
org.gui4j.util.Pair pair)
setCellSelectionPair
public boolean setCellSelectionPair(org.gui4j.core.swing.Gui4jJTable table,
org.gui4j.util.Pair pair)
setRowSelectionIndex
public boolean setRowSelectionIndex(org.gui4j.core.swing.Gui4jJTable table,
int row)
setRowSelectionItem
public boolean setRowSelectionItem(org.gui4j.core.swing.Gui4jJTable table,
java.lang.Object item)
addColumn
public void addColumn(java.lang.Class contentClass,
Gui4jTable.Gui4jColumnTable column)
addRowHeaderName
public void addRowHeaderName(java.lang.Class type,
org.gui4j.core.Gui4jCall gui4jCall)
hasRowHeaderName
public boolean hasRowHeaderName(java.lang.Class type)
addColumnGroup
public void addColumnGroup(Gui4jTable.Gui4jColumnHeaderTable columnGroup)
setSelectionMode
public void setSelectionMode(org.gui4j.core.swing.Gui4jJTable table,
int selectionMode)
setRefresh
public void setRefresh(org.gui4j.core.Gui4jCall[] refresh)
setOnSetValue
public void setOnSetValue(org.gui4j.core.Gui4jCall onSetValue)
- Sets the onSetValue.
setReorderingAllowed
public void setReorderingAllowed(boolean reorderingAllowed)
- Sets the reorderingAllowed.
setColSelectionMode
public void setColSelectionMode(int colSelectionMode)
- Sets the colSelectionMode.
setRowSelectionMode
public void setRowSelectionMode(int rowSelectionMode)
- Sets the rowSelectionMode.
setRowSelectionAllowed
public void setRowSelectionAllowed(boolean rowSelectionAllowed)
- Sets the rowSelectionAllowed.
setOnDoubleClick
public void setOnDoubleClick(java.lang.Class typeClass,
org.gui4j.core.Gui4jCall onDoubleClick)
- Sets the onDoubleClick.
setOnCellSelect
public void setOnCellSelect(java.lang.Class typeClass,
org.gui4j.core.Gui4jCall onCellSelect)
- Sets the onCellSelect.
setOnColSelect
public void setOnColSelect(java.lang.Class typeClass,
org.gui4j.core.Gui4jCall onColSelect)
- Sets the onColSelect.
setRownames
public void setRownames(org.gui4j.core.Gui4jComponentInstance gui4jComponentInstance,
java.util.Collection rows)
setNames
public void setNames(org.gui4j.core.Gui4jComponentInstance gui4jComponentInstance,
java.util.Collection rows)
dispose
public void dispose(org.gui4j.core.Gui4jComponentInstance gui4jComponentInstance)
- Description copied from interface:
org.gui4j.core.Gui4jComponent
- Gibt Speicher frei in Verbindung zu der angegebenen Instanz
getPopupContext
protected java.lang.Object getPopupContext(org.gui4j.core.Gui4jComponentInstance gui4jComponentInstance,
java.awt.event.MouseEvent mouseEvent)
- Description copied from class:
org.gui4j.core.Gui4jAbstractComponent
- Gui4jComponents should override this method if they want to supply a context object
to its popup menu.