public class ReceiveAction extends FocusOwnerAction
FocusOwnerAction
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected UIController |
uiController
User Interface Controller
|
focusOwner
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Constructor and Description |
---|
ReceiveAction(UIController uiController)
Creates a new receive action
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent event) |
void |
clickOnSidebar(Connections connection,
Observer observer,
String password)
Method that will get the active cell and sends that information to the
controller
|
void |
clickOnSidebar(String IP,
int port,
String password,
Observer observer)
Method that will get the active cell and sends that information to the
controller
|
protected static ReceiveAction |
getInstance()
Method that returns the first instance of this action
|
protected String |
getName()
Returns the action's name.
|
propertyChange
defineProperties, requiresFile, requiresModification, showErrorDialog
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
protected UIController uiController
public ReceiveAction(UIController uiController)
uiController
- user interface controllerprotected static ReceiveAction getInstance()
public void actionPerformed(ActionEvent event)
protected String getName()
BaseAction
getName
in class BaseAction
public void clickOnSidebar(String IP, int port, String password, Observer observer)
IP
- the server IPport
- the connection portpassword
- the connection passwordobserver
- the observer classpublic void clickOnSidebar(Connections connection, Observer observer, String password)
connection
- the connection detailsobserver
- the observer classpassword
- the password connection