|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
org.jdesktop.swingx.action.ServerAction
public class ServerAction
An action which will invoke an http POST operation.
Field Summary |
---|
Fields inherited from class javax.swing.AbstractAction |
---|
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary | |
---|---|
ServerAction()
|
|
ServerAction(String name)
|
|
ServerAction(String name,
Icon icon)
|
|
ServerAction(String name,
String command)
|
|
ServerAction(String name,
String command,
Icon icon)
|
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent evt)
Invokes the server operation when the action has been invoked. |
void |
addHeader(String name,
String value)
Adds a name value pair which represents a url connection request property. |
void |
addParam(String name,
String value)
Adds a name value pair which represents a url parameter in an http POST request. |
Set<String> |
getHeaderNames()
Return a set of parameter names or null if there are no params |
String |
getHeaderValue(String name)
Return a header value corresponding to name or null if it doesn't exist. |
Set<String> |
getParamNames()
Return a set of parameter names or null if there are no params |
String |
getParamValue(String name)
Return a parameter value corresponding to name or null if it doesn't exist. |
String |
getURL()
|
void |
setURL(String url)
Set the url for the action. |
Methods inherited from class javax.swing.AbstractAction |
---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServerAction()
public ServerAction(String name)
public ServerAction(String name, String command)
name
- display name of the actioncommand
- the value of the action command keypublic ServerAction(String name, Icon icon)
public ServerAction(String name, String command, Icon icon)
name
- display name of the actioncommand
- the value of the action command keyicon
- icon to displayMethod Detail |
---|
public void setURL(String url)
url
- a string representation of the urlpublic String getURL()
public void addParam(String name, String value)
public String getParamValue(String name)
public Set<String> getParamNames()
public void addHeader(String name, String value)
public String getHeaderValue(String name)
public Set<String> getHeaderNames()
public void actionPerformed(ActionEvent evt)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |