|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Panel | +--jwo.vfc.hubclient.ClientBean
Creates a Hub client bean.
Nested Class Summary |
Nested classes inherited from class java.awt.Panel |
Panel.AccessibleAWTPanel |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
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 | |
ClientBean()
Creates a hub client that can connect to a VFC hub server. |
|
ClientBean(String configFile)
Creates a hub client that can connect to a VFC hub server with the parameters defined in the given config file. |
Method Summary | |
boolean |
createConfigFile(String configFile)
Creates a configuration file containing the currently chosen hub client options. |
String |
getAccess()
Reports the type of access for submitted objects. |
boolean |
getBorder()
Reports the border drawing status of the bean. |
String |
getHost()
Reports the host running the hub server. |
String |
getLogin()
Reports the username for restricted database access. |
Dimension |
getMinimumSize()
Determines the minimum size of the bean. |
String |
getOutput()
Reports the output directory for files downloaded from the hub. |
String |
getOutputFile()
Reports the full relative output path for a file downloaded from the hub. |
String |
getPassword()
Reports the password for restricted database access. |
int |
getPort()
Reports the port to connect to the hub server. |
Dimension |
getPreferredSize()
Determines the preferred size of the bean. |
String |
getTitle()
Reports the title of this bean. |
void |
paint(Graphics g)
Draws a visual representation of the bean. |
String |
sendMessage(String message)
Sends a message to the hub server and returns its response. |
void |
setAccess(String access)
Sets the default access rights for submitted objects. |
void |
setBorder(boolean border)
Sets the border drawing status of the bean. |
void |
setHost(String host)
Sets the host running the hub server. |
void |
setLogin(String login)
Sets the username for restricted database access. |
void |
setOutput(String output)
Sets the output directory for files downloaded from the hub. |
void |
setPassword(String password)
Sets the password for restricted database access. |
void |
setPort(int port)
Sets the port to connect to the hub server. |
void |
setTitle(String title)
Sets the title displayed by the bean. |
boolean |
updateFromConfigFile(String configFile)
Updates the client parameters from the given configuration file. |
Methods inherited from class java.awt.Panel |
addNotify, getAccessibleContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ClientBean()
public ClientBean(String configFile)
configFile
- Configuration file containing default client options.Method Detail |
public String sendMessage(String message)
message
- Message to send to server.
public boolean updateFromConfigFile(String configFile)
configFile
- Name of file containing configuration information.
public boolean createConfigFile(String configFile)
configFile
- Name of configuration file to contain options.
public void setHost(String host)
host
- Host running the hub server.public String getHost()
public void setPort(int port)
port
- Port to connect to the hub server.public int getPort()
public void setLogin(String login)
login
- Username for database account.public String getLogin()
public void setPassword(String password)
password
- Password for database account.public String getPassword()
public void setOutput(String output)
output
- Output directory for downloaded files.public String getOutput()
public String getOutputFile()
public void setTitle(String title)
title
- New title for the bean.public String getTitle()
public void setBorder(boolean border)
border
- 'Etched' border is drawn around bean if true.public boolean getBorder()
public void setAccess(String access)
access
- Type of access.public String getAccess()
public Dimension getPreferredSize()
getPreferredSize
in class Container
public Dimension getMinimumSize()
getMinimumSize
in class Container
public void paint(Graphics g)
paint
in class Container
g
- Graphics context.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |