All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dtai.gwt.DataSheet

java.lang.Object
   |
   +----dtai.gwt.Gadget
           |
           +----dtai.gwt.ContainerGadget
                   |
                   +----dtai.gwt.PanelGadget
                           |
                           +----dtai.gwt.DataSheet

public class DataSheet
extends PanelGadget
implements ItemSelectable, KeyListener
The DataSheet Class Container class for Data Controls


Constructor Index

 o DataSheet()
default constructor which constructs a data sheet

Method Index

 o addItemListener(ItemListener)
Adds the specified listener to be notified when component events occur on this component.
 o clearSelection()
 o doLayout()
arranges the gadgets
 o getActiveControl()
gets the active control of the data sheet
 o getPreferredSize()
gets the preferred size of the data sheet
 o getSelectedIndexes()
gets the selected indeces
 o getSelectedItems()
gets the selected items
 o keyPressed(KeyEvent)
keyPressed
 o keyReleased(KeyEvent)
keyReleased
 o keyTyped(KeyEvent)
keyTyped
 o processItemEvent(ItemEvent)
processItemEvent
 o removeItemListener(ItemListener)
Removes the specified listener so it no longer receives item events on this item.
 o setActiveControl(DataControl)
sets the active control of the data sheet
 o updateScreen(DataControl)
updates the screen

Constructors

 o DataSheet
 public DataSheet()
default constructor which constructs a data sheet

Methods

 o getActiveControl
 public DataControl getActiveControl()
gets the active control of the data sheet

Returns:
the active control
 o clearSelection
 public void clearSelection()
 o setActiveControl
 public void setActiveControl(DataControl control)
sets the active control of the data sheet

Parameters:
control - the active control
 o doLayout
 public void doLayout()
arranges the gadgets

Overrides:
doLayout in class ContainerGadget
 o getPreferredSize
 public Dimension getPreferredSize()
gets the preferred size of the data sheet

Returns:
the preferred size
Overrides:
getPreferredSize in class ContainerGadget
 o keyTyped
 public void keyTyped(KeyEvent e)
keyTyped

Parameters:
e - the key event
 o keyPressed
 public void keyPressed(KeyEvent e)
keyPressed

Parameters:
e - the key event
 o keyReleased
 public void keyReleased(KeyEvent e)
keyReleased

Parameters:
e - the key event
 o addItemListener
 public synchronized void addItemListener(ItemListener l)
Adds the specified listener to be notified when component events occur on this component.

Parameters:
l - the listener to receive the events
 o removeItemListener
 public synchronized void removeItemListener(ItemListener l)
Removes the specified listener so it no longer receives item events on this item.

Parameters:
l - the listener to remove
 o getSelectedIndexes
 public int[] getSelectedIndexes()
gets the selected indeces

Returns:
int[]
 o getSelectedItems
 public String[] getSelectedItems()
gets the selected items

Returns:
the selected items
 o updateScreen
 public void updateScreen(DataControl control)
updates the screen

Parameters:
control - the control to be updated
 o processItemEvent
 protected void processItemEvent(ItemEvent e)
processItemEvent

Parameters:
e - the item event

All Packages  Class Hierarchy  This Package  Previous  Next  Index