public class ConfigFile
extends java.lang.Object
Constructor and Description |
---|
ConfigFile(java.io.File f)
Creates a new instance of ConfigFile.
|
Modifier and Type | Method and Description |
---|---|
int |
getDBits()
Gets the data bits' variable.
|
int |
getFlowCtl()
Gets the flow control variable.
|
int |
getFontSizeValue()
Gets the font size variable.
|
int |
getHeight()
Gets the height variable.
|
boolean |
getIsMax()
Gets the isMax variable.
|
int |
getParity()
Gets the parity variable.
|
java.lang.String |
getPort()
Gets the port variable.
|
int |
getSBits()
Gets the stop bits' variable.
|
int |
getSelectedTab()
Gets the selected tab.
|
int |
getSpeed()
Gets the speed variable.
|
int |
getWidth()
Gets the width variable.
|
int |
getX()
Gets the X variable.
|
int |
getY()
Gets the Y variable.
|
void |
read()
Read the parameters from the given file and stores them inside private
fields.
|
void |
setDataBits(int v)
Sets the data bits' variable.
|
void |
setFlow(int v)
Sets the flow control variable.
|
void |
setFontSizeValue(int v)
Sets the font size variable.
|
void |
setHeight(int v)
Sets the height variable.
|
void |
setIsMaximized(boolean v)
Sets the isMaximized variable.
|
void |
setParity(int v)
Sets the parity variable.
|
void |
setPort(java.lang.String v)
Sets the port variable.
|
void |
setSelectedTab(int v)
Sets the selected tab.
|
void |
setSpeed(int v)
Sets the speed variable.
|
void |
setStopBits(int v)
Sets the stop bits' variable.
|
void |
setWidth(int v)
Sets the width variable.
|
void |
setX(int v)
Sets the X variable.
|
void |
setY(int v)
Sets the Y variable.
|
void |
write()
Writes the parameters to the given file
|
public ConfigFile(java.io.File f)
f
- The file to read/write parameters from/to.public void read() throws java.lang.Exception
java.lang.Exception
- on file error.public void write() throws java.lang.Exception
java.lang.Exception
- on file error.public void setPort(java.lang.String v)
v
- the new value.public void setSpeed(int v)
v
- the new value.public void setDataBits(int v)
v
- the new value.public void setParity(int v)
v
- the new value.public void setStopBits(int v)
v
- the new value.public void setFlow(int v)
v
- the new value.public void setX(int v)
v
- the new value.public void setY(int v)
v
- the new value.public void setWidth(int v)
v
- the new value.public void setHeight(int v)
v
- the new value.public void setIsMaximized(boolean v)
v
- the new value.public void setFontSizeValue(int v)
v
- the new value.public void setSelectedTab(int v)
v
- the new value.public java.lang.String getPort()
public int getSpeed()
public int getDBits()
public int getParity()
public int getSBits()
public int getFlowCtl()
public int getX()
public int getY()
public int getWidth()
public int getHeight()
public boolean getIsMax()
public int getFontSizeValue()
public int getSelectedTab()