plugins
Interface IHOTableEntry

All Superinterfaces:
java.lang.Comparable
All Known Implementing Classes:
ColorLabelEntry, DoppelLabelEntry, ProgressbarTableEntry, RatingTableEntry, SkillEntry, SmilieEntry, SpielerLabelEntry, SpielerStatusLabelEntry, TableEntry, TorLabelEntry

public interface IHOTableEntry
extends java.lang.Comparable

An Entry for a JTable, first set addHOTableRendere( javax.swing.JTable table ) so your table shows the Entry correct

Author:
FoolmooN

Method Summary
 void clear()
          Clear the Component and reset it to the defaultvalues You donīt have to use this method at all, but it is recommend.
 int compareTo(java.lang.Object obj)
          Usefull to sort the table
 void createComponent()
          Create the Component.
 javax.swing.JComponent getComponent(boolean isSelected)
          This methode returns the JComponent, which shall be shown in the Table.
 void updateComponent()
          Update the Component which was created bei createComponent instead of creating a new one.
 

Method Detail

getComponent

javax.swing.JComponent getComponent(boolean isSelected)
This methode returns the JComponent, which shall be shown in the Table. The component should be created be createComponent and only the background should be changed according to the isSelected-Flag. Nevertheless you can ignore the createComponent and updateComponent and create a new one everytime getComponent is called, but that is much slower!

Parameters:
isSelected - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

clear

void clear()
Clear the Component and reset it to the defaultvalues You donīt have to use this method at all, but it is recommend.


compareTo

int compareTo(java.lang.Object obj)
Usefull to sort the table

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
obj - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation

createComponent

void createComponent()
Create the Component. Keep it in a variable, so the same Component can be returned by calling getComponent. You donīt have to use this method at all, but it is recommend.


updateComponent

void updateComponent()
Update the Component which was created bei createComponent instead of creating a new one. You donīt have to use this method at all, but it is recommend.