|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
org.universAAL.lddi.caller.test.gui.GUI
public class GUI
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JDialog |
---|
JDialog.AccessibleJDialog |
Nested classes/interfaces inherited from class java.awt.Dialog |
---|
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
static JPanel |
mainPanel
Main and secondary panels |
static boolean |
realMeasurement
Real or simulated measurement |
static JTextField |
uaalPublisherBloodPressureDiaValueTextfield
|
static JTextField |
uaalPublisherBloodPressurePulValueTextfield
|
static JTextField |
uaalPublisherBloodPressureSysValueTextfield
|
static JTextField |
uaalPublisherWeightUnitTextfield
|
static JTextField |
uaalPublisherWeightValueTextfield
|
Fields inherited from class javax.swing.JDialog |
---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Dialog |
---|
DEFAULT_MODALITY_TYPE |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
GUI(org.osgi.framework.BundleContext context,
ModuleContext mc)
|
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
Action listener for radio buttons and jbuttons |
void |
addJLabelComponent(JComponent component)
Add components to panel |
void |
closeGUI()
Close GUI frame |
void |
createComponents()
Create components |
JButton |
createJButton(String image,
int x,
int y,
int weight,
int height,
String name)
Create JButtons |
JLabel |
createJLabel(String name,
int x,
int y,
int weight,
int height,
int fontType,
int fontSize)
Create JLabel |
JPanel |
createJPanel()
Create JPanel |
JRadioButton |
createJRadioButton(String name)
Create JRadioButtons |
JTextField |
createJTextfield(int x,
int y,
int weight,
int height,
int fontType,
int fontSize)
Create JTextfield |
int |
getRandomValue(int min,
int max)
Get randomized value |
void |
init()
Create the main frame |
void |
resetComponentsStatus()
Reset components |
double |
shortDecimalNumber(double d)
Shorten number of decimals |
void |
stopGUI()
Exit all |
void |
switchOffManagerService()
|
Methods inherited from class java.awt.Dialog |
---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static JPanel mainPanel
public static JTextField uaalPublisherWeightValueTextfield
public static JTextField uaalPublisherWeightUnitTextfield
public static JTextField uaalPublisherBloodPressureSysValueTextfield
public static JTextField uaalPublisherBloodPressureDiaValueTextfield
public static JTextField uaalPublisherBloodPressurePulValueTextfield
public static boolean realMeasurement
Constructor Detail |
---|
public GUI(org.osgi.framework.BundleContext context, ModuleContext mc)
Method Detail |
---|
public void init()
public void createComponents()
public JPanel createJPanel()
public JButton createJButton(String image, int x, int y, int weight, int height, String name)
public JRadioButton createJRadioButton(String name)
public void closeGUI()
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public JLabel createJLabel(String name, int x, int y, int weight, int height, int fontType, int fontSize)
public JTextField createJTextfield(int x, int y, int weight, int height, int fontType, int fontSize)
public void addJLabelComponent(JComponent component)
public void resetComponentsStatus()
public double shortDecimalNumber(double d)
public int getRandomValue(int min, int max)
public void switchOffManagerService()
public void stopGUI()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |