public class ComboServerController
extends java.lang.Object
Constructor and Description |
---|
ComboServerController(javax.swing.JComboBox combo) |
ComboServerController(javax.swing.JComboBox combo,
ServerData[] servers) |
Modifier and Type | Method and Description |
---|---|
void |
addServer(ServerData server)
This method adds a new Server in order
|
ServerData[] |
getAllServers()
This method returns an array with all the servers that the combo contains
|
javax.swing.JComboBox |
getCombo() |
java.lang.Object |
getItemAt(int i) |
int |
getItemCount() |
javax.swing.ComboBoxModel |
getModel() |
ServerData |
getSelectedServer()
This method returns the selected server
|
void |
setModel(javax.swing.ComboBoxModel model) |
void |
setServerList(ServerData[] servers)
It adds a server list
|
void |
setServersOrder()
This method order all the servers in the combo
|
public ComboServerController(javax.swing.JComboBox combo)
public ComboServerController(javax.swing.JComboBox combo, ServerData[] servers)
public javax.swing.JComboBox getCombo()
public ServerData getSelectedServer()
public void addServer(ServerData server)
server
- New Serverpublic ServerData[] getAllServers()
public void setServerList(ServerData[] servers)
servers
- Array with serverspublic void setServersOrder()
public void setModel(javax.swing.ComboBoxModel model)
public javax.swing.ComboBoxModel getModel()
public int getItemCount()
public java.lang.Object getItemAt(int i)