|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
IInfoPanel getInfoPanel()
javax.swing.JFrame getOwner4Dialog()
void addHOTableRenderer(javax.swing.JTable table)
table
- TODO Missing Constructuor Parameter Documentationvoid addMainFrameListener(java.awt.event.WindowListener listener)
listener
- TODO Missing Constructuor Parameter Documentationvoid addMenu(javax.swing.JMenu menu)
menu
- the Menu you want to addvoid addOptionPanel(java.lang.String name, javax.swing.JPanel optionpanel)
name
- Name für the Tab in the OptionDialogoptionpanel
- The panel with the options for the pluginvoid addPlayerComboboxRenderer(javax.swing.JComboBox combobox)
combobox
- TODO Missing Constructuor Parameter Documentationvoid addTab(java.lang.String name, javax.swing.JPanel panel)
name
- Name für the Tabpanel
- The panel, you want to addvoid addTopLevelMenu(javax.swing.JMenu menu)
menu
- the Menu you want to addjavax.swing.JPanel createBallPanel(int ballcount)
ballcount
- Number of balls, that shall be shown on the panel
IDebugWindow createDebugWindow(java.awt.Point position, java.awt.Dimension size)
position
- Position, where the DebugWindow shall be shownsize
- Size of the DebugWindow
javax.swing.JPanel createGrassPanel()
javax.swing.JPanel createImagePanel()
javax.swing.JPanel createMatchPredictionPanel(IMPTeamData hometeam, IMPTeamData guestteam)
hometeam
- Teamdata for the hometeamguestteam
- Teamdata for the guestteam
IHOTableEntry createPlayerTableEntry(ISpieler player, int positionid, byte taktic, float positionvalue, boolean showTrikot, boolean showWeatherwarning)
player
- the playerpositionid
- 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 != 0showTrikot
- shows Trikot before the playernameshowWeatherwarning
- 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:
ISpielerComboboxItem createSpielerComboboxItem(java.lang.String text, float posvalue, ISpieler player)
text
- Shown text, usually spieler.getName()posvalue
- Rating for the actual positionplayer
- The player
javax.swing.JPanel createStarPanel(int starcount, boolean yellowstar)
starcount
- Number of half(!)stars, that shall be shown on the panelyellowstar
- true: the stars are yellow, false: the stars are grey
javax.swing.JWindow createWaitDialog(java.awt.Window owner)
owner
- Owner-Window for the Wait-Dialog, or null, if the HO!-MainFrame shall be the
owner
void doLineupRefresh()
void doRefresh()
void print(java.lang.String name, javax.swing.JPanel panel)
name
- Name for the printpanel
- The panel, that shall be printedvoid registerRefreshable(IRefreshable refreshable)
refreshable
- The refreshable-objekt, that shall be informedvoid removeMainFrameListener(java.awt.event.WindowListener listener)
listener
- TODO Missing Constructuor Parameter Documentationvoid unregisterRefreshable(IRefreshable refreshable)
refreshable
- The refreshable-objekt, that shall be removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |