|
ElegantJ Data Tables Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
com.elegantj.jfc.label.JFCLabel
com.elegantj.data.comp.label.DataLabel
com.elegantj.data.comp.computedfield.ComputedField
This bean component allows the user to get the look and feel of JFCLabel and functionality of DatabaseColumn.
This bean provides the expression executor to parse the expression (arithmetical/database related) and to execute it. It also provides the support to the MethodsClass to get the functionality of the database related activities.
This bean provides powerful designing aspects by providing following user friendly property
Expression the expression string to be executed
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JLabel |
javax.swing.JLabel.AccessibleJLabel |
| Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
com.elegantj.editors.C1 |
c1
|
| Fields inherited from class javax.swing.JLabel |
labelFor |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
ComputedField()
Creates a ComputedField |
|
| Method Summary | |
java.lang.Object |
executeExp()
Executes the expression |
java.util.Vector |
getColumnData(int colIndex)
Returns the column values of the column at colIndex |
java.util.Vector |
getColumnData(java.lang.String colName)
Returns the column values of the column colName |
int |
getColumnIndex(java.lang.String colName)
Returns the index for the specified column |
java.util.Vector |
getColumnNames()
Returns the column names |
int |
getCurrentIndex()
Returns the current index |
int |
getCurrentPage()
Returns the current vertical page index |
int |
getCurrentPageAcross()
Returns the current horizontal page index |
java.util.Vector |
getCurrentRecord()
Returns the current record |
java.util.Vector |
getData()
Returns the data for computation |
java.lang.String |
getExpression()
Gets the expression string to be executed |
java.lang.String |
getLicenseKey()
Gets the license key |
java.lang.String[] |
getMethods()
Returns the valid methods to use in the expression |
java.lang.String[] |
getOperators()
Returns the valid operators to use in the expression |
int |
getPageAcrossCount()
Returns the horizontal page count |
int |
getPageCount()
Returns the vertical page count |
void |
readExternal(java.io.ObjectInput in)
Externalizable interface implementation to save and retrieve the state of this bean |
void |
setColumnNames(java.util.Vector columnNames)
Sets the column names |
void |
setCurrentIndex(int index)
Sets the current index |
void |
setCurrentPage(int n)
Sets the current vertical page index |
void |
setCurrentPageAcross(int n)
Sets the current horizontal page index |
void |
setData(java.util.Vector data)
Sets the data for computation |
void |
setExpression(java.lang.String exp)
Sets the expression string to be executed |
void |
setLicenseKey(java.lang.String key)
Sets the license key |
void |
setPageAcrossCount(int n)
Sets the horizontal page count |
void |
setPageCount(int n)
Sets the vertical page count |
boolean |
verifyExp()
Checks the expression whether it is valid or not |
void |
writeExternal(java.io.ObjectOutput out)
Externalizable interface implementation to save and retrieve the state of this bean |
| Methods inherited from class com.elegantj.data.comp.label.DataLabel |
getBandName, getColumnName, getColumnNo, getDataDisplayValues, getDataValue, getDefaultValue, getDisplayValue, isColumnField, isLayered, setBandName, setColumnName, setColumnNo, setDataDisplayValues, setDataValue, setDefaultValue, setDisplayValue, setLayered |
| Methods inherited from class com.elegantj.jfc.label.JFCLabel |
addPropertyChangeListener, getDisabledIconPath, getIconPath, getInsets, getLocale, getMnemonic, isLightweight, removePropertyChangeListener, setAutoscrolls, setBackground, setBorder, setBounds, setCursor, setDisabledIconPath, setDoubleBuffered, setEnabled, setFont, setForeground, setHorizontalAlignment, setHorizontalTextPosition, setIconPath, setIconTextGap, setInsets, setLabelFor, setLayout, setLightweight, setLocale, setMnemonic, setOpaque, setRequestFocusEnabled, setText, setToolTipText, setVerticalAlignment, setVerticalTextPosition, setVisible |
| Methods inherited from class javax.swing.JLabel |
checkHorizontalKey, checkVerticalKey, getAccessibleContext, getDisabledIcon, getDisplayedMnemonic, getDisplayedMnemonicIndex, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getIconTextGap, getLabelFor, getText, getUI, getUIClassID, getVerticalAlignment, getVerticalTextPosition, imageUpdate, paramString, setDisabledIcon, setDisplayedMnemonic, setDisplayedMnemonic, setDisplayedMnemonicIndex, setIcon, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setDebugGraphicsOptions, setDefaultLocale, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setPreferredSize, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.elegantj.data.comp.DatabaseColumn |
isEnabled, setEnabled |
| Field Detail |
public transient com.elegantj.editors.C1 c1
| Constructor Detail |
public ComputedField()
| Method Detail |
public void setLicenseKey(java.lang.String key)
key - the license keypublic java.lang.String getLicenseKey()
public void setExpression(java.lang.String exp)
setExpression in interface Computableexp - the expression stringpublic java.lang.String getExpression()
getExpression in interface Computablepublic boolean verifyExp()
verifyExp in interface Computablepublic java.lang.Object executeExp()
executeExp in interface Computable
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
com.elegantj.data.comp.label.DataLabel
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundExceptionpublic void setData(java.util.Vector data)
setData in interface Computabledata - the vector contains the datapublic java.util.Vector getData()
getData in interface Computablepublic void setColumnNames(java.util.Vector columnNames)
setColumnNames in interface ComputablecolumnNames - the vector contains the column namespublic java.util.Vector getColumnNames()
getColumnNames in interface Computablepublic void setCurrentIndex(int index)
setCurrentIndex in interface Computableindex - the index of the record ,being proccessedpublic int getCurrentIndex()
getCurrentIndex in interface Computablepublic java.util.Vector getCurrentRecord()
getCurrentRecord in interface Computablepublic java.util.Vector getColumnData(java.lang.String colName)
getColumnData in interface ComputablecolName - the column name
public int getColumnIndex(java.lang.String colName)
colName - the name of the column
public java.util.Vector getColumnData(int colIndex)
getColumnData in interface ComputablecolIndex - the column index
public void setCurrentPage(int n)
setCurrentPage in interface Computablen - the current vertical page indexpublic int getCurrentPage()
getCurrentPage in interface Computablepublic void setPageCount(int n)
setPageCount in interface Computablen - the vertical page countpublic int getPageCount()
getPageCount in interface Computablepublic void setCurrentPageAcross(int n)
setCurrentPageAcross in interface Computablen - the current horizontal page indexpublic int getCurrentPageAcross()
getCurrentPageAcross in interface Computablepublic void setPageAcrossCount(int n)
setPageAcrossCount in interface Computablen - the horizontal page countpublic int getPageAcrossCount()
getPageAcrossCount in interface Computablepublic java.lang.String[] getOperators()
getOperators in interface Computablepublic java.lang.String[] getMethods()
getMethods in interface Computable
|
ElegantJ Data Tables Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||