Public Member Functions | |
void | createGUI () |
void | createTabbedPane (LinkedHashMap attributes, String XML) |
void | setRightComp (JComponent component, boolean showButtons) |
void | setLeftComp () |
void | display (String message, boolean newLine) |
void | setPath (String newLoc) |
String | getPath () |
void | enableButtons (boolean enable) |
boolean | buttonsEnabled () |
void | actionPerformed (ActionEvent e) |
Static Public Member Functions | |
Browser | getInstance () |
void | main (String[]args) |
Package Functions | |
Browser () | |
Private Attributes | |
JTextArea | messageTextArea |
JSplitPane | splitPane |
final int | dividerLocation = 240 |
JTextField | currentLocation |
final JButton | saveChanges = new JButton(" Save Changes to XML record ") |
final JButton | resetData = new JButton(" Reset Data ") |
JButton | refreshTree = new JButton(" Refrest CDB Tree ") |
final String | titleCol1 = "ATTRIBUTE NAME" |
final String | titleCol2 = "ATTRIBUTE VALUE" |
Static Private Attributes | |
Browser | instance = null |
String | strIOR = null |
|
Constructor of the Browser class. |
|
Invoked when an action occurs (User presses the button).
|
|
Checks if the buttons (on top pf the tabbed pane) are enabled. true if buttons are enabled; false otherwise. |
|
Sets up the Graphical User Interface (GUI) of the Browser. The GUI is divided into three sections: left side, where the CDB Tree will be visible; right side for the output (tabbed pane) and the bottom for the message text area. CDB tree (left) and the tabbed panes (right) are separeted by a JSplitPane object. On top of the GUI there is a location bar (shows the current selected path in th tree). |
|
Create the tabbed pane with two tabs (Table View and XML View).
|
|
Adds some text to the message area at the buttom of the GUI.
|
|
Enables/Disables both buttons: saveChanges & resetData
|
|
Only one instance of the Browser class can be created at any time during program execution.
|
|
Returns the path of the current selected tree node.
|
|
The main method.
|
|
Sets the cdb Tree in the left side of the GUI. |
|
Updates the location text field.
|
|
Sets the right component either a tabbed Pane or an empty text area.
|
|
Text Field that shows the selected tree path. Located on top of the Browsers GUI. |
|
The location where the separation occurs. |
|
The instance of the Browser class used during execution. |
|
The message text area (Bottom of the GUI) |
|
Button used to refresh the CDB tree (located on top of the CDB tree). |
|
Button used to reset an XML record (located on top of the tabbed pane). |
|
Button used to Save Changes to an XML record (located on top of the tabbed pane). |
|
JSlit Pane used to separete the CDB tree and the tabbed Pane window. |
|
The IOR (Input Output reference) string which represents the DAL access parameters. |
|
|
|
|