Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.gui4j.component
Class Gui4jCellTable  view Gui4jCellTable download Gui4jCellTable.java

java.lang.Object
  extended byorg.gui4j.core.Gui4jAbstractComponent
      extended byorg.gui4j.component.Gui4jAbstractPopupComponent
          extended byorg.gui4j.component.Gui4jJComponent
              extended byorg.gui4j.component.Gui4jCellTable
All Implemented Interfaces:
org.gui4j.exception.ErrorTags, org.gui4j.core.Gui4jComponent, java.io.Serializable

public class Gui4jCellTable
extends Gui4jJComponent

Table where display (reflection) methods can be defined for each cell independantly. The table always contains a header row.


Nested Class Summary
 class Gui4jCellTable.CellRenderer
           
static interface Gui4jCellTable.Enabled
           
 class Gui4jCellTable.Gui4jCell
           
 class Gui4jCellTable.Gui4jColumnTable
           
 class Gui4jCellTable.Gui4jTableModel
           
 
Field Summary
protected  boolean mAutomaticRefresh
           
protected  Gui4jCellTable.Gui4jCell[][] mCell
           
protected  int mCols
           
private  int mColSelectionMode
           
protected  Gui4jCellTable.Gui4jColumnTable[] mColumn
           
protected  org.gui4j.core.Gui4jThreadManager mGui4jThreadManager
           
private  org.gui4j.core.Gui4jCall mHeaderBackground
           
protected static org.apache.commons.logging.Log mLogger
           
protected  org.gui4j.core.Gui4jCall mOnSetValue
           
protected  org.gui4j.core.Gui4jCall[] mRefresh
           
private  boolean mReorderingAllowed
           
protected  java.lang.String[] mRowIndentation
           
protected  org.gui4j.core.Gui4jCall[] mRowName
           
protected  int mRows
           
private  boolean mRowSelectionAllowed
           
private  int mRowSelectionMode
           
protected  org.gui4j.core.Gui4jTextAttribute[] mRowTextAttribute
           
protected  org.gui4j.core.Gui4jCall[] mRowValue
           
private  boolean mUseColumnsHeaders
           
private  boolean mUseRowHeaders
           
protected  int mVisibleRows
           
static java.lang.String PARAM_COL
           
static java.lang.String PARAM_COLVALUE
           
static java.lang.String PARAM_LIST
           
static java.lang.String PARAM_LIST_ITEM
           
static java.lang.String PARAM_ROW
           
static java.lang.String PARAM_ROWVALUE
           
static java.lang.String PARAM_VALUE
           
 
Fields inherited from class org.gui4j.component.Gui4jJComponent
mGrabFocus
 
Fields inherited from class org.gui4j.core.Gui4jAbstractComponent
mContext, mPopupMenuInPath, STORAGE_POPUP_CONTEXT, STORAGE_POPUP_ORIGIN
 
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
 
Constructor Summary
Gui4jCellTable(org.gui4j.core.Gui4jComponentContainer gui4jComponentContainer, java.lang.String id, int rows, int cols, int visibleRows, boolean useRowHeaders, boolean useColumnHeaders, boolean automaticRefresh)
          Constructor for Gui4jCellTable
 
Method Summary
protected  org.gui4j.core.Gui4jComponentInstance createComponentInstance(org.gui4j.core.Gui4jSwingContainer gui4jSwingContainer, org.gui4j.Gui4jCallBase gui4jCallBase, org.gui4j.core.Gui4jQualifiedComponent gui4jComponentInPath)
          Method createComponentInstance
 void dispose(org.gui4j.core.Gui4jComponentInstance gui4jComponentInstance)
          Gibt Speicher frei in Verbindung zu der angegebenen Instanz
 java.lang.Class getColumnValueType(int col)
           
 java.lang.Class getRowValueType(int row)
           
 boolean isDefined(int row, int col)
           
 void refreshComponent(org.gui4j.core.Gui4jComponentInstance gui4jComponentInstance)
          Aktualisiert die Komponente.
protected  void setCell(int row, int col, Gui4jCellTable.Gui4jCell cell)
           
 void setColSelectionMode(int colSelectionMode)
          Sets the colSelectionMode.
protected  void setColumn(int col, Gui4jCellTable.Gui4jColumnTable gui4jColumnTable)
           
 void setHeaderBackground(org.gui4j.core.Gui4jCall headerBackground)
          Sets the headerBackground.
 void setOnSetValue(org.gui4j.core.Gui4jCall onSetValue)
          Sets the onSetValue.
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 setRow(int row, org.gui4j.core.Gui4jCall rowValue, org.gui4j.core.Gui4jCall rowName, org.gui4j.core.Gui4jTextAttribute gui4jTextAttribute, int indentation)
           
 void setRowSelectionAllowed(boolean rowSelectionAllowed)
          Sets the rowSelectionAllowed.
 void setRowSelectionMode(int rowSelectionMode)
          Sets the rowSelectionMode.
 
Methods inherited from class org.gui4j.component.Gui4jJComponent
handleReadOnly, setBorder, setFocusTraversalKeysBackward, setFocusTraversalKeysForward, setGrabFocus, setHandleReadOnly, setKeyMapId, setOpaque, setTooltip
 
Methods inherited from class org.gui4j.component.Gui4jAbstractPopupComponent
showPopupMenu
 
Methods inherited from class org.gui4j.core.Gui4jAbstractComponent
applyInitialProperties, createGui4jComponentInstance, createMouseListener, definePropertyGetter, definePropertySetter, definePropertySetter, evaluateContext, getComponentClass, getConfigurationSource, getGui4j, getGui4jComponentContainer, getGui4jComponentProperties, getId, getPopupContext, getPopupLocation, handleException, handleSuccess, 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
 

Field Detail

PARAM_ROW

public static final java.lang.String PARAM_ROW
See Also:
Constant Field Values

PARAM_COL

public static final java.lang.String PARAM_COL
See Also:
Constant Field Values

PARAM_VALUE

public static final java.lang.String PARAM_VALUE
See Also:
Constant Field Values

PARAM_COLVALUE

public static final java.lang.String PARAM_COLVALUE
See Also:
Constant Field Values

PARAM_ROWVALUE

public static final java.lang.String PARAM_ROWVALUE
See Also:
Constant Field Values

PARAM_LIST

public static final java.lang.String PARAM_LIST
See Also:
Constant Field Values

PARAM_LIST_ITEM

public static final java.lang.String PARAM_LIST_ITEM
See Also:
Constant Field Values

mLogger

protected static final org.apache.commons.logging.Log mLogger

mRowValue

protected final org.gui4j.core.Gui4jCall[] mRowValue

mRowName

protected final org.gui4j.core.Gui4jCall[] mRowName

mRowTextAttribute

protected final org.gui4j.core.Gui4jTextAttribute[] mRowTextAttribute

mRowIndentation

protected final java.lang.String[] mRowIndentation

mRows

protected final int mRows

mVisibleRows

protected final int mVisibleRows

mCols

protected final int mCols

mColumn

protected final Gui4jCellTable.Gui4jColumnTable[] mColumn

mCell

protected final Gui4jCellTable.Gui4jCell[][] mCell

mGui4jThreadManager

protected final org.gui4j.core.Gui4jThreadManager mGui4jThreadManager

mRefresh

protected org.gui4j.core.Gui4jCall[] mRefresh

mOnSetValue

protected org.gui4j.core.Gui4jCall mOnSetValue

mReorderingAllowed

private boolean mReorderingAllowed

mRowSelectionAllowed

private boolean mRowSelectionAllowed

mRowSelectionMode

private int mRowSelectionMode

mColSelectionMode

private int mColSelectionMode

mUseRowHeaders

private final boolean mUseRowHeaders

mUseColumnsHeaders

private final boolean mUseColumnsHeaders

mHeaderBackground

private org.gui4j.core.Gui4jCall mHeaderBackground

mAutomaticRefresh

protected final boolean mAutomaticRefresh
Constructor Detail

Gui4jCellTable

public Gui4jCellTable(org.gui4j.core.Gui4jComponentContainer gui4jComponentContainer,
                      java.lang.String id,
                      int rows,
                      int cols,
                      int visibleRows,
                      boolean useRowHeaders,
                      boolean useColumnHeaders,
                      boolean automaticRefresh)
Constructor for Gui4jCellTable

Method Detail

setHeaderBackground

public void setHeaderBackground(org.gui4j.core.Gui4jCall headerBackground)
Sets the headerBackground.


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

setColumn

protected void setColumn(int col,
                         Gui4jCellTable.Gui4jColumnTable gui4jColumnTable)

getColumnValueType

public java.lang.Class getColumnValueType(int col)

getRowValueType

public java.lang.Class getRowValueType(int row)

setRow

public void setRow(int row,
                   org.gui4j.core.Gui4jCall rowValue,
                   org.gui4j.core.Gui4jCall rowName,
                   org.gui4j.core.Gui4jTextAttribute gui4jTextAttribute,
                   int indentation)

setRefresh

public void setRefresh(org.gui4j.core.Gui4jCall[] refresh)

setOnSetValue

public void setOnSetValue(org.gui4j.core.Gui4jCall onSetValue)
Sets the onSetValue.


isDefined

public boolean isDefined(int row,
                         int col)

setCell

protected void setCell(int row,
                       int col,
                       Gui4jCellTable.Gui4jCell cell)

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.


refreshComponent

public void refreshComponent(org.gui4j.core.Gui4jComponentInstance gui4jComponentInstance)
Description copied from interface: org.gui4j.core.Gui4jComponent
Aktualisiert die Komponente.


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