Public Member Functions | Static Public Member Functions | Static Public Attributes | Static Package Attributes

com.cosylab.cdb.browser.CDBLogic Class Reference

Inherits javax::swing::event::TreeSelectionListener.

List of all members.

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

Member Function Documentation

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]
static void com.cosylab.cdb.browser.CDBLogic.clearCache (  )  [static]
static void com.cosylab.cdb.browser.CDBLogic.clearHashMaps (  )  [static]
static void com.cosylab.cdb.browser.CDBLogic.deleteNode (  )  [static]
static String com.cosylab.cdb.browser.CDBLogic.getCurl (  )  [static]
static Object [][] com.cosylab.cdb.browser.CDBLogic.getData ( LinkedHashMap  attributes  )  [static]

Creates a two dimensional array used to create the tables data.

Parameters:
hashM the data of the table.
static String com.cosylab.cdb.browser.CDBLogic.getKey (  )  [static]

Get the current key.

Returns:
the current key.
static boolean com.cosylab.cdb.browser.CDBLogic.isXMLTabSelected (  )  [static]

Checks if any XML tab is selected.

Returns:
true if XML tab is selected, false otherwise

References com.cosylab.cdb.browser.CDBLogic.selectedTabbedPane, and com.cosylab.cdb.browser.CDBLogic.xmlIndex.

void com.cosylab.cdb.browser.CDBLogic.keyPressed ( KeyEvent  e  ) 
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]
static void com.cosylab.cdb.browser.CDBLogic.resetXMLString (  )  [static]
static void com.cosylab.cdb.browser.CDBLogic.saveTable (  )  [static]
static void com.cosylab.cdb.browser.CDBLogic.saveXMLString ( boolean  ok  )  [static]
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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  ) 

Member Data Documentation

JTree com.cosylab.cdb.browser.CDBLogic.CDBTree = null [static, package]
final String com.cosylab.cdb.browser.CDBLogic.rootPrefix = "/root" [static, package]
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]
HashMap com.cosylab.cdb.browser.CDBLogic.tableModels = new HashMap() [static, package]
HashMap com.cosylab.cdb.browser.CDBLogic.tables = new HashMap() [static, package]
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]
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().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties