danger.ui
Class Table
java.lang.Object
|
+--danger.app.Listener
|
+--danger.ui.View
|
+--danger.ui.Container
|
+--danger.ui.Control
|
+--danger.ui.Table
- public class Table
- extends Control
|
Constructor Summary |
Table()
|
Table(int numCols,
int numRows)
|
| Methods inherited from class danger.ui.Control |
drawFocusBox, drawIdleBox, drawIdleBox, getEvent, getEventListener, getEventType, getHasBorder, getString, getTitle, getValue, sendEvent, setEvent, setEvent, setEvent, setEvent, setEvent, setEventListener, setHasBorder, setTitle, setValue |
| Methods inherited from class danger.ui.Container |
addChild, addChild, addChildAt, advanceFocus, childCount, childIsOnScreen, disable, enable, eventKeyDown, eventKeyHeld, eventKeyRepeat, eventKeyUp, eventPeriodicPulse, eventShortcut, eventWidgetDown, eventWidgetHeld, eventWidgetUp, getBottomChild, getChildAt, getChildIndex, getChildWithID, getDescendantWithID, getFirstChild, getFirstFocusableChild, getFocusedChild, getLastChild, getLastFocusableChild, hideAllChildren, loseFocus, moveChildToIndex, paintChildren, receiveEvent, reflowChildren, removeAllChildren, removeChild, reverseFocus, setFocusedChild, setFocusedChild, setWindow, showAllChildren, snapToChildren, takeFocus |
| Methods inherited from class danger.ui.View |
clear, copyStyle, getAcceptFocus, getBackgroundColor, getBottom, getBounds, getBounds, getFrame, getFrame, getHeight, getInterestingRect, getInterestingRect, getLeft, getOrigin, getOrigin, getOriginX, getOriginY, getParent, getRight, getSibling, getStyle, getStyleColor, getStyleFont, getTop, getWidth, getWindow, globalToLocal, hide, invalidate, invalidate, invalidate, isEnabled, isFocusable, isFocused, isOnScreen, isTransparent, isVisible, keepRectInView, localToGlobal, localToGlobal, localToWindow, moveBy, offsetOrigin, offsetOrigin, onAddedToParent, onDecoded, onPeriodicPulse, onRemovedFromParent, onStyleChanged, onWindowPaint, receiveEventInternal, resetOrigin, sendEventToWindow, setAcceptFocus, setBackgroundColor, setBottom, setDebugBounds, setEnabled, setFrame, setHeight, setKeyedValue, setLeft, setOrigin, setOrigin, setPosition, setRight, setSize, setStyle, setStyleColor, setStyleFont, setStyleFrameColor, setTop, setTransparent, setVisible, setWidth, shouldDropEvent, show, styleIsDefault, willFocusWithin, windowToLocal |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Table
public Table()
Table
public Table(int numCols,
int numRows)
setUseFixedColRowSize
public void setUseFixedColRowSize(boolean flag)
getUseFixedColRowSize
public boolean getUseFixedColRowSize()
sizeChanged
public void sizeChanged()
getColumns
public int getColumns()
getRows
public int getRows()
setBorderWidth
public void setBorderWidth(int inValue)
getBorderWidth
public int getBorderWidth()
setCellSpacing
public void setCellSpacing(int inValue)
getCellSpacing
public int getCellSpacing()
setCellPadding
public void setCellPadding(int inValue)
getCellPadding
public int getCellPadding()
setBorderColor
public void setBorderColor(int inValue)
getBorderColor
public int getBorderColor()
setSpacingColor
public void setSpacingColor(int inValue)
getSpacingColor
public int getSpacingColor()
getTableCell
public TableCell getTableCell(int rowIndex,
int colIndex)
setNthColumnWidth
public void setNthColumnWidth(int nth,
int width)
setNthRowHeight
public void setNthRowHeight(int nth,
int height)
addRow
public boolean addRow(java.util.Vector row)
autoSize
public void autoSize()
- call this function when you are done adding
rows to a table
paint
public void paint(Pen p)
- Description copied from class:
View
- Draw the contents of this View. This method is called by the graphics
system when the View needs to be repainted. A Pen will be provided which
is appropriately clipped and translated for drawing on this View.
- Overrides:
paint in class Container
Danger Confidential. Copyright © 2000-2003, Danger Inc.