|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--gui.TableBean
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
TableBean()
Constructs a TableBean |
|
TableBean(int cols,
int rows)
Constructs a TableBean |
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
The specified PropertyChangeListeners propertyChange method will be called each time the value of any bound property is changed. |
void |
addTableListener(TableListener tl)
Adds a new TableListener. |
void |
clearTableValue()
Clear all values in the Table. |
java.awt.event.ComponentAdapter |
getAdapter()
|
java.awt.Color |
getBackground()
Returns the background color for the Bean |
int |
getColumnWidth()
Returns the width of a table Column |
java.awt.Font |
getFont()
Returns the current font. |
java.awt.Color |
getForeground()
Returns the foreground color for the bean |
int |
getNumColumns()
Return the number of columns |
int |
getNumRows()
Return the number of rows |
java.awt.Dimension |
getPreferredSize()
Detetermines the base size of this component when shown on the screen. |
int |
getRowHeight()
Returns the height of a table Row |
TableRegion |
getSelectedRegion()
Returns the selected TableRegion |
java.lang.String |
getTableValue(int viewCol,
int viewRow)
Retrieves the value for a particular table entry |
void |
mouseClicked(java.awt.event.MouseEvent evt)
Ignore mouseClicked events. |
void |
mouseDragged(java.awt.event.MouseEvent evt)
Process mouseDragged events. |
void |
mouseEntered(java.awt.event.MouseEvent evt)
Ignore mouseEntered events. |
void |
mouseExited(java.awt.event.MouseEvent evt)
Ignore mouseExited events. |
void |
mouseMoved(java.awt.event.MouseEvent evt)
Ignore mouseMoved events. |
void |
mousePressed(java.awt.event.MouseEvent evt)
Process mousePressed events. |
void |
mouseReleased(java.awt.event.MouseEvent evt)
Process mouseReleased events. |
void |
paint(java.awt.Graphics g)
Paint the Table Bean. |
protected void |
redraw(java.awt.Graphics g,
int viewCol,
int viewRow)
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove this PropertyChangeListener from the buttons internal list. |
void |
removeTableListener(TableListener tl)
Removes an existing TableListener |
void |
setAdapter(java.awt.event.ComponentAdapter ca)
|
void |
setBackground(java.awt.Color c)
Set the background color of the table. |
void |
setColumnWidth(int newWidth)
Set the width of a table Column. |
void |
setFont(java.awt.Font f)
Set the current font. |
void |
setForeground(java.awt.Color c)
Set the color the table is drawn with. |
void |
setNumColumns(int newCols)
Set the number of columns to table. |
void |
setNumRows(int newRows)
Set the number of rows to table. |
void |
setRowHeight(int newHeight)
Set the height of a table Row. |
void |
setSelectedRegion(TableElement sTE,
TableElement eTE)
Select an invertedRegion; If unchanged, return false, otherwise true. |
void |
setSelectedRegion(TableRegion tr)
Sets the selected region to be the specified TableRegion. |
void |
setTableValue(int viewCol,
int viewRow,
java.lang.String val)
Sets the value for a particular table entry |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addNotify,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
deliverEvent,
disable,
disableEvents,
dispatchEvent,
doLayout,
enable,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
getAlignmentX,
getAlignmentY,
getBounds,
getBounds,
getColorModel,
getComponentAt,
getComponentAt,
getComponentOrientation,
getCursor,
getDropTarget,
getFontMetrics,
getGraphics,
getHeight,
getInputContext,
getInputMethodRequests,
getLocale,
getLocation,
getLocation,
getLocationOnScreen,
getMaximumSize,
getMinimumSize,
getName,
getParent,
getPeer,
getSize,
getSize,
getToolkit,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
hide,
imageUpdate,
inside,
invalidate,
isDisplayable,
isDoubleBuffered,
isEnabled,
isFocusTraversable,
isLightweight,
isOpaque,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
layout,
list,
list,
list,
list,
list,
locate,
location,
lostFocus,
minimumSize,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
paramString,
postEvent,
preferredSize,
prepareImage,
prepareImage,
print,
printAll,
processComponentEvent,
processEvent,
processFocusEvent,
processInputMethodEvent,
processKeyEvent,
processMouseEvent,
processMouseMotionEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removeNotify,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
resize,
resize,
setBounds,
setBounds,
setComponentOrientation,
setCursor,
setDropTarget,
setEnabled,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
show,
size,
toString,
transferFocus,
update,
validate |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public TableBean()
public TableBean(int cols, int rows)
#cols
- the width#rows
- the heightMethod Detail |
public void setTableValue(int viewCol, int viewRow, java.lang.String val)
viewCol
- the column locationviewRow
- the row locationval
- the valuegetTableValue(int, int)
public java.lang.String getTableValue(int viewCol, int viewRow)
viewCol
- the column locationviewRow
- the row locationsetTableValue(int, int, java.lang.String)
public void clearTableValue()
setTableValue(int, int, java.lang.String)
,
getTableValue(int, int)
public int getRowHeight()
setRowHeight(int)
public void setRowHeight(int newHeight)
newHeight
- the heightgetRowHeight()
public int getColumnWidth()
setColumnWidth(int)
public void setColumnWidth(int newWidth)
newWidth
- the new widthgetColumnWidth()
public java.awt.Color getForeground()
setForeground(java.awt.Color)
public void setForeground(java.awt.Color c)
getForeground()
public java.awt.Color getBackground()
setBackground(java.awt.Color)
public void setBackground(java.awt.Color c)
getBackground()
public void setFont(java.awt.Font f)
getFont()
public java.awt.Font getFont()
setFont(java.awt.Font)
public void paint(java.awt.Graphics g)
protected void redraw(java.awt.Graphics g, int viewCol, int viewRow)
public TableRegion getSelectedRegion()
setSelectedRegion(gui.TableRegion)
public void setSelectedRegion(TableRegion tr)
getSelectedRegion()
public void setSelectedRegion(TableElement sTE, TableElement eTE)
sTE
- start TableElementeTE
- end TableElementpublic void mouseClicked(java.awt.event.MouseEvent evt)
public void mousePressed(java.awt.event.MouseEvent evt)
evt
- the MouseEvent object.public void mouseReleased(java.awt.event.MouseEvent evt)
evt
- the MouseEvent object.public void mouseEntered(java.awt.event.MouseEvent evt)
public void mouseExited(java.awt.event.MouseEvent evt)
public void mouseDragged(java.awt.event.MouseEvent evt)
evt
- the MouseEvent object.public void mouseMoved(java.awt.event.MouseEvent evt)
public void addTableListener(TableListener tl)
tl
- The TableListenerremovePropertyChangeListener(java.beans.PropertyChangeListener)
public void removeTableListener(TableListener tl)
tl
- The TableListeneraddPropertyChangeListener(java.beans.PropertyChangeListener)
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
l
- the PropertyChangeListenerremovePropertyChangeListener(java.beans.PropertyChangeListener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
l
- the PropertyChangeListeneraddPropertyChangeListener(java.beans.PropertyChangeListener)
public void setNumColumns(int newCols)
getNumColumns()
public int getNumColumns()
setNumColumns(int)
public void setNumRows(int newRows)
getNumRows()
public int getNumRows()
setNumRows(int)
public java.awt.Dimension getPreferredSize()
public void setAdapter(java.awt.event.ComponentAdapter ca)
public java.awt.event.ComponentAdapter getAdapter()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |