MetaDone
metadone.client.grasyla2.swing.TableRow Class Reference
Collaboration diagram for metadone.client.grasyla2.swing.TableRow:

List of all members.

Public Member Functions

 TableRow (Component<?extends JComponent > comp)
GrasylaEngine getEngine ()
JComponent get (int index)
boolean isEditable ()
void setEditable (boolean editable)
String getAsString (int index)
final int hashCode ()
final boolean equals (Object obj)
String toString ()

Private Attributes

final Component<?extends
JComponent > 
component
boolean editable = true

Detailed Description

A row of a table.

Used in Grasyla to be able to store easily JComponent cells and their related properties.

Author:
kma

Constructor & Destructor Documentation

metadone.client.grasyla2.swing.TableRow.TableRow ( Component<?extends JComponent >  comp)

Initializes this row

Parameters:
compThe component representing the row

References metadone.client.grasyla2.swing.TableRow.component.


Member Function Documentation

final boolean metadone.client.grasyla2.swing.TableRow.equals ( Object  obj)
JComponent metadone.client.grasyla2.swing.TableRow.get ( int  index)

Gets the swing component at the given index.

Parameters:
indexThe index
Returns:
The component
Exceptions:
IndexOutOfBoundsExceptionwhen the index is invalid

References metadone.client.grasyla2.swing.TableRow.component.

Referenced by metadone.client.grasyla2.swing.JTableEngine.GrasylaTableModel.getRow().

String metadone.client.grasyla2.swing.TableRow.getAsString ( int  index)

Converts a component at the given index into a string.

Parameters:
indexThe index
Returns:
The component as a string
Exceptions:
IndexOutOfBoundsExceptionwhen the index is invalid
GrasylaEngine metadone.client.grasyla2.swing.TableRow.getEngine ( )

Gets the engine.

Returns:
The engine

References metadone.client.grasyla2.swing.TableRow.component.

final int metadone.client.grasyla2.swing.TableRow.hashCode ( )
boolean metadone.client.grasyla2.swing.TableRow.isEditable ( )

Indicates whether the row is editable.

Returns:
true if the row is editable

References metadone.client.grasyla2.swing.TableRow.editable.

void metadone.client.grasyla2.swing.TableRow.setEditable ( boolean  editable)

Sets the editable flag.

By default a row is editable.

Parameters:
editableThe new value

References metadone.client.grasyla2.swing.TableRow.editable.

String metadone.client.grasyla2.swing.TableRow.toString ( )

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations