|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.openswing.swing.table.client.Grids
Title: OpenSwing Framework
Description: Panel that contains the Grid object and a second Grid object, anchored to the left side of the panel (optional). This class has not be used directly by the programmer: it's called by GridControl.
Copyright: Copyright (C) 2006 Mauro Carniel
This file is part of OpenSwing Framework. This library is free software; you can redistribute it and/or modify it under the terms of the (LGPL) Lesser General Public License as published by the Free Software Foundation; GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. The author may be contacted at: maurocarniel@tin.it
Nested Class Summary |
Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Field Summary |
Fields inherited from class javax.swing.JComponent |
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
Grids(GridControl gridControl,
int lockedColumns,
boolean anchorLockedColumnsToLeft,
java.lang.String valueObjectClassName,
Column[] colProps,
GridController gridController,
GridStatusPanel statusPanel,
GridDataLocator gridDataLocator,
java.util.Map otherGridParams,
boolean colorsInReadOnlyMode,
java.util.ArrayList popupCommands,
boolean anchorLastColumn,
int expandableColumn,
boolean singleExpandableRow,
boolean overwriteRowWhenExpanding,
ExpandableRowController expandableRowController,
java.util.HashMap comboFilters,
int headerHeight,
boolean searchAdditionalRows,
boolean allowColumnsSortingInEdit,
int gridType)
Costructor called by GridControl: programmer never called directly this class. |
Method Summary | |
void |
addButtonsNotEnabled(java.util.HashSet buttons,
GenericButtonController buttonController)
Define GenericButton objects linked to this that will be disabled (independently from the grid mode) when the specified attribute will be set to the specified value. |
void |
addGenericButton(GenericButton button)
Add an optional button. |
void |
addLoadDataCompletedListener(java.awt.event.ActionListener listener)
Add a "load data completed" listener. |
void |
addNotify()
Method called by JVM when viewing this class. |
void |
cleanUp(int row,
boolean cleanUpAlsoNotEditableCells)
Clean up cells content for the specified row, for each field or editable only cells. |
void |
clearData()
Clear grid content. |
void |
collapseRow(int row)
Collapse specified row. |
void |
copy()
Method called when user clicks on copy button. |
void |
delete()
Method called when user clicks on delete button. |
void |
edit()
Method called when user clicks on edit button. |
void |
enableDrag(java.lang.String gridId)
Enable drag onto the grid. |
boolean |
executeReload()
Reload TableModel. |
void |
expandRow(int row)
Expand specified row. |
void |
export()
Method called when user clicks on export button. |
void |
export(java.util.ArrayList exportColumns,
java.util.ArrayList exportAttrColumns,
java.lang.String exportType)
Method called by ExportDialog to export data. |
void |
filterSort()
Method called when user has clicked on filter button. |
void |
finalize()
|
void |
firstRow(NavigatorBar navBar)
Method called when user click on "first" button on the navigation bar: it will clear table model, reload data and select the first row of the block. |
java.util.HashSet |
getBindedButtons()
|
int |
getBlockSize()
|
java.awt.Component |
getComponentInCache(int row)
|
CopyButton |
getCopyButton()
|
int |
getCurrentEditingRow()
|
java.awt.Component |
getCurrentNestedComponent()
|
int |
getCurrentNestedComponentRow()
|
int |
getCurrentNumberOfNewRows()
|
java.util.ArrayList |
getCurrentSortedColumns()
|
java.util.ArrayList |
getCurrentSortedVersusColumns()
|
boolean |
getCurrentValue(GenericButton button)
|
GridExportOptions |
getDefaultGridExportOptions()
|
GridExportOptions |
getDefaultGridExportOptions(java.util.HashSet attributesToExport)
|
int |
getDefaultQuickFilterCriteria()
|
DeleteButton |
getDeleteButton()
|
EditButton |
getEditButton()
|
ExportButton |
getExportButton()
|
FilterButton |
getFilterButton()
|
QuickFilterPanel |
getFilterPanel()
|
java.lang.String |
getFunctionId()
|
java.util.ArrayList |
getGenericButtons()
|
Grid |
getGrid()
|
GridControl |
getGridControl()
|
GridController |
getGridController()
|
java.lang.String |
getHeaderColumnName(java.lang.String attributeName)
|
ImportButton |
getImportButton()
|
InsertButton |
getInsertButton()
|
int |
getLastIndex()
|
Grid |
getLockedGrid()
|
int |
getMaxNumberOfRowsOnInsert()
|
int |
getMaxSortedColumns()
|
int |
getMode()
|
NavigatorBar |
getNavBar()
|
java.util.Map |
getOtherGridParams()
|
javax.swing.JPopupMenu |
getPopup()
|
java.util.ArrayList |
getPopupCommands()
|
java.util.Map |
getQuickFilterValues()
|
ReloadButton |
getReloadButton()
|
javax.swing.JMenuItem |
getRemovefilterItem()
|
SaveButton |
getSaveButton()
|
javax.swing.JScrollPane |
getScroll()
|
int |
getSelectedColumn()
|
int |
getSelectedRow()
|
int[] |
getSelectedRows()
Returns the indices of all selected rows. |
int |
getstartIndex()
|
int |
getTotalResultSetLength()
|
VOListTableModel |
getVOListTableModel()
|
void |
importData()
Method called when user clicks on import button. |
void |
importData(java.util.ArrayList columnTypes,
java.util.ArrayList importAttrColumns,
java.lang.String importType)
Method called by ImportDialog to import data. |
void |
insert()
Method called when user clicks on insert button. |
boolean |
isAllowInsertInEdit()
|
boolean |
isAnchorLockedColumnsToLeft()
|
boolean |
isButtonDisabled(GenericButton button)
Method called by GenericButton.setEnabled method to check if the button must be disabled. |
boolean |
isEditOnSingleRow()
|
boolean |
isEnableInReadOnlyMode(int columnIndex)
|
boolean |
isFieldEditable(int rowNumber,
java.lang.String attributeName)
|
boolean |
isInsertRowsOnTop()
|
boolean |
isListenEvent()
|
boolean |
isMoreRows()
|
boolean |
isRowExpanded(int row)
|
void |
lastRow(NavigatorBar navBar)
Method called when user click on "last" button on the navigation bar: it may clear table model, reload the last data block and select the last row of the block. |
void |
loadPage(int pageNr)
Method invoked by NavigatorBar to change page to load. |
boolean |
mergeCells(int[] rows,
int[] columns)
Set the cell span for the specified range of cells. |
void |
modeChanged(int mode)
Method called on changing grid mode. |
void |
nextPage(NavigatorBar navBar)
Method called when user click on "next page" button on the navigation bar: it does clear table model, reload next data block and select the first row of the block. |
void |
nextRow(NavigatorBar navBar,
java.awt.event.ActionEvent e)
Method called when user click on "next" button on the navigation bar: it may clear table model, reload next data block and select the first row of the block. |
void |
previousPage(NavigatorBar navBar)
Method called when user click on "previous page" button on the navigation bar: it does clear table model, reload previous data block and select the last row of the block. |
void |
previousRow(NavigatorBar navBar,
java.awt.event.ActionEvent e)
Method called when user click on "previous" button on the navigation bar: it may clear table model, reload previous data block and select the last row of the block. |
void |
putComponentInCache(int row,
java.awt.Component comp)
|
void |
reload()
Method called by reload button: - sets READONLY mode - reloads TableModel, by calling executeReload method |
void |
reloadDataFromStart()
Method called from reload method: reload current data block. |
void |
removeComponentInCache(int row)
Removce component from cache. |
void |
removeGenericButton(GenericButton button)
Remove an optional button. |
void |
removeLoadDataCompletedListener(java.awt.event.ActionListener listener)
Remove a "load data completed" listener. |
void |
resetButtonsState()
Method automatically called by the Grid to check buttons disabilitation. |
int |
retrieveAdditionalRows(java.lang.String attributeName,
java.lang.String textToSearch)
This method fetches and appends additional rows that satisfy specified criteria. |
boolean |
save()
Method called when user clicks on save button. |
void |
setAllowInsertInEdit(boolean allowInsertInEdit)
Allow insert row (using DOWN key) in edit mode too; default value: false |
void |
setColorsInReadOnlyMode(boolean colorsInReadOnlyMode)
Define if background and foreground colors must be setted according to GridController definition only in READONLY mode. |
void |
setCopyButton(CopyButton copyButton)
Set copy button linked to grid. |
void |
setCurrentNestedComponent(int currentNestedComponentRow,
java.awt.Component currentNestedComponent)
|
void |
setCurrentNumberOfNewRows(int currentNumberOfNewRows)
Set the current number of new rows. |
void |
setCurrentValue(GenericButton button,
boolean currentValue)
Set current enabled value of button. |
void |
setDeleteButton(DeleteButton deleteButton)
Set delete button linked to grid. |
void |
setEditButton(EditButton editButton)
Set edit button linked to grid. |
void |
setEditOnSingleRow(boolean editOnSingleRow)
Define if cell editing is allows on one row only or on all rows: false all rows are editable, true edit is allowed only on current selected row |
void |
setExportButton(ExportButton exportButton)
Set export button linked to grid. |
void |
setFilterButton(FilterButton filterButton)
Set filter button linked to grid. |
void |
setFilterPanel(QuickFilterPanel filterPanel)
|
void |
setFunctionId(java.lang.String functionId)
Set the functionId identifier, associated to the container |
void |
setGenericButtonsEnabled(boolean enabled)
Set (dis)abilitation for whole generic buttons. |
void |
setImportButton(ImportButton importButton)
Set import button linked to grid. |
void |
setInsertButton(InsertButton insertButton)
Set insert button linked to grid. |
void |
setInsertRowsOnTop(boolean insertRowsOnTop)
Define where new rows must be added: true at the top of the grid or false at the bottom; default value: true |
void |
setIntercellSpacing(java.awt.Dimension spacing)
Sets the rowMargin and the columnMargin --
the height and width of the space between cells -- to
intercellSpacing . |
void |
setListenEvent(boolean listenEvent)
|
void |
setMaxNumberOfRowsOnInsert(int maxNumberOfRowsOnInsert)
Set the maximum number of rows to insert by pressing "down" key; default value: 1. |
void |
setMaxSortedColumns(int maxSortedColumns)
Set maximum number of sorted columns. |
void |
setMode(int mode)
Set grid mode. |
void |
setNavBar(NavigatorBar navBar)
Set navigation bar. |
void |
setOtherGridParams(java.util.Map otherGridParams)
Set other grid parameters. |
void |
setReloadButton(ReloadButton reloadButton)
Set reload button linked to grid. |
void |
setReorderingAllowed(boolean reorderingAllowed)
Define if column reordering is allowed. |
void |
setResizingAllowed(boolean resizingAllowed)
Define if column resizing is allowed. |
void |
setRowMargin(int rowMargin)
Sets the amount of empty space between cells in adjacent rows. |
void |
setRowSelectionInterval(int startRow,
int endRow)
Set row selection interval. |
void |
setSaveButton(SaveButton saveButton)
Set save button linked to grid. |
void |
setSelectionMode(int selectionMode)
Set grid selection mode. |
void |
setVisibleColumn(java.lang.String attributeName,
boolean colVisible)
Show/hide a column. |
void |
transferFocus()
Remove cell editing, if needed. |
void |
updateColumnHeaderIcons()
Method invoked by FilterPanel to repaint icons in column headers, according to sorting/filtering conditions just applied. |
boolean |
validateRows()
Execute a validation on changed rows. |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Grids(GridControl gridControl, int lockedColumns, boolean anchorLockedColumnsToLeft, java.lang.String valueObjectClassName, Column[] colProps, GridController gridController, GridStatusPanel statusPanel, GridDataLocator gridDataLocator, java.util.Map otherGridParams, boolean colorsInReadOnlyMode, java.util.ArrayList popupCommands, boolean anchorLastColumn, int expandableColumn, boolean singleExpandableRow, boolean overwriteRowWhenExpanding, ExpandableRowController expandableRowController, java.util.HashMap comboFilters, int headerHeight, boolean searchAdditionalRows, boolean allowColumnsSortingInEdit, int gridType)
valueObjectClassName
- ValueObject class namecolProps
- TableModel column properties (name, type, etc.)statusPanel
- bottom panel included into the grid; used to view selected row numberscolorsInReadOnlyMode
- flag used to define if background and foreground colors must be setted according to GridController definition only in READONLY modepopupCommands
- list of custom commands added to the popup menu accessed by right mouse click on gridanchorLastColumn
- define if last column must be anchored to the right margin of the gridgridType
- type of grid; possible values: Grid.MAIN_GRID, Grid.TOP_GRID, Grid.BOTTOM_GRIDMethod Detail |
public final void setCurrentValue(GenericButton button, boolean currentValue)
setCurrentValue
in interface DataController
button
- generic button that fires this eventcurrentValue
- current enabled valuepublic final boolean getCurrentValue(GenericButton button)
getCurrentValue
in interface DataController
button
- generic button
public final void setReorderingAllowed(boolean reorderingAllowed)
reorderingAllowed
- allows column reorderingpublic final void setResizingAllowed(boolean resizingAllowed)
resizingAllowed
- allows column resizingpublic final void setMode(int mode)
mode
- grid mode; possibile values: READONLY, INSERT, EDITpublic final void setSelectionMode(int selectionMode)
selectionMode
- grid selection modepublic final void transferFocus()
public final void clearData()
public final void reloadDataFromStart()
public final void setFunctionId(java.lang.String functionId)
functionId
- identifier associated to the containerpublic final void setNavBar(NavigatorBar navBar)
navBar
- navigation barpublic final java.util.Map getOtherGridParams()
public final void setOtherGridParams(java.util.Map otherGridParams)
otherGridParams
- other grid parameterspublic final void setMaxSortedColumns(int maxSortedColumns)
maxSortedColumns
- maximum number of sorted columnspublic final int getMaxSortedColumns()
public final VOListTableModel getVOListTableModel()
public final int getMode()
public final void modeChanged(int mode)
modeChanged
in interface VOListTableModelListener
mode
- current edit grid mode; possible values: READONLY, EDIT,INSERTpublic final boolean isFieldEditable(int rowNumber, java.lang.String attributeName)
rowNumber
- TableModel row indexattributeName
- attribute name that identifies a grid column
true
means that the cell having the specified row and column index is editable, false
otherwisepublic final java.lang.String getFunctionId()
getFunctionId
in interface DataController
public InsertButton getInsertButton()
public ExportButton getExportButton()
public ImportButton getImportButton()
public CopyButton getCopyButton()
public EditButton getEditButton()
public void setEditButton(EditButton editButton)
editButton
- edit button linked to gridpublic void setInsertButton(InsertButton insertButton)
insertButton
- insert button linked to gridpublic void setExportButton(ExportButton exportButton)
exportButton
- export button linked to gridpublic void setImportButton(ImportButton importButton)
importButton
- import button linked to gridpublic void setCopyButton(CopyButton copyButton)
copyButton
- copy button linked to gridpublic void setFilterButton(FilterButton filterButton)
filterButton
- filter button linked to gridpublic FilterButton getFilterButton()
public ReloadButton getReloadButton()
public void setReloadButton(ReloadButton reloadButton)
reloadButton
- reload button linked to gridpublic DeleteButton getDeleteButton()
public void setDeleteButton(DeleteButton deleteButton)
deleteButton
- delete button linked to gridpublic SaveButton getSaveButton()
public void setSaveButton(SaveButton saveButton)
saveButton
- save button linked to gridpublic final void addGenericButton(GenericButton button)
button
- generic buttonpublic final void removeGenericButton(GenericButton button)
button
- generic buttonpublic final NavigatorBar getNavBar()
public final void firstRow(NavigatorBar navBar)
firstRow
in interface NavigatorBarController
public final void nextRow(NavigatorBar navBar, java.awt.event.ActionEvent e)
nextRow
in interface NavigatorBarController
public final void previousPage(NavigatorBar navBar)
previousPage
in interface NavigatorBarController
public final void nextPage(NavigatorBar navBar)
nextPage
in interface NavigatorBarController
public final void previousRow(NavigatorBar navBar, java.awt.event.ActionEvent e)
previousRow
in interface NavigatorBarController
public final void lastRow(NavigatorBar navBar)
lastRow
in interface NavigatorBarController
public final void reload()
reload
in interface DataController
public boolean executeReload()
public final void loadPage(int pageNr)
loadPage
in interface NavigatorBarController
pageNr
- pabe number to loadpublic final void insert()
insert
in interface DataController
public final void export()
export
in interface DataController
public final void importData()
importData
in interface DataController
public final void filterSort()
filterSort
in interface DataController
public final GridExportOptions getDefaultGridExportOptions()
public final GridExportOptions getDefaultGridExportOptions(java.util.HashSet attributesToExport)
attributesToExport
- attributes to export
public final void export(java.util.ArrayList exportColumns, java.util.ArrayList exportAttrColumns, java.lang.String exportType)
exportColumns
- column identifiers related to columns to exportexportAttrColumns
- attribute names related to the columns to exportpublic final void importData(java.util.ArrayList columnTypes, java.util.ArrayList importAttrColumns, java.lang.String importType)
columnTypes
- column typesimportAttrColumns
- attribute names related to the columns to importpublic final void copy()
copy
in interface DataController
public final void edit()
edit
in interface DataController
public final void delete()
delete
in interface DataController
public final boolean save()
save
in interface DataController
true
if saving operation was correctly completed, false
otherwisepublic final void addNotify()
public java.util.Map getQuickFilterValues()
public javax.swing.JMenuItem getRemovefilterItem()
public javax.swing.JPopupMenu getPopup()
public QuickFilterPanel getFilterPanel()
public boolean isMoreRows()
public int getLastIndex()
public final java.util.ArrayList getCurrentSortedColumns()
public final java.util.ArrayList getCurrentSortedVersusColumns()
public void setFilterPanel(QuickFilterPanel filterPanel)
public java.util.ArrayList getPopupCommands()
public java.util.ArrayList getGenericButtons()
public boolean isListenEvent()
public void setListenEvent(boolean listenEvent)
public void setGenericButtonsEnabled(boolean enabled)
enabled
- (dis)abilitation for whole generic buttons.public final boolean validateRows()
true
if all changed rows are in a valid state, false
otherwisepublic GridControl getGridControl()
public void setRowSelectionInterval(int startRow, int endRow)
startRow
- first selected row indexendRow
- last selected row indexpublic Grid getGrid()
public Grid getLockedGrid()
public int[] getSelectedRows()
getSelectedRow()
public int getSelectedRow()
public int getSelectedColumn()
public final int getDefaultQuickFilterCriteria()
public final void enableDrag(java.lang.String gridId)
gridId
- grid identifierpublic final void addButtonsNotEnabled(java.util.HashSet buttons, GenericButtonController buttonController)
buttons
- collections GenericButton objects linked to this that have to be disabledbuttonController
- interface that defines button disabilitation, according to some custom policypublic final boolean isButtonDisabled(GenericButton button)
isButtonDisabled
in interface DataController
button
- button whose abilitation must be checked
true
if no policy is defined in the grid for the specified button, false
if there exists a disabilitation policy for the specified button (through addButtonsNotEnabledOnState grid method)public final void resetButtonsState()
public final int getMaxNumberOfRowsOnInsert()
public final void setMaxNumberOfRowsOnInsert(int maxNumberOfRowsOnInsert)
maxNumberOfRowsOnInsert
- maximum number of rows to insert by pressing "down" keypublic final boolean isAllowInsertInEdit()
false
public final void setAllowInsertInEdit(boolean allowInsertInEdit)
false
allowInsertInEdit
- allow insert row (using DOWN key) in edit mode toopublic final boolean isInsertRowsOnTop()
true
at the top of the grid or false
at the bottompublic final void setInsertRowsOnTop(boolean insertRowsOnTop)
true
at the top of the grid or false
at the bottom; default value: true
insertRowsOnTop
- define where new rows must be added: true
at the top of the grid or false
at the bottompublic final int getCurrentNumberOfNewRows()
public void setCurrentNumberOfNewRows(int currentNumberOfNewRows)
public final void setVisibleColumn(java.lang.String attributeName, boolean colVisible)
attributeName
- attribute name that identities the columnpublic final java.lang.String getHeaderColumnName(java.lang.String attributeName)
attributeName
- attribute name related to a visible column
public final void updateColumnHeaderIcons()
public final void finalize()
public final javax.swing.JScrollPane getScroll()
public final int getstartIndex()
public void setIntercellSpacing(java.awt.Dimension spacing)
rowMargin
and the columnMargin
--
the height and width of the space between cells -- to
intercellSpacing
.
#getIntercellSpacing
public void setRowMargin(int rowMargin)
rowMargin
- the number of pixels between cells in a row#getRowMargin
public final boolean mergeCells(int[] rows, int[] columns)
rows
- row indexes that identify the cells to mergecolumns
- column indexes that identify the cells to merge
true
if merge operation is allowed, false
if the cells range is invalidpublic final void setColorsInReadOnlyMode(boolean colorsInReadOnlyMode)
colorsInReadOnlyMode
- false
to enable background and foreground colors to be setted according to GridController definition in all grid modes; true
to enable background and foreground colors to be setted according to GridController definition only in READONLY modepublic final void addLoadDataCompletedListener(java.awt.event.ActionListener listener)
public final void removeLoadDataCompletedListener(java.awt.event.ActionListener listener)
public final GridController getGridController()
public final boolean isRowExpanded(int row)
row
- row number
true
if specified row is currently expanded, false
otherwisepublic final java.awt.Component getComponentInCache(int row)
row
- row number
public final void putComponentInCache(int row, java.awt.Component comp)
row
- row number
public final void removeComponentInCache(int row)
row
- row numberpublic final void expandRow(int row)
row
- row numberpublic final void collapseRow(int row)
row
- row numberpublic final java.awt.Component getCurrentNestedComponent()
public final int getCurrentNestedComponentRow()
public final void setCurrentNestedComponent(int currentNestedComponentRow, java.awt.Component currentNestedComponent)
public final boolean isEditOnSingleRow()
false
all rows are editable, true
edit is allowed only on current selected rowpublic final void setEditOnSingleRow(boolean editOnSingleRow)
false
all rows are editable, true
edit is allowed only on current selected row
editOnSingleRow
- false
all rows are editable, true
edit is allowed only on current selected rowpublic final int getCurrentEditingRow()
true
public final int getTotalResultSetLength()
getTotalResultSetLength
in interface NavigatorBarController
public final int getBlockSize()
getBlockSize
in interface NavigatorBarController
public final java.util.HashSet getBindedButtons()
getBindedButtons
in interface DataController
public final boolean isEnableInReadOnlyMode(int columnIndex)
columnIndex
- column index, related to check-box, link button or button
false
i.e. the check-box is enabled only in INSERT/EDIT modes, according to "editableOnEdit" and "editableOnInsert" propertiespublic final void cleanUp(int row, boolean cleanUpAlsoNotEditableCells)
cleanUpAlsoNotEditableCells
- define if all cells must be clean uppublic final int retrieveAdditionalRows(java.lang.String attributeName, java.lang.String textToSearch)
attributeName
- attribute used to filter datatextToSearch
- text to search
public final boolean isAnchorLockedColumnsToLeft()
true
i.e. to the left
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |