com.retek.commons.gui.table
Class RLayerRow

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bycom.retek.commons.gui.widget.RPanel
                      extended bycom.retek.commons.gui.table.RLayerRow
All Implemented Interfaces:
javax.accessibility.Accessible, java.util.EventListener, java.awt.event.FocusListener, java.awt.image.ImageObserver, java.awt.event.KeyListener, java.awt.MenuContainer, java.awt.event.MouseListener, REventListener, java.io.Serializable

public class RLayerRow
extends RPanel
implements java.awt.event.MouseListener, java.awt.event.KeyListener, java.awt.event.FocusListener

ENTRY ROW

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
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
RLayerRow()
          Creates a new REntryRow object.
RLayerRow(RowProperties properties)
          Creates a new REntry object with properties.
 
Method Summary
 void focusGained(java.awt.event.FocusEvent event)
          Implements the focus gained method for the row.
 void focusLost(java.awt.event.FocusEvent event)
          Implements the focus lost method for the row.
 int getColumnType(int column)
          Retrieves the column type of the specified column.
 int getLevel()
          Retrieves the level of the row.
 java.lang.Object getRowData()
          Retrieves an object stored within the row.
 int getRowNumber()
          Retrieves the row number of the REntryRow.
 java.lang.String[] getValues()
          Retrieves the row values used to display information within the row.
 boolean isPrimaryRow()
          Retrieves whether or not this row is a primary row.
 void keyPressed(java.awt.event.KeyEvent keyEvent)
          Implements the KeyListener method.
 void keyReleased(java.awt.event.KeyEvent event)
          The remaining key listener methods.
 void keyTyped(java.awt.event.KeyEvent event)
           
 void mouseClicked(java.awt.event.MouseEvent mouseEvent)
          Implements the MouseListener methods.
 void mouseEntered(java.awt.event.MouseEvent event)
          Remaining Mouse Listener methods.
 void mouseExited(java.awt.event.MouseEvent event)
           
 void mousePressed(java.awt.event.MouseEvent event)
           
 void mouseReleased(java.awt.event.MouseEvent event)
           
 void resizeColumns()
          Reset the width of the columns to the given widths.
 void setNormalMode()
          Sets the row to normal mode, displaying its basic colors.
 void setRowData(java.lang.Object object)
          Assigns a generic object to be stored within the row.
 void setRowNumber(int row)
          Assigns a row number to the REntryRow.
 void setSelectedMode(java.awt.Color fcolor, java.awt.Color bcolor)
          Sets the row to selected mode, displays the specified colors.
 void setValues(java.lang.String[] values)
          Assigns data values to each column of the row The data comes from the parameter row where each index of the array matches the index of the column to display the string in.
 java.lang.String toString()
          Returns string describing this entry row.
 
Methods inherited from class com.retek.commons.gui.widget.RPanel
addREventListener, getFocusCycleComponents, notifyREventListeners, notifyREventListeners, performActionEvent, performErrorEvent, removeAllREventListeners, removeREventListener, repaintPanel, setEmptyBorder, setEmptyBorder, setFocusCycleComponents, setLineBorder, setLineBorder, setLoweredBevelBorder, setMinimumHeight, setRaisedBevelBorder, setTitleBorder, setTitleBorder, setTitleBorder, setTitleBorder
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RLayerRow

public RLayerRow()
Creates a new REntryRow object.


RLayerRow

public RLayerRow(RowProperties properties)
Creates a new REntry object with properties. The details of the row will be calculated from the properties object.

Parameters:
properties - An object containing all the properties for the row.
Method Detail

setRowNumber

public void setRowNumber(int row)
Assigns a row number to the REntryRow. The row number represents the sequence of rows in the table.

Parameters:
row - The row number.

getRowNumber

public int getRowNumber()
Retrieves the row number of the REntryRow.

Returns:
The row number.

getLevel

public int getLevel()
Retrieves the level of the row.

Returns:
The row level.

isPrimaryRow

public boolean isPrimaryRow()
Retrieves whether or not this row is a primary row.

Returns:
The row level.

getColumnType

public int getColumnType(int column)
Retrieves the column type of the specified column.

Returns:
The column type.

setRowData

public void setRowData(java.lang.Object object)
Assigns a generic object to be stored within the row.

Parameters:
object - An object to store within the row.

getRowData

public java.lang.Object getRowData()
Retrieves an object stored within the row.

Returns:
The object stored within the row.

getValues

public java.lang.String[] getValues()
Retrieves the row values used to display information within the row. Each index of the string array is the column index of the represented data.

Returns:
The row values as a string array.

setValues

public void setValues(java.lang.String[] values)
Assigns data values to each column of the row The data comes from the parameter row where each index of the array matches the index of the column to display the string in.


mouseClicked

public void mouseClicked(java.awt.event.MouseEvent mouseEvent)
Implements the MouseListener methods. Sends a notification to all event listeners (ie. table) when the row is clicked on.

Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent event)
Remaining Mouse Listener methods. These do not need to be defined.

Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent event)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent event)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent event)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

setNormalMode

public void setNormalMode()
Sets the row to normal mode, displaying its basic colors.


setSelectedMode

public void setSelectedMode(java.awt.Color fcolor,
                            java.awt.Color bcolor)
Sets the row to selected mode, displays the specified colors.

Parameters:
fcolor - The foreground color for the selected row.
bcolor - The background color for the selected row.

resizeColumns

public void resizeColumns()
Reset the width of the columns to the given widths.


keyPressed

public void keyPressed(java.awt.event.KeyEvent keyEvent)
Implements the KeyListener method. If the ALT key is down, then the table should attempt to perform a sort. If the ALT key is not down, then UP, DOWN, TAB, SPACE, and ENTER all notify the table that they have been pressed.

Specified by:
keyPressed in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent event)
The remaining key listener methods. These do not need to be defined.

Specified by:
keyReleased in interface java.awt.event.KeyListener

keyTyped

public void keyTyped(java.awt.event.KeyEvent event)
Specified by:
keyTyped in interface java.awt.event.KeyListener

focusGained

public void focusGained(java.awt.event.FocusEvent event)
Implements the focus gained method for the row. If the row has focus and is not selected, then a line border should be displayed.

Specified by:
focusGained in interface java.awt.event.FocusListener

focusLost

public void focusLost(java.awt.event.FocusEvent event)
Implements the focus lost method for the row. Rows without focus never have a line border.

Specified by:
focusLost in interface java.awt.event.FocusListener

toString

public java.lang.String toString()
Returns string describing this entry row.



Copyright © 2005 Retek Inc. All Rights Reserved. - Generated at Fri, 01/21/2005 14:25