|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.cbse.jeasy.JEObject
com.cbse.jeasy.JEPanel
public class JEPanel
A class using a JPanel. A JPanel is a generic container. Like a JFrame it is the parent of the components.
| Properties | ||
|---|---|---|
| name | values | comment |
| id | * | Id of the object. Let it begin with PA_ |
| x | int value | The x-coordinate of the new location's top-left corner in the owners's coordinate space. |
| y | int value | The y-coordinate of the new location's top-left corner in the owners's coordinate space. |
| width | int value | The width of this component in pixels. |
| height | int value | The height of this component in pixels. |
| layout | BorderLayout | The layout of the panel. |
| border |   | Id of a border. |
| background |   | Id of a color used as the background |
| constraints |   | Constraints when added in GridBagLayout |
| scrollpane | true false |
When set to true, the panel will be scrollable. |
| tabbedpaneText |   | The text to be displayed when the panel is added in a tabbedpane. |
| tabbedpaneIcon |   | An icon shown in the tabbedpane. |
| tabbedpaneTooltip |   | A tooltip for the tabbedpane. |
| borderedpaneText |   | A border containing this text is painted arround the panel. |
| hgap | int value | Sets the horizontal gap between components in BorderLayout. |
| vgap | int value | Sets the vertical gap between components in BorderLayout. |
| North |   | Component in the North in Borderlayout. |
| South |   | Component in the South in Borderlayout |
| East |   | Component in the East in Borderlayout |
| West |   | Component in the West in Borderlayout |
| Center |   | Component in the Center in Borderlayout |
| E1 . En |
  | Elements to be shown in the dialog. |
* = property you have to set; bold = default value
| Field Summary |
|---|
| Fields inherited from class com.cbse.jeasy.JEObject |
|---|
DEVELOPPING, INPUT_ERROR_DATE, INPUT_ERROR_LENGTH, INPUT_ERROR_MANDATORY, INPUT_ERROR_PARSE, INPUT_ERROR_RANGE, INPUT_ERROR_TIME, INPUT_ERRORS, NO_INPUT_ERROR, RUNNING |
| Constructor Summary | |
|---|---|
JEPanel(java.lang.String s)
Reads the properties from a string. |
|
| Method Summary | |
|---|---|
void |
addElement(java.lang.String el)
|
void |
backupEntry()
Tells all elements to backup their entry |
void |
clear()
Clears the components in the component |
void |
clearElements()
|
java.awt.Color |
getBackground()
|
javax.swing.border.Border |
getBorder()
Get the border |
java.lang.String |
getCatalogName(int column)
Gets a column's table's catalog name. |
java.lang.String |
getCenter()
Gets the Center component when using a BorderLayout |
java.lang.String |
getColumnClassName(int column)
JDBC 2.0 Returns the fully-qualified name of the Java class whose instances are manufactured if the method ResultSet.getObject is called
to retrieve a value from the column. |
int |
getColumnCount()
Returns the number of columns in this ResultSet. |
int |
getColumnDisplaySize(int column)
Indicates the column's normal max width in chars. |
java.lang.String |
getColumnLabel(int column)
Gets the suggested column title for use in printouts and displays. |
java.lang.String |
getColumnName(int column)
Gets a column's name. |
int |
getColumnType(int column)
Retrieves a column's SQL type. |
java.lang.String |
getColumnTypeName(int column)
Retrieves a column's database-specific type name. |
javax.swing.JComponent |
getComponent()
Gets the JComponent based on this JEasy Object |
java.lang.String |
getEast()
Gets the East component when using a BoprderLayout |
java.lang.String |
getElementAt(int n)
Gets the component of element n |
java.util.Vector |
getElements()
|
int |
getElementSize()
Gets the number of elements |
java.awt.GradientPaint |
getGradientPaint()
|
java.awt.LayoutManager |
getLayout()
|
java.lang.String |
getNorth()
Gets the North component when using a BorderLayout |
javax.swing.JPanel |
getPanel()
|
int |
getPrecision(int column)
Gets a column's number of decimal digits. |
int |
getScale(int column)
Gets a column's number of digits to right of the decimal point. |
java.lang.String |
getSchemaName(int column)
Gets a column's table's schema. |
java.lang.String |
getSouth()
Gets the South component when using a BorderLayout |
java.lang.String |
getTabbedPaneText()
|
java.lang.String |
getTableName(int column)
Gets a column's table name. |
java.awt.TexturePaint |
getTexturePaint()
|
java.lang.String |
getWest()
Gets the West component when using a BorderLayout |
boolean |
isAutoIncrement(int column)
Indicates whether the column is automatically numbered, thus read-only. |
boolean |
isCaseSensitive(int column)
Indicates whether a column's case matters. |
boolean |
isCurrency(int column)
Indicates whether the column is a cash value. |
boolean |
isDefinitelyWritable(int column)
Indicates whether a write on the column will definitely succeed. |
int |
isNullable(int column)
Indicates the nullability of values in the designated column. |
boolean |
isReadOnly(int column)
Indicates whether a column is definitely not writable. |
boolean |
isSearchable(int column)
Indicates whether the column can be used in a where clause. |
boolean |
isSigned(int column)
Indicates whether values in the column are signed numbers. |
boolean |
isWritable(int column)
Indicates whether it is possible for a write on the column to succeed. |
void |
JEadd(java.awt.Container co)
Adds the JEObject to the Container |
void |
JEadd(java.awt.Container co,
java.awt.LayoutManager lm)
Adds the JEObject to the Container and the Containers LayoutManager |
void |
JEadd(java.lang.String border,
java.awt.Container co)
Adds the JEObject to a Container with a BorderLayout |
void |
JEaddTab(javax.swing.JTabbedPane co)
|
void |
JEaddTab(javax.swing.JTabbedPane co,
java.awt.LayoutManager lm)
Adds the JEObject to a JTabbedPane and its LayoutManager |
void |
keyPressed(java.awt.event.KeyEvent e)
|
void |
keyReleased(java.awt.event.KeyEvent e)
|
void |
keyTyped(java.awt.event.KeyEvent e)
|
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
restoreEntry()
Tells all elements to restore their backuped entry |
void |
setBackground(java.lang.String jeasyColor)
|
void |
setCard(java.lang.String jeobject)
Shows the JEObject in the CardLayout of the panel |
void |
setEditable(boolean b)
Enables or disables all inputfields for editing in the panel |
void |
setEnabled(boolean b)
Enables or disables all inputfields in the panel |
boolean |
setFocus()
Sets the focus on the first editable component |
void |
setGradientPaint(java.lang.String jeasyGradientPaint)
|
void |
setMarkable(boolean b)
Enables or disables all inputfields for marking regions for copy |
void |
start()
Creates the jfc components using the properties |
boolean |
wasEntryChanged()
The components compare the current entry with the data stored by backupEntry() |
| Methods inherited from class com.cbse.jeasy.JEObject |
|---|
deserializeValue, getApplet, getApplLocale, getId, getJCallBack, getJClass, getLabel, getMode, getName, getObjLocale, getParentId, getPreview, getProjectDirectory, getProperty, getRegisterText, getStarted, getTitle, getType, getXMLtag, isEditable, isEnabled, isEnterprise, isProfessional, isStandard, isVisible, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, removeProperties, removeProperty, serializeValue, setApplet, setApplLocale, setEditable, setEnabled, setJCallBack, setMarkable, setMode, setObjLocale, setParentId, setPreview, setProjectDirectory, setProperty, setStarted, setVisible, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JEPanel(java.lang.String s)
s - contains properties and valuesJE#PropertyString| Method Detail |
|---|
public void clearElements()
public void addElement(java.lang.String el)
public int getElementSize()
JEObject
getElementSize in class JEObjectpublic java.util.Vector getElements()
public javax.swing.JPanel getPanel()
public java.lang.String getElementAt(int n)
JEObject
getElementAt in class JEObjectpublic java.lang.String getNorth()
JEObject
getNorth in class JEObjectpublic java.lang.String getSouth()
JEObject
getSouth in class JEObjectpublic java.lang.String getEast()
JEObject
getEast in class JEObjectpublic java.lang.String getWest()
JEObject
getWest in class JEObjectpublic java.lang.String getCenter()
JEObject
getCenter in class JEObjectpublic java.awt.LayoutManager getLayout()
public java.lang.String getTabbedPaneText()
public java.awt.GradientPaint getGradientPaint()
public void setGradientPaint(java.lang.String jeasyGradientPaint)
public java.awt.TexturePaint getTexturePaint()
public javax.swing.border.Border getBorder()
public java.awt.Color getBackground()
public void setBackground(java.lang.String jeasyColor)
public javax.swing.JComponent getComponent()
getComponent in class JEObjectpublic void start()
start in class JEObjectJE#startpublic void setCard(java.lang.String jeobject)
public void JEadd(java.awt.Container co,
java.awt.LayoutManager lm)
JEObject
JEadd in class JEObjectpublic void JEadd(java.awt.Container co)
JEObject
JEadd in class JEObject
public void JEadd(java.lang.String border,
java.awt.Container co)
JEObject
JEadd in class JEObjectpublic void JEaddTab(javax.swing.JTabbedPane co)
public void JEaddTab(javax.swing.JTabbedPane co,
java.awt.LayoutManager lm)
JEObject
JEaddTab in class JEObjectpublic boolean setFocus()
setFocus in class JEObjectpublic void clear()
clear in class JEObjectpublic void backupEntry()
backupEntry in class JEObjectpublic void restoreEntry()
restoreEntry in class JEObjectpublic boolean wasEntryChanged()
wasEntryChanged in class JEObjectpublic void setEnabled(boolean b)
setEnabled in class JEObjectpublic void setEditable(boolean b)
setEditable in class JEObjectpublic void setMarkable(boolean b)
setMarkable in class JEObjectpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void keyTyped(java.awt.event.KeyEvent e)
keyTyped in interface java.awt.event.KeyListenerpublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenerpublic void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListener
public int getColumnCount()
throws java.sql.SQLException
java.sql.SQLException - if a database access error occurs
public boolean isAutoIncrement(int column)
throws java.sql.SQLException
column - the first column is 1, the second is 2, ...
java.sql.SQLException - if a database access error occurs
public boolean isCaseSensitive(int column)
throws java.sql.SQLException
column - the first column is 1, the second is 2, ...
java.sql.SQLException - if a database access error occurs
public boolean isSearchable(int column)
throws java.sql.SQLException
column - the first column is 1, the second is 2, ...
java.sql.SQLException - if a database access error occurs
public boolean isCurrency(int column)
throws java.sql.SQLException
column - the first column is 1, the second is 2, ...
java.sql.SQLException - if a database access error occurs
public int isNullable(int column)
throws java.sql.SQLException
column - the first column is 1, the second is 2, ...
java.sql.SQLException - if a database access error occurs
public boolean isSigned(int column)
throws java.sql.SQLException
column - the first column is 1, the second is 2, ...
java.sql.SQLException - if a database access error occurs
public int getColumnDisplaySize(int column)
throws java.sql.SQLException
column - the first column is 1, the second is 2, ...
java.sql.SQLException - if a database access error occurs
public java.lang.String getColumnLabel(int column)
throws java.sql.SQLException
column - the first column is 1, the second is 2, ...
java.sql.SQLException - if a database access error occurs
public java.lang.String getColumnName(int column)
throws java.sql.SQLException
column - the first column is 1, the second is 2, ...
java.sql.SQLException - if a database access error occurs
public java.lang.String getSchemaName(int column)
throws java.sql.SQLException
column - the first column is 1, the second is 2, ...
java.sql.SQLException - if a database access error occurs
public int getPrecision(int column)
throws java.sql.SQLException
column - the first column is 1, the second is 2, ...
java.sql.SQLException - if a database access error occurs
public int getScale(int column)
throws java.sql.SQLException
column - the first column is 1, the second is 2, ...
java.sql.SQLException - if a database access error occurs
public java.lang.String getTableName(int column)
throws java.sql.SQLException
column - the first column is 1, the second is 2, ...
java.sql.SQLException - if a database access error occurs
public java.lang.String getCatalogName(int column)
throws java.sql.SQLException
column - the first column is 1, the second is 2, ...
java.sql.SQLException - if a database access error occurs
public int getColumnType(int column)
throws java.sql.SQLException
column - the first column is 1, the second is 2, ...
java.sql.SQLException - if a database access error occursTypes
public java.lang.String getColumnTypeName(int column)
throws java.sql.SQLException
column - the first column is 1, the second is 2, ...
java.sql.SQLException - if a database access error occurs
public boolean isReadOnly(int column)
throws java.sql.SQLException
column - the first column is 1, the second is 2, ...
java.sql.SQLException - if a database access error occurs
public boolean isWritable(int column)
throws java.sql.SQLException
column - the first column is 1, the second is 2, ...
java.sql.SQLException - if a database access error occurs
public boolean isDefinitelyWritable(int column)
throws java.sql.SQLException
column - the first column is 1, the second is 2, ...
java.sql.SQLException - if a database access error occurs
public java.lang.String getColumnClassName(int column)
throws java.sql.SQLException
Returns the fully-qualified name of the Java class whose instances are
manufactured if the method ResultSet.getObject is called
to retrieve a value from the column. ResultSet.getObject
may return a subclass of the class returned by this method.
ResultSet.getObject to retrieve the value in the
specified column. This is the class name used for custom mapping.
java.sql.SQLException - if a database access error occurs
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||