|
VRJConfig UI API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.vrjuggler.vrjconfig.commoneditors.proxytree.ProxyChooser
public class ProxyChooser
The ProxyChooser provides a simple mechanism for the user to choose a valid proxy from a list.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
APPROVE_OPTION
Return value if approve is chosen. |
static int |
CANCEL_OPTION
Return value if cancel is chosen. |
static int |
ERROR_OPTION
Return value if an error occured. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ProxyChooser()
Constructs a new ProxyChooser. |
|
| Method Summary | |
|---|---|
void |
approveSelection()
Called when the approve button has been depressed. |
void |
cancelSelection()
Called when the cancel button has been depressed. |
String |
getApproveButtonText()
Gets the text used in the approval button. |
String |
getDialogTitle()
Gets the string that goes in the ProxyChooser window's title bar. |
List |
getProxies()
Gets the list of valid proxies that this chooser allows the user to choose from. |
ConfigElement |
getSelectedProxy()
Gets the selected proxy. |
void |
setDialogTitle(String title)
Sets the string that goes in the ProxyChooser window's title bar. |
void |
setProxies(List proxies)
Sets the list of valid proxies that this chooser allows the user to choose from. |
void |
setSelectedProxy(ConfigElement proxy)
Sets the selected configuration proxy to the given proxy. |
int |
showDialog(Component parent)
|
int |
showDialog(Component parent,
String approveText)
Pops up a custom proxy chooser dialog. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int APPROVE_OPTION
public static final int CANCEL_OPTION
public static final int ERROR_OPTION
| Constructor Detail |
|---|
public ProxyChooser()
| Method Detail |
|---|
public int showDialog(Component parent)
public int showDialog(Component parent,
String approveText)
parent - the parent component of the dialog; can be nullapproveText - the text of the approval button
public List getProxies()
public void setProxies(List proxies)
public ConfigElement getSelectedProxy()
public void setSelectedProxy(ConfigElement proxy)
proxy - the selected proxypublic String getDialogTitle()
public void setDialogTitle(String title)
public String getApproveButtonText()
public void approveSelection()
public void cancelSelection()
|
VRJConfig UI API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||