Inherits javax::swing::event::TreeSelectionListener.
Public Member Functions | |
void | treeExpanded (TreeExpansionEvent event) |
void | treeCollapsed (TreeExpansionEvent event) |
void | valueChanged (TreeSelectionEvent event) |
void | keyPressed (KeyEvent e) |
void | keyReleased (KeyEvent e) |
void | keyTyped (KeyEvent e) |
Static Public Member Functions | |
static JTree | setUpCDBTree (String strIOR) |
static void | setDAL (DAL dal) |
static void | setKey (String key) |
static String | getKey () |
static Object[][] | getData (LinkedHashMap attributes) |
static void | saveXMLString (boolean ok) |
static void | resetXMLString () |
static void | resetTable () |
static void | saveTable () |
static void | addListener (JTextArea XMLArea) |
static boolean | isXMLTabSelected () |
static void | clearCache () |
static String | stringPath (TreePath tp) |
static void | clearHashMaps () |
static String | getCurl () |
static void | addNode () |
static void | deleteNode () |
Static Public Attributes | |
static boolean | XMLStringChanged = false |
Static Package Attributes | |
static JTree | CDBTree = null |
static final String | titleCol1 = "ATTRIBUTE NAME" |
static final String | titleCol2 = "ATTRIBUTE VALUE" |
static final String | rootPrefix = "/root" |
static final int | tableIndex = 0 |
static final int | xmlIndex = 1 |
static boolean | tableChanged = false |
static boolean | XMLIndexEnabled = false |
static HashMap | tabbedPanes = new HashMap() |
static HashMap | tables = new HashMap() |
static HashMap | tableModels = new HashMap() |
static HashMap | xmls = new HashMap() |
static JTabbedPane | selectedTabbedPane |
static JTextArea | selectedXMLArea |
static CDBTable | selectedTable |
static CDBTableModel | selectedTableModel |
static void com.cosylab.cdb.browser.CDBLogic.addListener | ( | JTextArea | XMLArea | ) | [static] |
Add a key listener to the XML text Area.
static void com.cosylab.cdb.browser.CDBLogic.addNode | ( | ) | [static] |
References com.cosylab.cdb.browser.CDBAddNodeDlg.getCurl(), com.cosylab.cdb.browser.CDBLogic.getCurl(), com.cosylab.cdb.browser.CDBAddNodeDlg.getXML(), com.cosylab.cdb.browser.CDBAddNodeDlg.setCurl(), com.cosylab.cdb.browser.CDBAddNodeDlg.setXML(), and com.cosylab.cdb.browser.CDBAddNodeDlg.showModal().
static void com.cosylab.cdb.browser.CDBLogic.clearCache | ( | ) | [static] |
static void com.cosylab.cdb.browser.CDBLogic.clearHashMaps | ( | ) | [static] |
remove all elements inside HashMaps.
References com.cosylab.cdb.browser.CDBLogic.selectedTabbedPane, com.cosylab.cdb.browser.CDBLogic.selectedTable, com.cosylab.cdb.browser.CDBLogic.selectedTableModel, com.cosylab.cdb.browser.CDBLogic.selectedXMLArea, com.cosylab.cdb.browser.CDBLogic.tabbedPanes, com.cosylab.cdb.browser.CDBLogic.tableModels, com.cosylab.cdb.browser.CDBLogic.tables, and com.cosylab.cdb.browser.CDBLogic.xmls.
static void com.cosylab.cdb.browser.CDBLogic.deleteNode | ( | ) | [static] |
References com.cosylab.cdb.browser.CDBLogic.getCurl().
static String com.cosylab.cdb.browser.CDBLogic.getCurl | ( | ) | [static] |
References com.cosylab.cdb.browser.CDBLogic.rootPrefix.
Referenced by com.cosylab.cdb.browser.CDBLogic.addNode(), and com.cosylab.cdb.browser.CDBLogic.deleteNode().
static Object [][] com.cosylab.cdb.browser.CDBLogic.getData | ( | LinkedHashMap | attributes | ) | [static] |
Creates a two dimensional array used to create the tables data.
hashM | the data of the table. |
static String com.cosylab.cdb.browser.CDBLogic.getKey | ( | ) | [static] |
Get the current key.
static boolean com.cosylab.cdb.browser.CDBLogic.isXMLTabSelected | ( | ) | [static] |
Checks if any XML tab is selected.
References com.cosylab.cdb.browser.CDBLogic.selectedTabbedPane, and com.cosylab.cdb.browser.CDBLogic.xmlIndex.
void com.cosylab.cdb.browser.CDBLogic.keyPressed | ( | KeyEvent | e | ) |
Invoked when a key has been pressed (inside a XML text area).
References com.cosylab.cdb.browser.CDBLogic.CDBTree, com.cosylab.cdb.browser.CDBLogic.selectedTabbedPane, com.cosylab.cdb.browser.CDBLogic.selectedXMLArea, com.cosylab.cdb.browser.CDBLogic.tableIndex, and com.cosylab.cdb.browser.CDBLogic.XMLStringChanged.
void com.cosylab.cdb.browser.CDBLogic.keyReleased | ( | KeyEvent | e | ) |
Invoked when a key has been released.
void com.cosylab.cdb.browser.CDBLogic.keyTyped | ( | KeyEvent | e | ) |
Invoked when a key has been typed.
static void com.cosylab.cdb.browser.CDBLogic.resetTable | ( | ) | [static] |
References com.cosylab.cdb.browser.CDBLogic.CDBTree, com.cosylab.cdb.browser.CDBTable.emptyArray(), com.cosylab.cdb.browser.CDBTableModel.resetValues(), com.cosylab.cdb.browser.CDBLogic.selectedTabbedPane, com.cosylab.cdb.browser.CDBLogic.selectedTable, com.cosylab.cdb.browser.CDBLogic.selectedTableModel, com.cosylab.cdb.browser.CDBLogic.tableChanged, com.cosylab.cdb.browser.CDBLogic.xmlIndex, and com.cosylab.cdb.browser.CDBLogic.XMLIndexEnabled.
static void com.cosylab.cdb.browser.CDBLogic.resetXMLString | ( | ) | [static] |
Reset the XML String of the selected tabbed pane to its original value No interaction with jDAL needed.
References com.cosylab.cdb.browser.CDBLogic.CDBTree, com.cosylab.cdb.browser.CDBLogic.selectedTabbedPane, com.cosylab.cdb.browser.CDBLogic.selectedXMLArea, com.cosylab.cdb.browser.CDBLogic.tableIndex, and com.cosylab.cdb.browser.CDBLogic.XMLStringChanged.
static void com.cosylab.cdb.browser.CDBLogic.saveTable | ( | ) | [static] |
References com.cosylab.cdb.browser.CDBLogic.CDBTree, com.cosylab.cdb.browser.CDBTable.emptyArray(), com.cosylab.cdb.browser.CDBTableModel.getRowCount(), com.cosylab.cdb.browser.CDBTableModel.getValueAt(), com.cosylab.cdb.browser.CDBTableModel.resetValue, com.cosylab.cdb.browser.CDBLogic.selectedTabbedPane, com.cosylab.cdb.browser.CDBLogic.selectedTable, com.cosylab.cdb.browser.CDBLogic.selectedTableModel, com.cosylab.cdb.browser.CDBLogic.tableChanged, com.cosylab.cdb.browser.CDBLogic.xmlIndex, and com.cosylab.cdb.browser.CDBLogic.XMLIndexEnabled.
static void com.cosylab.cdb.browser.CDBLogic.saveXMLString | ( | boolean | ok | ) | [static] |
Send the XML String for validation.
References com.cosylab.cdb.browser.CDBLogic.CDBTree, com.cosylab.cdb.browser.CDBLogic.rootPrefix, com.cosylab.cdb.browser.CDBLogic.selectedTabbedPane, com.cosylab.cdb.browser.CDBLogic.selectedXMLArea, com.cosylab.cdb.browser.CDBLogic.tableIndex, and com.cosylab.cdb.browser.CDBLogic.XMLStringChanged.
static void com.cosylab.cdb.browser.CDBLogic.setDAL | ( | DAL | dal | ) | [static] |
Set the DAL server.
static void com.cosylab.cdb.browser.CDBLogic.setKey | ( | String | key | ) | [static] |
Sets the key of all hash maps used to store the data.
key | the unique key of the next entry to be stored. |
static JTree com.cosylab.cdb.browser.CDBLogic.setUpCDBTree | ( | String | strIOR | ) | [static] |
Create the CDB Tree.
References com.cosylab.cdb.browser.CDBLogic.CDBTree.
static String com.cosylab.cdb.browser.CDBLogic.stringPath | ( | TreePath | tp | ) | [static] |
Return a String representation of the selected path.
tp | the selected Tree Path |
Referenced by com.cosylab.cdb.browser.CDBLogic.treeCollapsed(), com.cosylab.cdb.browser.CDBLogic.treeExpanded(), and com.cosylab.cdb.browser.CDBLogic.valueChanged().
void com.cosylab.cdb.browser.CDBLogic.treeCollapsed | ( | TreeExpansionEvent | event | ) |
Called whenever an item in the tree has been collapsed.
event | the event that characterizes the change. |
References com.cosylab.cdb.browser.CDBLogic.CDBTree, and com.cosylab.cdb.browser.CDBLogic.stringPath().
void com.cosylab.cdb.browser.CDBLogic.treeExpanded | ( | TreeExpansionEvent | event | ) |
Called whenever an item in the tree has been expanded.
event | the event that characterizes the change. |
References com.cosylab.cdb.browser.CDBLogic.CDBTree, and com.cosylab.cdb.browser.CDBLogic.stringPath().
void com.cosylab.cdb.browser.CDBLogic.valueChanged | ( | TreeSelectionEvent | event | ) |
Called whenever the value of the selection changes.
event | the event that characterizes the change. |
References com.cosylab.cdb.browser.CDBLogic.selectedTabbedPane, com.cosylab.cdb.browser.CDBLogic.selectedTable, com.cosylab.cdb.browser.CDBLogic.selectedTableModel, com.cosylab.cdb.browser.CDBLogic.selectedXMLArea, com.cosylab.cdb.browser.CDBLogic.stringPath(), com.cosylab.cdb.browser.CDBLogic.tabbedPanes, com.cosylab.cdb.browser.CDBLogic.tableModels, com.cosylab.cdb.browser.CDBLogic.tables, and com.cosylab.cdb.browser.CDBLogic.xmls.
JTree com.cosylab.cdb.browser.CDBLogic.CDBTree = null [static, package] |
The CDB tree.
Referenced by com.cosylab.cdb.browser.CDBLogic.keyPressed(), com.cosylab.cdb.browser.CDBLogic.resetTable(), com.cosylab.cdb.browser.CDBLogic.resetXMLString(), com.cosylab.cdb.browser.CDBLogic.saveTable(), com.cosylab.cdb.browser.CDBLogic.saveXMLString(), com.cosylab.cdb.browser.CDBLogic.setUpCDBTree(), com.cosylab.cdb.browser.CDBLogic.treeCollapsed(), and com.cosylab.cdb.browser.CDBLogic.treeExpanded().
final String com.cosylab.cdb.browser.CDBLogic.rootPrefix = "/root" [static, package] |
The prefix added to each curl
Referenced by com.cosylab.cdb.browser.CDBLogic.getCurl(), and com.cosylab.cdb.browser.CDBLogic.saveXMLString().
JTabbedPane com.cosylab.cdb.browser.CDBLogic.selectedTabbedPane [static, package] |
The currently selected tabbed pane (can be null).
Referenced by com.cosylab.cdb.browser.CDBLogic.clearHashMaps(), com.cosylab.cdb.browser.CDBLogic.isXMLTabSelected(), com.cosylab.cdb.browser.CDBLogic.keyPressed(), com.cosylab.cdb.browser.CDBLogic.resetTable(), com.cosylab.cdb.browser.CDBLogic.resetXMLString(), com.cosylab.cdb.browser.CDBLogic.saveTable(), com.cosylab.cdb.browser.CDBLogic.saveXMLString(), and com.cosylab.cdb.browser.CDBLogic.valueChanged().
CDBTable com.cosylab.cdb.browser.CDBLogic.selectedTable [static, package] |
The currently selected table component (can be null).
Referenced by com.cosylab.cdb.browser.CDBLogic.clearHashMaps(), com.cosylab.cdb.browser.CDBLogic.resetTable(), com.cosylab.cdb.browser.CDBLogic.saveTable(), and com.cosylab.cdb.browser.CDBLogic.valueChanged().
CDBTableModel com.cosylab.cdb.browser.CDBLogic.selectedTableModel [static, package] |
The currently selected table model (can be null).
Referenced by com.cosylab.cdb.browser.CDBLogic.clearHashMaps(), com.cosylab.cdb.browser.CDBLogic.resetTable(), com.cosylab.cdb.browser.CDBLogic.saveTable(), and com.cosylab.cdb.browser.CDBLogic.valueChanged().
JTextArea com.cosylab.cdb.browser.CDBLogic.selectedXMLArea [static, package] |
The currently selected XML component (can be null).
Referenced by com.cosylab.cdb.browser.CDBLogic.clearHashMaps(), com.cosylab.cdb.browser.CDBLogic.keyPressed(), com.cosylab.cdb.browser.CDBLogic.resetXMLString(), com.cosylab.cdb.browser.CDBLogic.saveXMLString(), and com.cosylab.cdb.browser.CDBLogic.valueChanged().
HashMap com.cosylab.cdb.browser.CDBLogic.tabbedPanes = new HashMap() [static, package] |
HashMap that stored the tabbed panes (JTebbedPane).
Referenced by com.cosylab.cdb.browser.CDBLogic.clearHashMaps(), and com.cosylab.cdb.browser.CDBLogic.valueChanged().
boolean com.cosylab.cdb.browser.CDBLogic.tableChanged = false [static, package] |
Boolean that tells id the table has been edited.
Referenced by com.cosylab.cdb.browser.CDBLogic.resetTable(), and com.cosylab.cdb.browser.CDBLogic.saveTable().
final int com.cosylab.cdb.browser.CDBLogic.tableIndex = 0 [static, package] |
The index of the tab containing the Table.
Referenced by com.cosylab.cdb.browser.CDBLogic.keyPressed(), com.cosylab.cdb.browser.CDBLogic.resetXMLString(), and com.cosylab.cdb.browser.CDBLogic.saveXMLString().
HashMap com.cosylab.cdb.browser.CDBLogic.tableModels = new HashMap() [static, package] |
HashMap that stores the table models (CDBTableModel)
Referenced by com.cosylab.cdb.browser.CDBLogic.clearHashMaps(), and com.cosylab.cdb.browser.CDBLogic.valueChanged().
HashMap com.cosylab.cdb.browser.CDBLogic.tables = new HashMap() [static, package] |
HashMap that stores the tables (CDBTable).
Referenced by com.cosylab.cdb.browser.CDBLogic.clearHashMaps(), and com.cosylab.cdb.browser.CDBLogic.valueChanged().
final String com.cosylab.cdb.browser.CDBLogic.titleCol1 = "ATTRIBUTE NAME" [static, package] |
The name of the first table column.
final String com.cosylab.cdb.browser.CDBLogic.titleCol2 = "ATTRIBUTE VALUE" [static, package] |
The name of the second table column.
final int com.cosylab.cdb.browser.CDBLogic.xmlIndex = 1 [static, package] |
The index of the tab containing the XML String.
Referenced by com.cosylab.cdb.browser.CDBLogic.isXMLTabSelected(), com.cosylab.cdb.browser.CDBLogic.resetTable(), and com.cosylab.cdb.browser.CDBLogic.saveTable().
boolean com.cosylab.cdb.browser.CDBLogic.XMLIndexEnabled = false [static, package] |
Boolean that tells if a tabbed pane has a XML tab. If false -> no XML View.
Referenced by com.cosylab.cdb.browser.CDBLogic.resetTable(), and com.cosylab.cdb.browser.CDBLogic.saveTable().
HashMap com.cosylab.cdb.browser.CDBLogic.xmls = new HashMap() [static, package] |
HashMap that stores the XML components (JTextArea).
Referenced by com.cosylab.cdb.browser.CDBLogic.clearHashMaps(), and com.cosylab.cdb.browser.CDBLogic.valueChanged().
boolean com.cosylab.cdb.browser.CDBLogic.XMLStringChanged = false [static] |
Boolean that tells if the XML string has been edited.
Referenced by com.cosylab.cdb.browser.CDBLogic.keyPressed(), com.cosylab.cdb.browser.CDBLogic.resetXMLString(), and com.cosylab.cdb.browser.CDBLogic.saveXMLString().