public class TLcdStringComponentTable extends Panel
ILcdStringComponentTableModel
. The first column contains
Strings, and the second Components. All Strings and Components at a given row
is returned by the ILcdStringComponentTableModel
attached to this
TLcdStringComponentTable
. The implementation of this class may be later improved
by adding in this Container
only the visible Components returned by the
attached ILcdStringComponentTableModel
.
ILcdStringComponentTableModel
,
Serialized FormPanel.AccessibleAWTPanel
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static int |
SCROLLBAR_ALWAYS
Deprecated.
|
static int |
SCROLLBAR_AS_NEEDED
Deprecated.
|
static int |
SCROLLBAR_NEVER
Deprecated.
|
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
TLcdStringComponentTable()
Deprecated.
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
doLayout()
Deprecated.
Re-defines
Component.doLayout() to bound the Components at the right size
and location in the second column. |
Component |
getComponent()
Deprecated.
|
Color |
getHeaderBackground()
Deprecated.
Sets the HeaderBackground property.
|
int |
getHGap()
Deprecated.
Gets the Horizontal Gap between 2 rows.
|
int |
getLeftRightMargin()
Deprecated.
|
Dimension |
getMinimumSize()
Deprecated.
Re-defines
Component.getPreferredSize() . |
int |
getMinWidth()
Deprecated.
Sets the minimum width of a column.
|
Dimension |
getPreferredSize()
Deprecated.
Re-defines
Component.getPreferredSize() . |
int |
getPreferredWidth()
Deprecated.
Sets the minimum width of a column.
|
int |
getRowHeight()
Deprecated.
Gets the height of each row.
|
ILcdStringComponentTableModel |
getTableModel()
Deprecated.
|
int |
getTopBottomMargin()
Deprecated.
Gets the TopBottomMargin property.
|
int |
getVGap()
Deprecated.
Gets the Vertical Gap between 2 rows.
|
int |
getWidth()
Deprecated.
|
boolean |
isTraceOn()
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
void |
paint(Graphics g)
Deprecated.
Re-defines
Component.paint() , to firstly paint the Strings on the left
column, and then the Components on the right one by calling super.paint() . |
static void |
setClassTraceOn(boolean aClassTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
void |
setHeaderBackground(Color aColor)
Deprecated.
Gets the HeaderBackground property.
|
void |
setHGap(int newHGap)
Deprecated.
Sets the Horizontal Gap between 2 rows.
|
void |
setLeftRightMargin(int newLeftRightMargin)
Deprecated.
Sets the LeftRightMargin property.
|
void |
setMinWidth(int newMinWidth)
Deprecated.
Sets the minimum width of a column.
|
void |
setRowHeight(int newRowHeight)
Deprecated.
Sets the height of each row.
|
void |
setTableModel(ILcdStringComponentTableModel aStringComponentTableModel)
Deprecated.
Sets the
ILcdStringComponentTableModel for this TLcdStringComponentTable . |
void |
setTopBottomMargin(int newTopBottomMargin)
Deprecated.
Sets the TopBottomMargin property.
|
void |
setTraceOn(boolean aTraceOn)
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
void |
setVGap(int newVGap)
Deprecated.
Sets the Vertical Gap between 2 rows.
|
addNotify, getAccessibleContext
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, isValidateRoot, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final int SCROLLBAR_AS_NEEDED
public static final int SCROLLBAR_ALWAYS
public static final int SCROLLBAR_NEVER
public TLcdStringComponentTable()
public static void setClassTraceOn(boolean aClassTraceOn)
true
then all log messages are recorded, otherwise only
the informative, warning and error messages are recorded.aClassTraceOn
- if true then all log messages are recorded,
otherwise only the informative, warning and error messages are recorded.public void setTraceOn(boolean aTraceOn)
true
or false
as argument automatically turns
off tracing for all other class instances for which
setTraceOn
has not been called.
If the argument is false
then only the informative, warning
and error log messages are recorded.aTraceOn
- if true then all log messages are recorded for this
instance. If false, then only the informative, warning and
error log messages are recorded.public boolean isTraceOn()
true
if tracing is enabled for this class.public Component getComponent()
public void setTableModel(ILcdStringComponentTableModel aStringComponentTableModel)
ILcdStringComponentTableModel
for this TLcdStringComponentTable
.ILcdStringComponentTableModel
public ILcdStringComponentTableModel getTableModel()
public void doLayout()
Component.doLayout()
to bound the Components at the right size
and location in the second column. Note that only the Component
are added,
the Strings are drawn by the paint()
method.public void paint(Graphics g)
Component.paint()
, to firstly paint the Strings on the left
column, and then the Components on the right one by calling super.paint()
.public Dimension getMinimumSize()
Component.getPreferredSize()
.getMinimumSize
in class Container
public Dimension getPreferredSize()
Component.getPreferredSize()
.getPreferredSize
in class Container
public Color getHeaderBackground()
public void setHeaderBackground(Color aColor)
public void setRowHeight(int newRowHeight)
public int getRowHeight()
public void setMinWidth(int newMinWidth)
public int getMinWidth()
public int getPreferredWidth()
public void setHGap(int newHGap)
public int getHGap()
public void setVGap(int newVGap)
public int getVGap()
public void setLeftRightMargin(int newLeftRightMargin)
public int getLeftRightMargin()
public void setTopBottomMargin(int newTopBottomMargin)
public int getTopBottomMargin()