|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Panel | +--com.linxpda.dbaware.awt.DBContainer | +--com.linxpda.dbaware.awt.DBRootPanel
Top-most parent for all DBAware components. All DBAware components in an application should be a child to a single instance of DBRootPanel.
Inner classes inherited from class java.awt.Panel |
java.awt.Panel.AccessibleAWTPanel |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
DBRootPanel()
Create a new DBRootPanel with the default LayoutManager, FlowLayout. |
|
DBRootPanel(java.awt.LayoutManager layout)
Create a new DBRootPanel with the specified LayoutManager. |
Method Summary | |
void |
addEntry()
Adds the current Entry the database as a new Entry. |
void |
close()
Closes the PJODe database. |
void |
connect()
Connects the DBRootPanel to the PJODe database. |
void |
deleteEntry()
Deletes the currentEntry from the database. |
int |
getCurrentIndex()
Returns the index of the currently displayed entry. |
java.lang.String |
getFileName()
Return the filename of the PJODe database administered by this DBRootPanel. |
int |
getObjectCount()
Returns the total number of entries in the current ResultSet held by this DBRootPane. |
java.lang.String |
getRemoteURL()
Return the remote url of the PJODeRMIServer that will be supplying access to the PJODe database. |
boolean |
isRemote()
Returns true if this DBRootPanel stores data to a remote PJODeRMIServer or false if it reads/writes to a local file. |
void |
reset()
Clears the screen by clearing all text components and checkboxes and returning choice, list and radio components to their default values. |
void |
search()
Uses the current data as a search Entry. |
void |
setFileName(java.lang.String filename)
Set the PJODe database from which this DBRootPanel will read and write it's data. |
void |
setRemoteURL(java.lang.String url)
Set the remote url of the PJODeRMIServer that povides access to the PJODe database. |
void |
showFirstEntry()
Shows the first Entry in the current ResultSet. |
void |
showLastEntry()
Shows the last Entry in the current ResultSet. |
void |
showNextEntry()
Shows the next available Entry in the current ResultSet if available. |
void |
showPreviousEntry()
Shows the previous Entry in the currentResultSet if available. |
void |
updateEntry()
Updates the current Entry with the currently displayed data. |
Methods inherited from class com.linxpda.dbaware.awt.DBContainer |
getColumnLabel, getValue, setColumnLabel, setValue |
Methods inherited from class java.awt.Panel |
addNotify, getAccessibleContext |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, update, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DBRootPanel()
public DBRootPanel(java.awt.LayoutManager layout)
Method Detail |
public java.lang.String getFileName()
public void setFileName(java.lang.String filename)
public java.lang.String getRemoteURL()
public void setRemoteURL(java.lang.String url)
public void connect() throws com.linxpda.PJODe.DBException, java.rmi.RemoteException, java.io.IOException, java.lang.ClassNotFoundException, java.rmi.NotBoundException
setRemoteURL
then a remote connection is made automatically. The current
Entry list is set to all database objects.public void showNextEntry()
public void showPreviousEntry()
public void showFirstEntry()
public void showLastEntry()
public void reset()
reset
in class DBContainer
public void deleteEntry() throws java.lang.ClassNotFoundException, com.linxpda.PJODe.DBException, java.io.IOException
java.lang.ClassNotFoundException
- if the class file for the
Entry cannot be found.com.linxpda.PJODe.DBException
- if there is a database access error or the
Entry cannot be found for deletion.java.io.IOException
- if there is a general I/O error.public void addEntry() throws java.lang.ClassNotFoundException, java.io.IOException, com.linxpda.PJODe.DBException
java.lang.ClassNotFoundException
- if the class file for the
Entry cannot be found.com.linxpda.PJODe.DBException
- if there is a database access error or the
Entry already exists..java.io.IOException
- if there is a general I/O error.public void updateEntry() throws java.lang.ClassNotFoundException, java.io.IOException, com.linxpda.PJODe.DBException
java.lang.ClassNotFoundException
- if the class file for the
Entry cannot be found.com.linxpda.PJODe.DBException
- if there is a database access error or the
Entry cannot be found for update.java.io.IOException
- if there is a general I/O error.public void search() throws java.lang.ClassNotFoundException, java.io.IOException, com.linxpda.PJODe.DBException
java.lang.ClassNotFoundException
- if the class file for the
Entry cannot be found.com.linxpda.PJODe.DBException
- if there is a database access error.java.io.IOException
- if there is a general I/O error.public void close() throws java.io.IOException, com.linxpda.PJODe.DBException
java.io.IOException
- on a general I/O Error.com.linxpda.PJODe.DBException
- on a database access error.public boolean isRemote()
public int getCurrentIndex()
public int getObjectCount()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |