All Packages Class Hierarchy This Package Previous Next Index
Class dtai.gwt.GridGadget
java.lang.Object
|
+----dtai.gwt.Gadget
|
+----dtai.gwt.ContainerGadget
|
+----dtai.gwt.PanelGadget
|
+----dtai.gwt.BorderGadget
|
+----dtai.gwt.ScrollPaneGadget
|
+----dtai.gwt.GridGadget
- public class GridGadget
- extends ScrollPaneGadget
- implements CellSelectable
A scrolling list of text items.
-
GridGadget()
- Creates a new scrolling list initialized with no visible Lines or multiple selections.
-
GridGadget(int)
- Creates a new scrolling list initialized with the specified number of visible lines and a boolean stating whether multiple selections are allowed or not.
-
GridGadget(int, boolean)
- Creates a new scrolling list initialized with the specified number of visible lines and a boolean stating whether multiple selections are allowed or not.
-
addCellListener(CellListener)
- Adds the specified listener to be notified when component
events occur on this component.
-
addColumn(String)
- addColumn
-
addColumn(String, int)
- addColumt
-
addColumnAt(String, int)
- addColumnAt
-
adjustmentValueChanged(AdjustmentEvent)
- adjustmentValueChanged
-
deselectAll()
- deselectAll
-
doLayout()
- doLayout
-
ensureRowCount(int)
- ensureRowCount
-
fontChanged()
- fontChanged
-
getCellGadget(int, int)
- Gets the item associated with the specified index.
-
getPreferredSize()
- gets the preferred dimensions
-
getPreferredSize(int)
- gets the preferred dimensions
-
getSelectedCell()
- getSelectedCell
-
getSelectedCells()
- getSelectedCells
-
getSelectedCount()
- getSelectedCount
-
getShowGrid()
- Returns true if showing visible grid
-
headerClicked(MCColumnHeader)
- headerClicked
-
headerMouseDragged(MCColumnHeader, MouseEvent)
- headerMouseDragged
-
headerMouseExited(MCColumnHeader, MouseEvent)
- headerMouseExited
-
headerMouseMoved(MCColumnHeader, MouseEvent)
- headerMouseMoved
-
headerMousePressed(MCColumnHeader, MouseEvent)
- headerMousePressed
-
headerMouseReleased(MCColumnHeader, MouseEvent)
- headerMouseReleased
-
isMultipleMode()
- Returns true if this list allows multiple selections.
-
processCellEvent(CellEvent)
-
-
processEvent(AWTEvent)
- processEvent
-
removeAllColumns()
- removeAllColumns
-
removeAllRows()
- removeAllRows
-
removeCellListener(CellListener)
- Removes the specified listener so it no longer receives
cell events on this cell.
-
resetColumnWidth(int)
- resets the width of the column
-
resetColumnWidths()
- resetColumWidths
-
selectAll()
- selectAll
-
selectCell(int, int)
- selectCell
-
selectColumn(int)
- setColumn
-
selectionChanged(AWTEvent, boolean)
- selectionChanged
-
selectRow(int)
- selectRow
-
setCellGadget(int, int, Gadget)
- setCellGadget
-
setColumnChars(int, int)
- setColumnChars
-
setColumnWidth(int, int)
- sets the width of the column
-
setMultipleMode(boolean)
- Sets whether this list should allow multiple selections or not.
-
setShowGrid(boolean)
- Sets whether this list should show the grid.
-
setTopIndex(int)
- setTopIndex
-
validate()
- validate
GridGadget
public GridGadget()
- Creates a new scrolling list initialized with no visible Lines or multiple selections.
GridGadget
public GridGadget(int rows)
- Creates a new scrolling list initialized with the specified number of visible lines and a boolean stating whether multiple selections are allowed or not.
- Parameters:
- rows - - the number of items to show.
GridGadget
public GridGadget(int rows,
boolean multipleMode)
- Creates a new scrolling list initialized with the specified number of visible lines and a boolean stating whether multiple selections are allowed or not.
- Parameters:
- rows - - the number of items to show.
- multipleMode - - if true then multiple selections are allowed.
isMultipleMode
public boolean isMultipleMode()
- Returns true if this list allows multiple selections.
- Returns:
- boolean
- See Also:
- setMultipleMode
setMultipleMode
public void setMultipleMode(boolean b)
- Sets whether this list should allow multiple selections or not.
- Parameters:
- b - - the boolean to allow multiple selections
- See Also:
- isMultipleMode
getShowGrid
public boolean getShowGrid()
- Returns true if showing visible grid
- Returns:
- boolean
- See Also:
- setShowGrid
setShowGrid
public void setShowGrid(boolean b)
- Sets whether this list should show the grid.
- Parameters:
- b - - TBD
- See Also:
- getShowGrid
addCellListener
public synchronized void addCellListener(CellListener l)
- Adds the specified listener to be notified when component
events occur on this component.
- Parameters:
- l - the listener to receive the events
removeCellListener
public synchronized void removeCellListener(CellListener l)
- Removes the specified listener so it no longer receives
cell events on this cell.
- Parameters:
- l - the listener to remove
processEvent
protected void processEvent(AWTEvent e)
- processEvent
- Parameters:
- e - a CellEvent
- Returns:
- boolean result
- Overrides:
- processEvent in class ContainerGadget
processCellEvent
protected void processCellEvent(CellEvent e)
selectionChanged
public void selectionChanged(AWTEvent event,
boolean selected)
- selectionChanged
- Parameters:
- event - - TBD
- selected - - TBD
adjustmentValueChanged
public void adjustmentValueChanged(AdjustmentEvent e)
- adjustmentValueChanged
- Parameters:
- e - - TBD
- Overrides:
- adjustmentValueChanged in class ScrollPaneGadget
setTopIndex
public void setTopIndex(int topIndex)
- setTopIndex
- Parameters:
- topIndex - - TBD
addColumn
public void addColumn(String name)
- addColumn
- Parameters:
- name - - TBD
addColumn
public void addColumn(String name,
int prefSize)
- addColumt
- Parameters:
- name - - TBD
- prefSize - - TBD
addColumnAt
public void addColumnAt(String name,
int columnIndex)
- addColumnAt
- Parameters:
- name - - TBD
- columnIndex - - TBD
removeAllColumns
public void removeAllColumns()
- removeAllColumns
removeAllRows
public void removeAllRows()
- removeAllRows
getSelectedCount
public int getSelectedCount()
- getSelectedCount
- Returns:
- int
getSelectedCells
public GadgetCell[] getSelectedCells()
- getSelectedCells
- Returns:
- GadgetCell[]
getSelectedCell
public GadgetCell getSelectedCell()
- getSelectedCell
- Returns:
- GadgetCell
setColumnWidth
public void setColumnWidth(int columnIndex,
int width)
- sets the width of the column
- Parameters:
- columIndex - - TBD
- width - - TBD
setColumnChars
public void setColumnChars(int columnIndex,
int numChars)
- setColumnChars
- Parameters:
- columIndex - - TBD
- numChars - - TBD
resetColumnWidth
public void resetColumnWidth(int columnIndex)
- resets the width of the column
- Parameters:
- columnIndex - - TBD
fontChanged
protected void fontChanged()
- fontChanged
- Overrides:
- fontChanged in class ContainerGadget
resetColumnWidths
public void resetColumnWidths()
- resetColumWidths
validate
protected void validate()
- validate
- Overrides:
- validate in class ContainerGadget
doLayout
public void doLayout()
- doLayout
- Overrides:
- doLayout in class ScrollPaneGadget
ensureRowCount
protected void ensureRowCount(int min)
- ensureRowCount
- Parameters:
- min - - TBD
setCellGadget
public void setCellGadget(int rowIndex,
int columnIndex,
Gadget gadget)
- setCellGadget
- Parameters:
- rowIndex - - TBD
- columIndex - - TBD
- gadget - - TBD
getCellGadget
public Gadget getCellGadget(int rowIndex,
int columnIndex)
- Gets the item associated with the specified index.
- Parameters:
- rowindex - - the row position of the item
- columnIndex - - the column position of the item
- Returns:
- Gadget
- See Also:
- getItemCount
getPreferredSize
public Dimension getPreferredSize()
- gets the preferred dimensions
- Returns:
- Dimension
- Overrides:
- getPreferredSize in class ScrollPaneGadget
getPreferredSize
public Dimension getPreferredSize(int rows)
- gets the preferred dimensions
- Parameters:
- rows - - TBD
- Returns:
- Dimension
selectCell
public void selectCell(int rowIndex,
int columnIndex)
- selectCell
- Parameters:
- rowIndex - - TBD
- columnIndex - - TBD
selectColumn
public void selectColumn(int columnIndex)
- setColumn
- Parameters:
- columnIndex - - TBD
selectRow
public void selectRow(int rowIndex)
- selectRow
- Parameters:
- rowIndex - - TBD
selectAll
public void selectAll()
- selectAll
deselectAll
public void deselectAll()
- deselectAll
headerClicked
public void headerClicked(MCColumnHeader header)
- headerClicked
- Parameters:
- header - - TBD
headerMouseMoved
public void headerMouseMoved(MCColumnHeader header,
MouseEvent mouse)
- headerMouseMoved
- Parameters:
- header - - TBD
- mouse - - TBD
headerMouseExited
public void headerMouseExited(MCColumnHeader header,
MouseEvent mouse)
- headerMouseExited
- Parameters:
- header - - TBD
- mouse - - TBD
headerMousePressed
public void headerMousePressed(MCColumnHeader header,
MouseEvent mouse)
- headerMousePressed
- Parameters:
- header - - TBD
- mouse - - TBD
- Returns:
- boolean result
headerMouseDragged
public void headerMouseDragged(MCColumnHeader header,
MouseEvent mouse)
- headerMouseDragged
- Parameters:
- header - - TBD
- mouse - - TBD
- Returns:
- boolean result
headerMouseReleased
public void headerMouseReleased(MCColumnHeader header,
MouseEvent mouse)
- headerMouseReleased
- Parameters:
- header - - TBD
- mouse - - TBD
- Returns:
- boolean result
All Packages Class Hierarchy This Package Previous Next Index