|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
symantec.itools.awt.MultiList
wt.clients.util.CheckboxMultiList
Nested Class Summary | |
(package private) class |
CheckboxMultiList.CheckboxCell
A cell for the CheckboxMultiList. |
(package private) class |
CheckboxMultiList.CheckboxMouseListener
Handles mouse events in the table. |
Nested classes inherited from class symantec.itools.awt.MultiList |
|
Nested classes inherited from class java.awt.Panel |
Panel.AccessibleAWTPanel |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
private boolean |
AllCheckBoxesDisabled
|
private Vector |
checkboxesdisabled
|
(package private) Image |
checked
|
private Font |
dialog11
|
private boolean |
editable
Editable property, true if the user can check the check boxes, else false. |
(package private) Image |
unchecked
|
Fields inherited from class symantec.itools.awt.MultiList |
actionCommand, actionListener, allowResizingOfColumns, allowSorting, BORDER, cachedHeight, cachedLastSplitter, cachedWidth, cellAscent, cellDescent, cellFont, cellHeight, cells, CENTER, clickedInHeadings, CLICKTHRESHOLD, clickTime, colorBg, colorFg, colorHBg, colorHFg, columnAlignments, columnClicked, columnCompareCellsRoutines, columnSizes, defaultColumnAlignment, defaultColumnSorter, dragColumn, errors, focusIndicatedVisually, focusListener, forceColumnSizeRecalc, forceFullRedraw, forceRedraw, hasFocus, headingBg, headingFg, headingFont, headingHeight, headings, headingVisible, highlightedRows, horizontalScrollbar, hScrollbarLineIncrement, isDragging, isSun1_1, isSuppressRedraw, itemListener, lastColumnClicked, LEFT, memoryClick, minColumnWidth, multiSelect, offscreenImage, offscreenImageGraphics, redrawWasSupressed, RESIZE_FUDGE_FACTOR, RIGHT, sbHPosition, sbHShow, sbVPosition, sbVShow, scrollbarHeight, selectedRow, splitters, topRow, verticalScrollbar, verticalScrollbarWidth, xDragLast |
Fields inherited from class java.awt.Panel |
|
Fields inherited from class java.awt.Container |
|
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 | |
CheckboxMultiList()
A multilist that supports checkboxes. |
Method Summary | |
void |
addCell(int r,
int c,
String s,
Image i)
Add a cell to the table. |
void |
addCheckboxCell(int r,
int c,
boolean e)
Adds an checkbox cell to the table. |
void |
addCheckboxCell(int r,
int c,
String s,
boolean e)
Adds an checkbox cell to the table. |
void |
addImageCell(int r,
int c,
Image i)
Adds an image cell to the table. |
void |
addTextCell(int r,
int c,
String s)
Adds a text cell to the table. |
protected void |
draw3DBox(Rectangle r,
boolean up)
Draws a rectangle with 3-dimensional effect into the offscreen image. |
Vector |
getCheckBoxesDisabled()
Get the rows where check boxes were disabled |
private int |
getColumn(int x)
Returns the column index which corresponds with the specified x coordinate. |
private int |
getRow(int y)
Returns the row index which corresponds with the specified y coordinate. |
boolean |
isCheckboxSelected(int r,
int c)
Returns true if the checkbox at row r, column c is checked. |
boolean |
isEditable()
|
(package private) void |
loadImages()
|
void |
paint(Graphics g)
Paints the table. |
void |
redraw()
Paints this component into an offscreen image for cleaner screen repaints. |
void |
setAllCheckBoxesDisabled(boolean flag)
Set the flag to true if all the checkboxes should be set to false. |
void |
setCellFont(Font f)
Sets the font of the cells. |
void |
setCheckboxSelected(int r,
int c,
boolean s)
Set the checkbox selected or deselected at row r, column c. |
void |
setEditable(boolean editable)
|
void |
sort()
Sorts the multilist alphabetically by the first column. |
Methods inherited from class symantec.itools.awt.MultiList |
addActionListener, addCell, addCellImpl, addItemListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, adjustHeadings, calcHeadings, calculateHeadingHeight, calcVerticalScrollbarPosition, changeSelection, clear, createColumns, deselectAll, deselectRow, drawColumnHeading, drawHeading, drawRows, getCellBg, getCellFg, getCellFont, getCellImage, getCellText, getColumnAlignment, getColumnAlignments, getColumnSize, getColumnSizes, getColumnSizesFromSplitters, getColumnSorter, getDefaultColumnAlignment, getDefaultColumnSorter, getHeading, getHeadingBg, getHeadingFg, getHeadingFont, getHeadings, getListItems, getMinColumnWidth, getNumberOfCols, getNumberOfRows, getNumVisibleRows, getSelectedObjects, getSelectedRow, getSelectedRows, intArrayToStringArray, internalCreateColumns, isAllowResizingOfColumns, isAllowSorting, isFocusIndicatedVisually, isFocusTraversable, isHeadingVisible, isMultipleMode, minimumSize, paintSelection, preferredSize, rangeCheckAlignment, rangeCheckColumn, removeActionListener, removeItemListener, removeNotify, removePropertyChangeListener, removeRow, removeSelectionBorder, removeVetoableChangeListener, repaintFocus, resizeHeadings, selectAll, selectRow, setAllowResizingOfColumns, setAllowSorting, setCellBg, setCellColors, setCellFg, setColumnAlignment, setColumnAlignments, setColumns, setColumnSizes, setColumnSorter, setDefaultColumnAlignment, setDefaultColumnSorter, setFocusIndicatedVisually, setHeading, setHeading, setHeadingBg, setHeadingColors, setHeadingFg, setHeadingFont, setHeadings, setHeadingVisible, setLayout, setListItems, setMinColumnWidth, setMultipleMode, setNumberOfCols, setSelectedRow, setSupressRedraw, sourceActionEvent, sourceItemEvent, tokenizeStringArrayIfNeeded, triggerRedraw, update |
Methods inherited from class java.awt.Panel |
getAccessibleContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
Image checked
Image unchecked
private Font dialog11
private boolean AllCheckBoxesDisabled
private Vector checkboxesdisabled
private boolean editable
Constructor Detail |
public CheckboxMultiList()
Method Detail |
public void setEditable(boolean editable)
public boolean isEditable()
public void setAllCheckBoxesDisabled(boolean flag)
public Vector getCheckBoxesDisabled()
private int getRow(int y)
y
- The y coordinate.private int getColumn(int x)
x
- The x coordinate.public void setCheckboxSelected(int r, int c, boolean s)
r
- The row.c
- The column.s
- The selected state.public boolean isCheckboxSelected(int r, int c)
r
- The row.c
- The column.public void addTextCell(int r, int c, String s)
r
- The row.c
- The column.s
- The text.public void addImageCell(int r, int c, Image i)
r
- The row.c
- The column.i
- The Image.public void addCheckboxCell(int r, int c, boolean e)
r
- The row.c
- The column.e
- Checked flag.public void addCell(int r, int c, String s, Image i)
r
- The row.c
- The column.s
- The cell text.i
- The cell Image.public void addCheckboxCell(int r, int c, String s, boolean e)
r
- The row.c
- The column.s
- The cell text.e
- Checked flag.void loadImages()
public void setCellFont(Font f)
f
- The font.public void sort()
public void paint(Graphics g)
g
- The graphics to paint to.public void redraw()
protected void draw3DBox(Rectangle r, boolean up)
r
- the rectangle boundsup
- true to draw as if raised, false to draw as if lowered
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |