|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openswing.swing.table.client.GridController
org.openswing.swing.lookup.client.LookupGridController
Title: OpenSwing Framework
Description: Lookup grid controller. This class is used within LookupController to listen for events fired by lookup grid frame, such as double click events and ENTER key pressing.
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
Constructor Summary | |
LookupGridController()
|
Method Summary | |
void |
doubleClick(int rowNumber,
ValueObject valueObject)
This method cannot be overrided: it forwards the event to "doubleClick" method of LookupController class. |
void |
enterButton(int rowNumber,
ValueObject valueObject)
This method cannot be overrided: it forwards the event to "doubleClick" method. |
void |
init(LookupController lookupController,
LookupParent lookupParent,
VOListTableModel model,
Grids grid)
Method called by lookup controller when user clicks on the lookup button. |
boolean |
isCellEditable(GridControl gridcontrol,
int row,
java.lang.String attributeName)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LookupGridController()
Method Detail |
public final void init(LookupController lookupController, LookupParent lookupParent, VOListTableModel model, Grids grid)
lookupController
- lookup controllerlookupParent
- lookup container (whose value object will be updated when grid row has been selected)model
- lookup grid modelgrid
- inner grid componentpublic final void enterButton(int rowNumber, ValueObject valueObject)
enterButton
in class GridController
rowNumber
- selected row indexvalueObject
- v.o. related to the selected rowpublic final void doubleClick(int rowNumber, ValueObject valueObject)
doubleClick
in class GridController
rowNumber
- selected row indexvalueObject
- v.o. related to the selected rowpublic final boolean isCellEditable(GridControl gridcontrol, int row, java.lang.String attributeName)
isCellEditable
in class GridController
gridcontrol
- it is always null: do not use it!row
- selected row indexattributeName
- attribute name that identifies the selected grid column
true
if the selected cell is editable, false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |