plugins
Interface IGUI

All Known Implementing Classes:
GUIPluginWrapper

public interface IGUI

This Interface define methodes to include the plugin into the GUI of HO! For loadImage-methodes see IHelper


Method Summary
 void addHOTableRenderer(javax.swing.JTable table)
          Set the default-Renderer of the table so you can put IHOTableEntries in the table.
 void addMainFrameListener(java.awt.event.WindowListener listener)
          Add a Windowlistener to the HO!-MainFrame to receive an Event by exiting HO!
 void addMenu(javax.swing.JMenu menu)
          Add a Plugin Menu to the HO!-Frame
 void addOptionPanel(java.lang.String name, javax.swing.JPanel optionpanel)
          Add a panel to the Option-Dialog where the User can set the settings for this plugin
 void addPlayerComboboxRenderer(javax.swing.JComboBox combobox)
          Set a Renderer to a JCombobox, so you can put ISpielerComboboxItems in it.
 void addTab(java.lang.String name, javax.swing.JPanel panel)
          Adds the Panel to the JTabbedPane on the HO!-Mainframe.
 void addTopLevelMenu(javax.swing.JMenu menu)
          Add a Menu to the HO!-Frame
 javax.swing.JPanel createBallPanel(int ballcount)
          Returns a panel that shows a number of soccerballs
 IDebugWindow createDebugWindow(java.awt.Point position, java.awt.Dimension size)
          Returns a DebugWindow for the Debuginformations.
 javax.swing.JPanel createGrassPanel()
          Returns a panel with the grass-background, used for the lineup
 javax.swing.JPanel createImagePanel()
          Returns a panel with the gray-Image-background, usualy used in HO!
 javax.swing.JPanel createMatchPredictionPanel(IMPTeamData hometeam, IMPTeamData guestteam)
          Returns a MatchPredictionpanel (IMatchPredictionPanel) Create the parameter with IMatchPredictionManager you receive from IHOMiniModel.getMatchPredictionManager
 IHOTableEntry createPlayerTableEntry(ISpieler player, int positionid, byte taktic, float positionvalue, boolean showTrikot, boolean showWeatherwarning)
          Returns a IHOTableEntry for a player.
 ISpielerComboboxItem createSpielerComboboxItem(java.lang.String text, float posvalue, ISpieler player)
          Returns a Item for a JCombobox with the addPlayerComboboxRenderer() set.
 javax.swing.JPanel createStarPanel(int starcount, boolean yellowstar)
          Returns a panel that shows a number of stars.
 javax.swing.JWindow createWaitDialog(java.awt.Window owner)
          Returns a WaitDialog with a (not accessable) Progressbar.
 void doLineupRefresh()
          Informs the player- and lineuptables and the lineupscreen, that the lineup has been changed.
 void doRefresh()
          Inform all registered Refreshable-Objects in HO! and call their refresh- methods
 IInfoPanel getInfoPanel()
          Get the information (status) barpanel at the bottom of the MainFrame
 javax.swing.JFrame getOwner4Dialog()
          Get the HO!-Mainframe as the owner for a Dialog
 void print(java.lang.String name, javax.swing.JPanel panel)
          Prints the panel
 void registerRefreshable(IRefreshable refreshable)
          Register the IRefreshable, so the refresh-method is called, if the data is changed ( new HRF downloaded, etc.
 void removeMainFrameListener(java.awt.event.WindowListener listener)
          Remove the Windowlistener from the HO!-MainFrame
 void unregisterRefreshable(IRefreshable refreshable)
          Remove the registration for that Objekt
 

Method Detail

getInfoPanel

IInfoPanel getInfoPanel()
Get the information (status) barpanel at the bottom of the MainFrame

Returns:
TODO Missing Return Method Documentation

getOwner4Dialog

javax.swing.JFrame getOwner4Dialog()
Get the HO!-Mainframe as the owner for a Dialog

Returns:
TODO Missing Return Method Documentation

addHOTableRenderer

void addHOTableRenderer(javax.swing.JTable table)
Set the default-Renderer of the table so you can put IHOTableEntries in the table. You can show javax.swing.JComponent instead of simple text.

Parameters:
table - TODO Missing Constructuor Parameter Documentation

addMainFrameListener

void addMainFrameListener(java.awt.event.WindowListener listener)
Add a Windowlistener to the HO!-MainFrame to receive an Event by exiting HO!

Parameters:
listener - TODO Missing Constructuor Parameter Documentation

addMenu

void addMenu(javax.swing.JMenu menu)
Add a Plugin Menu to the HO!-Frame

Parameters:
menu - the Menu you want to add

addOptionPanel

void addOptionPanel(java.lang.String name,
                    javax.swing.JPanel optionpanel)
Add a panel to the Option-Dialog where the User can set the settings for this plugin

Parameters:
name - Name für the Tab in the OptionDialog
optionpanel - The panel with the options for the plugin

addPlayerComboboxRenderer

void addPlayerComboboxRenderer(javax.swing.JComboBox combobox)
Set a Renderer to a JCombobox, so you can put ISpielerComboboxItems in it.

Parameters:
combobox - TODO Missing Constructuor Parameter Documentation

addTab

void addTab(java.lang.String name,
            javax.swing.JPanel panel)
Adds the Panel to the JTabbedPane on the HO!-Mainframe.

Parameters:
name - Name für the Tab
panel - The panel, you want to add

addTopLevelMenu

void addTopLevelMenu(javax.swing.JMenu menu)
Add a Menu to the HO!-Frame

Parameters:
menu - the Menu you want to add

createBallPanel

javax.swing.JPanel createBallPanel(int ballcount)
Returns a panel that shows a number of soccerballs

Parameters:
ballcount - Number of balls, that shall be shown on the panel
Returns:
TODO Missing Return Method Documentation

createDebugWindow

IDebugWindow createDebugWindow(java.awt.Point position,
                               java.awt.Dimension size)
Returns a DebugWindow for the Debuginformations. System.out can not be used so use this Window instead

Parameters:
position - Position, where the DebugWindow shall be shown
size - Size of the DebugWindow
Returns:
TODO Missing Return Method Documentation

createGrassPanel

javax.swing.JPanel createGrassPanel()
Returns a panel with the grass-background, used for the lineup

Returns:
TODO Missing Return Method Documentation

createImagePanel

javax.swing.JPanel createImagePanel()
Returns a panel with the gray-Image-background, usualy used in HO!

Returns:
TODO Missing Return Method Documentation

createMatchPredictionPanel

javax.swing.JPanel createMatchPredictionPanel(IMPTeamData hometeam,
                                              IMPTeamData guestteam)
Returns a MatchPredictionpanel (IMatchPredictionPanel) Create the parameter with IMatchPredictionManager you receive from IHOMiniModel.getMatchPredictionManager

Parameters:
hometeam - Teamdata for the hometeam
guestteam - Teamdata for the guestteam
Returns:
TODO Missing Return Method Documentation

createPlayerTableEntry

IHOTableEntry createPlayerTableEntry(ISpieler player,
                                     int positionid,
                                     byte taktic,
                                     float positionvalue,
                                     boolean showTrikot,
                                     boolean showWeatherwarning)
Returns a IHOTableEntry for a player. You can use the getComponent()-methode to display the Component elsewhere.

Parameters:
player - the player
positionid - the actual position of the player ( ISpielerPosition.keeper, .. )
taktic - the taktic for the position ( ISpielerPosition.NORMAL, ... )
positionvalue - HO!Rating for the player at that position, shown as (x.x) behind the name, if showTrikot=true and this values != 0
showTrikot - shows Trikot before the playername
showWeatherwarning - acourding to the weather set in the lineupassist a warningicon may appear right of the playername For instance: Playersquadtable: positionvalue=0f, showTrikot=false, showWeatherwarning=false LineupComboBoxes:
Returns:
TODO Missing Return Method Documentation

createSpielerComboboxItem

ISpielerComboboxItem createSpielerComboboxItem(java.lang.String text,
                                               float posvalue,
                                               ISpieler player)
Returns a Item for a JCombobox with the addPlayerComboboxRenderer() set.

Parameters:
text - Shown text, usually spieler.getName()
posvalue - Rating for the actual position
player - The player
Returns:
TODO Missing Return Method Documentation

createStarPanel

javax.swing.JPanel createStarPanel(int starcount,
                                   boolean yellowstar)
Returns a panel that shows a number of stars. For large numbers of stars a star with a 5, 10 or 50 written on it is used

Parameters:
starcount - Number of half(!)stars, that shall be shown on the panel
yellowstar - true: the stars are yellow, false: the stars are grey
Returns:
TODO Missing Return Method Documentation

createWaitDialog

javax.swing.JWindow createWaitDialog(java.awt.Window owner)
Returns a WaitDialog with a (not accessable) Progressbar. Just use the setVisible( boolean ) Methode to show or hide the Dialog.

Parameters:
owner - Owner-Window for the Wait-Dialog, or null, if the HO!-MainFrame shall be the owner
Returns:
TODO Missing Return Method Documentation

doLineupRefresh

void doLineupRefresh()
Informs the player- and lineuptables and the lineupscreen, that the lineup has been changed. This methode is much faster than doRefresh and should be used, if a plugin changes the lineup


doRefresh

void doRefresh()
Inform all registered Refreshable-Objects in HO! and call their refresh- methods


print

void print(java.lang.String name,
           javax.swing.JPanel panel)
Prints the panel

Parameters:
name - Name for the print
panel - The panel, that shall be printed

registerRefreshable

void registerRefreshable(IRefreshable refreshable)
Register the IRefreshable, so the refresh-method is called, if the data is changed ( new HRF downloaded, etc. )

Parameters:
refreshable - The refreshable-objekt, that shall be informed

removeMainFrameListener

void removeMainFrameListener(java.awt.event.WindowListener listener)
Remove the Windowlistener from the HO!-MainFrame

Parameters:
listener - TODO Missing Constructuor Parameter Documentation

unregisterRefreshable

void unregisterRefreshable(IRefreshable refreshable)
Remove the registration for that Objekt

Parameters:
refreshable - The refreshable-objekt, that shall be removed