Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

com::cosylab::cdb::browser::CDBLogic Class Reference

Collaboration diagram for com::cosylab::cdb::browser::CDBLogic:

Collaboration graph
[legend]
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

JTree setUpCDBTree (String strIOR)
void setDAL (DAL dal)
void setKey (String key)
String getKey ()
Object[][] getData (LinkedHashMap attributes)
void saveXMLString (boolean ok)
void resetXMLString ()
void resetTable ()
void saveTable ()
void addListener (JTextArea XMLArea)
boolean isXMLTabSelected ()
void clearCache ()
String stringPath (TreePath tp)
void clearHashMaps ()
String getCurl ()
void addNode ()
void deleteNode ()

Static Public Attributes

boolean XMLStringChanged = false

Static Package Attributes

JTree CDBTree = null
final String titleCol1 = "ATTRIBUTE NAME"
final String titleCol2 = "ATTRIBUTE VALUE"
final String rootPrefix = "/root"
final int tableIndex = 0
final int xmlIndex = 1
boolean tableChanged = false
boolean XMLIndexEnabled = false
HashMap tabbedPanes = new HashMap()
HashMap tables = new HashMap()
HashMap tableModels = new HashMap()
HashMap xmls = new HashMap()
JTabbedPane selectedTabbedPane
JTextArea selectedXMLArea
CDBTable selectedTable
CDBTableModel selectedTableModel

Static Private Attributes

DAL dal
WDAL wdal = null
JDAL jdal = null
String hashMapKey
String originalXMLString = null
boolean tableIndexEnabled = false

Member Function Documentation

void com::cosylab::cdb::browser::CDBLogic::addListener JTextArea  XMLArea  )  [inline, static]
 

Add a key listener to the XML text Area.

void com::cosylab::cdb::browser::CDBLogic::addNode  )  [inline, static]
 

void com::cosylab::cdb::browser::CDBLogic::clearCache  )  [inline, static]
 

void com::cosylab::cdb::browser::CDBLogic::clearHashMaps  )  [inline, static]
 

remove all elements inside HashMaps.

void com::cosylab::cdb::browser::CDBLogic::deleteNode  )  [inline, static]
 

String com::cosylab::cdb::browser::CDBLogic::getCurl  )  [inline, static]
 

Object [][] com::cosylab::cdb::browser::CDBLogic::getData LinkedHashMap  attributes  )  [inline, static]
 

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

Parameters:
hashM the data of the table.

String com::cosylab::cdb::browser::CDBLogic::getKey  )  [inline, static]
 

Get the current key.

Returns:
the current key.

boolean com::cosylab::cdb::browser::CDBLogic::isXMLTabSelected  )  [inline, static]
 

Checks if any XML tab is selected.

Returns:
true if XML tab is selected, false otherwise

void com::cosylab::cdb::browser::CDBLogic::keyPressed KeyEvent  e  )  [inline]
 

Invoked when a key has been pressed (inside a XML text area).

void com::cosylab::cdb::browser::CDBLogic::keyReleased KeyEvent  e  )  [inline]
 

Invoked when a key has been released.

void com::cosylab::cdb::browser::CDBLogic::keyTyped KeyEvent  e  )  [inline]
 

Invoked when a key has been typed.

void com::cosylab::cdb::browser::CDBLogic::resetTable  )  [inline, static]
 

void com::cosylab::cdb::browser::CDBLogic::resetXMLString  )  [inline, static]
 

Reset the XML String of the selected tabbed pane to its original value No interaction with jDAL needed.

void com::cosylab::cdb::browser::CDBLogic::saveTable  )  [inline, static]
 

void com::cosylab::cdb::browser::CDBLogic::saveXMLString boolean  ok  )  [inline, static]
 

Send the XML String for validation.

void com::cosylab::cdb::browser::CDBLogic::setDAL DAL  dal  )  [inline, static]
 

Set the DAL server.

void com::cosylab::cdb::browser::CDBLogic::setKey String  key  )  [inline, 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.

JTree com::cosylab::cdb::browser::CDBLogic::setUpCDBTree String  strIOR  )  [inline, static]
 

Create the CDB Tree.

String com::cosylab::cdb::browser::CDBLogic::stringPath TreePath  tp  )  [inline, static]
 

Return a String representation of the selected path.

Parameters:
tp the selected Tree Path

void com::cosylab::cdb::browser::CDBLogic::treeCollapsed TreeExpansionEvent  event  )  [inline]
 

Called whenever an item in the tree has been collapsed.

Parameters:
event the event that characterizes the change.

void com::cosylab::cdb::browser::CDBLogic::treeExpanded TreeExpansionEvent  event  )  [inline]
 

Called whenever an item in the tree has been expanded.

Parameters:
event the event that characterizes the change.

void com::cosylab::cdb::browser::CDBLogic::valueChanged TreeSelectionEvent  event  )  [inline]
 

Called whenever the value of the selection changes.

Parameters:
event the event that characterizes the change.


Member Data Documentation

JTree com::cosylab::cdb::browser::CDBLogic::CDBTree = null [static, package]
 

The CDB tree.

DAL com::cosylab::cdb::browser::CDBLogic::dal [static, private]
 

Instance of the DAL server.

String com::cosylab::cdb::browser::CDBLogic::hashMapKey [static, private]
 

The string is used as a key for the hashMaps used to store the components. String is the full tree paht of the component. (set in BrowserJNDIContext & BrowserJNDIXMLContext).

JDAL com::cosylab::cdb::browser::CDBLogic::jdal = null [static, private]
 

Reference to JDAL interface if it is implemented by DAL

String com::cosylab::cdb::browser::CDBLogic::originalXMLString = null [static, private]
 

Stores the original XML String how it is before the user starts editing

final String com::cosylab::cdb::browser::CDBLogic::rootPrefix = "/root" [static, package]
 

The prefix added to each curl

JTabbedPane com::cosylab::cdb::browser::CDBLogic::selectedTabbedPane [static, package]
 

The currently selected tabbed pane (can be null).

CDBTable com::cosylab::cdb::browser::CDBLogic::selectedTable [static, package]
 

The currently selected table component (can be null).

CDBTableModel com::cosylab::cdb::browser::CDBLogic::selectedTableModel [static, package]
 

The currently selected table model (can be null).

JTextArea com::cosylab::cdb::browser::CDBLogic::selectedXMLArea [static, package]
 

The currently selected XML component (can be null).

HashMap com::cosylab::cdb::browser::CDBLogic::tabbedPanes = new HashMap() [static, package]
 

HashMap that stored the tabbed panes (JTebbedPane).

boolean com::cosylab::cdb::browser::CDBLogic::tableChanged = false [static, package]
 

Boolean that tells id the table has been edited.

final int com::cosylab::cdb::browser::CDBLogic::tableIndex = 0 [static, package]
 

The index of the tab containing the Table.

boolean com::cosylab::cdb::browser::CDBLogic::tableIndexEnabled = false [static, private]
 

Boolean that tells if a tabbed pane has a table tab. If false -> no table view available.

HashMap com::cosylab::cdb::browser::CDBLogic::tableModels = new HashMap() [static, package]
 

HashMap that stores the table models (CDBTableModel)

HashMap com::cosylab::cdb::browser::CDBLogic::tables = new HashMap() [static, package]
 

HashMap that stores the tables (CDBTable).

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.

WDAL com::cosylab::cdb::browser::CDBLogic::wdal = null [static, private]
 

Reference to writable DAL interface if it is implemented by DAL

final int com::cosylab::cdb::browser::CDBLogic::xmlIndex = 1 [static, package]
 

The index of the tab containing the XML String.

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.

HashMap com::cosylab::cdb::browser::CDBLogic::xmls = new HashMap() [static, package]
 

HashMap that stores the XML components (JTextArea).

boolean com::cosylab::cdb::browser::CDBLogic::XMLStringChanged = false [static]
 

Boolean that tells if the XML string has been edited.


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:12:15 2009 for ACS Java API by doxygen 1.3.8