@Deprecated public class ExtendedTable extends JPanel implements DataComponent, ReferenceComponent, OpenDialog, AccessForm
| Modifier and Type | Class and Description |
|---|---|
protected class |
ExtendedTable.MJTable
Deprecated.
|
JPanel.AccessibleJPanelJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected String |
attribute
Deprecated.
|
protected JPanel |
buttonPanel
Deprecated.
|
protected Hashtable |
calculatedColumns
Deprecated.
|
static String |
COLUMN_
Deprecated.
|
protected Vector |
columns
Deprecated.
|
protected JCheckBox |
confirmChangeCheck
Deprecated.
|
protected Vector |
currencyColumns
Deprecated.
|
protected boolean |
editable
Deprecated.
|
protected Vector |
editableColumns
Deprecated.
|
protected Hashtable |
editors
Deprecated.
|
protected FormPermission |
enabledPermission
Deprecated.
|
protected String |
entity
Deprecated.
|
protected String |
formName
Deprecated.
|
static String |
INSERTION_NO_CONFIRM
Deprecated.
|
static String |
INSERTION_PERFORM
Deprecated.
|
protected Vector |
keys
Deprecated.
|
protected EntityReferenceLocator |
locator
Deprecated.
|
static String |
M_CONFIRM_INSERT
Deprecated.
|
static String |
M_CONFIRM_UPDATE
Deprecated.
|
static String |
MODIFICATION_CONFIRM
Deprecated.
|
protected MouseAdapter |
openDetailFormListener
Deprecated.
|
protected Form |
parentForm
Deprecated.
|
protected Frame |
parentFrame
Deprecated.
|
protected Vector |
parentKeys
Deprecated.
|
static String |
REQUIRED
Deprecated.
|
protected Vector |
requiredColumns
Deprecated.
|
protected ResourceBundle |
resources
Deprecated.
|
protected boolean |
restricted
Deprecated.
|
protected int |
rowPreferredSize
Deprecated.
|
protected int[] |
settedColumnWidth
Deprecated.
|
protected JLabel |
status
Deprecated.
|
protected ExtendedTable.MJTable |
table
Deprecated.
|
protected Vector |
visibleColumns
Deprecated.
|
protected FormPermission |
visiblePermission
Deprecated.
|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTCOMP_FOCUS_YELLOW, GREEN_VERY_LIGHT, LIGHT_GRAY_BLUE, LIGHT_GREYISH_BLUE, VERY_LIGHT_BLUE, VERY_LIGHT_GRAY, VERY_LIGHT_PINK, VERY_LIGHT_RED, VERY_LIGHT_SKYBLUE, VERY_LIGHT_YELLOW, VERY_LIGHT_YELLOW_2DESACTIVATE_COMPONENT_BY_PERMISSION_TIPDEBUG_LANGUAGEABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
ExtendedTable(Hashtable parameters)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Component c,
Object constraints)
Deprecated.
Este metodo esta sobrecargado por conveniencia.
|
void |
addListSelectionListenerToTable(ListSelectionListener l)
Deprecated.
|
void |
addMouseListenerToTable(MouseListener m)
Deprecated.
|
protected boolean |
checkEnabledPermission()
Deprecated.
|
protected boolean |
checkVisiblePermission()
Deprecated.
|
void |
columnWidthSet(String columna,
int pixels)
Deprecated.
Establece el ancho de una columna.
|
protected boolean |
confirmChanges()
Deprecated.
|
protected boolean |
confirmRequiredInsertCell(int fila)
Deprecated.
|
void |
deleteData()
Deprecated.
The method to delete data for component.
|
Object |
getAttribute()
Deprecated.
Gets the object attribute.
|
Object |
getConstraints(LayoutManager parentLayout)
Deprecated.
Description method to return the
constraints component to
place correctly in parent container. |
JTable |
getJTable()
Deprecated.
|
String |
getLabelComponentText()
Deprecated.
Returns the label text component.
|
int |
getSQLDataType()
Deprecated.
Returns the
sql data type according to
java.sql.Types
|
Vector |
getTextsToTranslate()
Deprecated.
Returns all the texts in the element suitable for being translated.
|
Object |
getValue()
Deprecated.
Gets the value of a component.
|
void |
init(Hashtable parameters)
Deprecated.
Main method to init an object from parameters
hashtable. |
int[] |
initColumnWidth()
Deprecated.
|
void |
initPermissions()
Deprecated.
|
protected EntityResult |
insertEntity(int row)
Deprecated.
|
protected void |
installDetailFormListener()
Deprecated.
|
protected boolean |
isColumnVisible(String col)
Deprecated.
|
protected boolean |
isColumnWidthFixed(String columna)
Deprecated.
|
boolean |
isEmpty()
Deprecated.
Checks the data existence in component.
|
boolean |
isHidden()
Deprecated.
Indicates to check the visibility condition for a component.
|
boolean |
isModifiable()
Deprecated.
Checks the modifiable condition for a component.
|
boolean |
isModified()
Deprecated.
This method should be return
true when data have been
modified. |
boolean |
isRequired()
Deprecated.
Indicates the required condition for a component.
|
boolean |
isRestricted()
Deprecated.
|
void |
packTable()
Deprecated.
|
void |
refresh()
Deprecated.
|
protected void |
removeDetailFormListener()
Deprecated.
|
void |
removeListSelectionListenerFromTable(ListSelectionListener l)
Deprecated.
|
void |
removeMouseListenerFromTable(MouseListener m)
Deprecated.
|
void |
setColumnEditor(String col,
TableCellEditor editor)
Deprecated.
|
void |
setComponentLocale(Locale l)
Deprecated.
|
void |
setEditable(boolean editable)
Deprecated.
|
protected void |
setEditableColumns()
Deprecated.
|
void |
setEnabled(boolean activ)
Deprecated.
Description method to set enabled or not the component according the
boolean condition in parameter.
|
void |
setModifiable(boolean modif)
Deprecated.
Establishes the modifiable condition for a component.
|
void |
setParentForm(Form f)
Deprecated.
Method declaration to set the form that contains the component.
|
protected void |
setParentFormEditors(Form f)
Deprecated.
|
void |
setParentFrame(Frame f)
Deprecated.
This method is called from Form for each component that implements this
interface.
|
void |
setParentFrameEditors(Frame f)
Deprecated.
|
void |
setReferenceLocator(EntityReferenceLocator locator)
Deprecated.
Establishes the reference locator that will be used by component.
|
void |
setReferencesLocatorEditors(EntityReferenceLocator locator)
Deprecated.
|
protected void |
setRenderers()
Deprecated.
|
void |
setRequired(boolean required)
Deprecated.
Sets required a component according to condition.
|
void |
setResourceBundle(ResourceBundle res)
Deprecated.
Sets the language resource bundle.
|
void |
setStateText(String texto,
int time)
Deprecated.
|
void |
setStateText(String texto,
int time,
Color c)
Deprecated.
|
void |
setValue(Object value)
Deprecated.
Sets the value for component.
|
void |
setVisible(boolean vis)
Deprecated.
Description method to set visible or not the component according the
boolean condition in parameter.
|
protected void |
setVisibleColumns()
Deprecated.
|
void |
showDetailForm()
Deprecated.
|
protected EntityResult |
updateCell(int fila,
int columna)
Deprecated.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, updateadd, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisEnabledpublic static final String COLUMN_
public static final String REQUIRED
public static final String INSERTION_NO_CONFIRM
public static final String INSERTION_PERFORM
public static final String MODIFICATION_CONFIRM
public static final String M_CONFIRM_UPDATE
public static final String M_CONFIRM_INSERT
protected String entity
protected String attribute
protected Vector columns
protected Vector keys
protected Vector parentKeys
protected Vector visibleColumns
protected Vector editableColumns
protected Vector requiredColumns
protected Vector currencyColumns
protected Hashtable calculatedColumns
protected ExtendedTable.MJTable table
protected ResourceBundle resources
protected EntityReferenceLocator locator
protected Frame parentFrame
protected JLabel status
protected String formName
protected int rowPreferredSize
protected boolean editable
protected FormPermission visiblePermission
protected FormPermission enabledPermission
protected MouseAdapter openDetailFormListener
protected int[] settedColumnWidth
protected Form parentForm
protected Hashtable editors
protected JPanel buttonPanel
protected JCheckBox confirmChangeCheck
protected boolean restricted
public void init(Hashtable parameters)
FormComponenthashtable.
init in interface FormComponentparameters - the hashtable with pairs (Key,Value). For example:
| Key | Value |
| align | center |
| attr | attribute |
| ... | ... |
public Object getConstraints(LayoutManager parentLayout)
FormComponentconstraints component to
place correctly in parent container.
getConstraints in interface FormComponentparentLayout - the parent container referencepublic boolean isModified()
DataComponenttrue when data have been
modified. The method setValue() should be change this
condition.
isModified in interface DataComponentpublic boolean isRequired()
DataComponentisRequired in interface DataComponentpublic void setRequired(boolean required)
DataComponentsetRequired in interface DataComponentrequired - the required conditionpublic boolean isEmpty()
DataComponentisEmpty in interface DataComponenttrue when component is emptypublic int getSQLDataType()
DataComponentsql data type according to
java.sql.Types
getSQLDataType in interface DataComponentInteger typepublic boolean isHidden()
DataComponentisHidden in interface DataComponentpublic void setModifiable(boolean modif)
DataComponentDeleteFields call.
setModifiable in interface DataComponentmodif - the boolean conditionpublic boolean isModifiable()
DataComponentisModifiable in interface DataComponenttrue when component is modifiablepublic void deleteData()
DataComponentdeleteData in interface DataComponentpublic void setValue(Object value)
DataComponentsetValue in interface DataComponentvalue - the object with value to setpublic Object getValue()
DataComponentgetValue in interface DataComponentobject with value.public String getLabelComponentText()
DataComponentLocale.
getLabelComponentText in interface DataComponentpublic Vector getTextsToTranslate()
InternationalizationgetTextsToTranslate in interface Internationalizationpublic void setResourceBundle(ResourceBundle res)
InternationalizationsetResourceBundle in interface Internationalizationres - the new language bundle.public void setComponentLocale(Locale l)
setComponentLocale in interface Internationalizationpublic Object getAttribute()
IdentifiedElementgetAttribute in interface IdentifiedElementpublic void setReferenceLocator(EntityReferenceLocator locator)
ReferenceComponentsetReferenceLocator in interface ReferenceComponentlocator - a reference locator to set in componentpublic void setReferencesLocatorEditors(EntityReferenceLocator locator)
public void setParentFrame(Frame f)
OpenDialogsetParentFrame in interface OpenDialogf - the framepublic void setParentFrameEditors(Frame f)
protected void setEditableColumns()
public int[] initColumnWidth()
protected boolean isColumnVisible(String col)
public void packTable()
protected void setVisibleColumns()
protected void setRenderers()
public void setEditable(boolean editable)
public void setColumnEditor(String col, TableCellEditor editor)
protected boolean confirmRequiredInsertCell(int fila)
protected EntityResult insertEntity(int row) throws Exception
Exceptionprotected EntityResult updateCell(int fila, int columna) throws Exception
Exceptionpublic void setParentForm(Form f)
AccessFormsetParentForm in interface AccessFormf - the form referenceprotected void setParentFormEditors(Form f)
protected boolean confirmChanges()
public void refresh()
public void setStateText(String texto, int time)
public void add(Component c, Object constraints)
public void columnWidthSet(String columna, int pixels)
protected boolean isColumnWidthFixed(String columna)
protected void installDetailFormListener()
protected void removeDetailFormListener()
public JTable getJTable()
public void addMouseListenerToTable(MouseListener m)
public void addListSelectionListenerToTable(ListSelectionListener l)
public void removeMouseListenerFromTable(MouseListener m)
public void removeListSelectionListenerFromTable(ListSelectionListener l)
public void showDetailForm()
protected boolean checkVisiblePermission()
protected boolean checkEnabledPermission()
public void setEnabled(boolean activ)
FormComponentsetEnabled in interface FormComponentsetEnabled in class JComponentactiv - the enabled conditionpublic void setVisible(boolean vis)
FormComponentsetVisible in interface FormComponentsetVisible in class JComponentvis - the visibility conditionpublic void initPermissions()
initPermissions in interface SecureElementpublic boolean isRestricted()
isRestricted in interface SecureElementCopyright © 2016 Imatia Innovation S.L.. All rights reserved.