de.cbse.jeasy
Class JEComponent

java.lang.Object
  extended by de.cbse.jeasy.JEObject
      extended by de.cbse.jeasy.JEComponent
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.ComponentListener, java.awt.event.FocusListener, java.awt.event.InputMethodListener, java.awt.event.ItemListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.awt.event.WindowFocusListener, java.awt.event.WindowListener, java.beans.PropertyChangeListener, java.util.EventListener, javax.swing.event.CaretListener, javax.swing.event.ChangeListener, javax.swing.event.DocumentListener, javax.swing.event.ListSelectionListener, javax.swing.event.MenuKeyListener, javax.swing.event.PopupMenuListener, javax.swing.event.TableModelListener, javax.swing.event.TreeExpansionListener, javax.swing.event.TreeModelListener, javax.swing.event.TreeSelectionListener
Direct Known Subclasses:
JEButton, JECheckBox, JECheckBoxMenuItem, JEComboBox, JEDataField, JEEditorPane, JELabel, JEList, JEMenuItem, JEOptionPane, JEParentComponent, JEProgressBar, JERadioButton, JERadioButtonMenuItem, JESpinner

public class JEComponent
extends JEObject
implements java.awt.event.FocusListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.awt.event.KeyListener, javax.swing.event.MenuKeyListener, java.awt.event.ActionListener, javax.swing.event.DocumentListener, java.awt.event.WindowListener, javax.swing.event.TreeExpansionListener, javax.swing.event.TreeModelListener, javax.swing.event.TreeSelectionListener, javax.swing.event.ChangeListener, java.awt.event.ItemListener, javax.swing.event.TableModelListener, javax.swing.event.ListSelectionListener, javax.swing.event.PopupMenuListener, java.awt.event.InputMethodListener, java.beans.PropertyChangeListener, java.awt.event.ComponentListener, javax.swing.event.CaretListener, java.awt.event.WindowFocusListener

The super class of all jeasy swing components. Most of the properties and event listeners for all components are set and handled in this class.

Properties :

Author:
Harry Pfohl

Field Summary
protected  boolean animated
           
protected  java.lang.String backup
           
protected  javax.swing.JButton buttonBehind
           
protected  int caretPosition
           
protected  javax.swing.JComponent component
           
protected  int endMarkPosition
           
protected  boolean enterPressed
           
protected  boolean isPressed
           
protected  JEButton jeButtonBehind
           
protected  javax.swing.JLabel label
           
protected  javax.swing.JLabel labelBehind
           
protected  java.lang.String labelText
           
protected  java.lang.String parentId
           
protected  javax.swing.JScrollPane scrollPane
           
protected  javax.swing.JTree tree
           
protected  javax.swing.tree.DefaultMutableTreeNode treeNode
           
protected  java.awt.Window window
           
 
Fields inherited from class de.cbse.jeasy.JEObject
aaa, ACTIVITYBAR, ANIMATION, BORDER, BUSINESSOBJECT_NAME, BUTTON, BUTTONGROUP, CHECKBOX, CHECKBOXMENUITEM, COLOR, COMBOBOX, ComboBoxButtonWidth, COMBOLIST, CONSTRAINTS, CONTEXT_HELP_FOCUS_GAINED, CONTEXT_HELP_FOCUS_LOST, CONTEXT_HELP_MOUSE_ENTERED, CONTEXT_HELP_MOUSE_EXITED, DATAFIELD, DATATYPE, DESKTOPPANE, DIALOG, EDITORPANE, FONT, FORMAT, FRAME, GANTTGRID, GLOBAL, GRADIENTPAINT, HELP, ICON, ID_JESTART, INPUT_ERROR_DATE, INPUT_ERROR_LENGTH, INPUT_ERROR_MANDATORY, INPUT_ERROR_PARSE, INPUT_ERROR_RANGE, INPUT_ERROR_REGULAREXPRESSION, INPUT_ERROR_TIME, INPUT_ERRORS, INSETS, INTERNALFRAME, intType, LABEL, LIST, LOCALE, MENU, MENUBAR, MENUITEM, MESSAGE, METHODINVOCATION, NO_CONSTANT, NO_INPUT_ERROR, OPTIONPANE, PANEL, POPUP, PROGRESSBAR, PROPERTIE_NAME, propertyHashMap, RADIOBUTTON, RADIOBUTTONMENUITEM, refresh, SPINNER, SPLITPANE, START, STORE, STRING, TABBEDPANE, TABLE, TASKPANE, TEXTUREPAINT, THEME, TIPS, TOOLBAR, TREE, TREENODE, type, WINDOW
 
Constructor Summary
JEComponent()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void add(javax.swing.ButtonGroup bgrp)
          Adds the JEObject (JRadioButton) to ButtonGroup
 void add(java.awt.Container container, java.lang.String idContainer)
          Adds the JEObject to the container regarding the LayoutManager of the container.
 void add(java.awt.Container container, java.lang.String border, java.lang.String idContainer)
          Adds the JEasy object to a Container with a BorderLayout
 void add(javax.swing.tree.DefaultMutableTreeNode tn, java.lang.String idContainer)
          Adds the JEObject (DefaultMutableTreeNode) to DefaultMutableTreeNode
 void add(javax.swing.JDesktopPane co)
          Adds the JEObject to a JDesktopPane
 void add(JEMenu me)
          Adds the JEObject (JMenuItem) to JMenu
 void add(JEMenuBar me)
          Adds the JEObject (JMenu) to JMenuBar
 void add(JEParentComponent parentComponent)
          Adds the JEasy object to the JEParentObject regarding the LayoutManager of the JEParentObject.
 void add(JETree tr)
          Adds the JETreeNode to the JETree
 void add(JETreeNode tn)
          Adds this JETreenode to the given JETreeNode
 void add(javax.swing.JPopupMenu me)
          Adds the JEObject (JMenuItem) to JMenu
 void add(javax.swing.JSplitPane container, int index, java.lang.String idContainer)
          Adds the JEasy object to the SplitPane at index.
 void add(javax.swing.JTabbedPane container, java.lang.String idTabbedPane)
          Adds the JEObject to a JTabbedPane
 void add(javax.swing.JTable co)
          Adds the JEObject to JTable
 void add(java.lang.String s, javax.swing.JMenuBar mb)
          Adds the JMenuBar to a Container with a BorderLayout
 void addListeners()
          Adds all usable listeners to this object
 void backupEntry()
          The current text will be stored internal to check against changes
 void caretPositionChanged(java.awt.event.InputMethodEvent event)
           
 void caretUpdate(javax.swing.event.CaretEvent e)
           
 void changedUpdate(javax.swing.event.DocumentEvent e)
           
 void componentHidden(java.awt.event.ComponentEvent e)
           
 void componentMoved(java.awt.event.ComponentEvent e)
           
 void componentResized(java.awt.event.ComponentEvent e)
           
 void componentShown(java.awt.event.ComponentEvent e)
           
 int examine()
          Examines the field with the current entry.
 int examine(java.lang.String s)
          Checks and formats the entry of an input field.
 void focusGained(java.awt.event.FocusEvent e)
           
 void focusLost(java.awt.event.FocusEvent e)
           
 javax.swing.JComponent getAddableComponent()
          Returns the JScrollpane if the component is scrollable.
 JEAnimation getAnimation()
          Gets the animation of the component, its parent or the global animation.
 java.lang.String getBackupEntry()
          Gets the backuped text
 javax.swing.JButton getButtonBehind()
          Returns the JButton behind a JEasy object
 javax.swing.Icon getClosedIcon()
          Gets the closed icon used in tree nodes.
 int getColumns()
          Gets the columns of a field.
 javax.swing.JComponent getComponent()
          Returns the JComponent of the Swing Object created by the JEasy object
 JEDataType getDataType()
          Gets the JEDataType
 javax.swing.Icon getIcon()
          Gets the icon of the component.
 JEButton getJEButtonBehind()
          Returns the JEButton behind the JEasy object
 javax.swing.JLabel getJLabel()
          Gets the label of the JEObject
 javax.swing.JScrollPane getJScrollpane()
          Returns the JScrollpane if the component has one.
 javax.swing.JLabel getLabel()
          Deprecated. 
 javax.swing.JLabel getLabelBehind()
          Returns the JLabel behind the field
 java.lang.String getLabelText()
          Gets the text of the label of the JEObject
 javax.swing.Icon getLeafIcon()
          Gets the leaf icon used in tree nodes.
 boolean getMandatory()
          Gets whether the input field is mandatory or not
 java.lang.String getName()
          Gets the name of the JEObject.
 javax.swing.Icon getOpenIcon()
          Gets the opened icon used in tree nodes If it is not defined the icon is given instead.
 java.lang.String getParentId()
          Gets the id of the JEObject where this JEObject was added
 java.lang.String getToolTipText()
          Gets the toolTipText
 javax.swing.tree.DefaultMutableTreeNode getTreeNode()
           
 java.lang.String getValue()
          Gets the value of the component.
 java.lang.String getValueBeforeFocus()
          Gets the value the component had before it gets the focus
 java.lang.String getValueNotNull()
          Gets the value of the component.
 java.util.Vector getValues()
          Gets the values of a object that may have more than one valid entries like a list.
 java.awt.Window getWindow()
          Returns the Window if the Swing Object is a frame
protected  void init()
          Creates jfc-Objects with the given properties.
 void inputMethodTextChanged(java.awt.event.InputMethodEvent event)
           
 void insertUpdate(javax.swing.event.DocumentEvent e)
           
 boolean isAnimated()
           
 boolean isEditable()
           
 boolean isExiting()
           
 boolean isListening()
          Returns whether the listener are enabled
 boolean isShowing()
           
 boolean isVerified()
           
 boolean isVisible()
          Gets the isVisible flag of the component
 void itemStateChanged(java.awt.event.ItemEvent e)
           
(package private)  boolean jCallBackInputVerifier(java.lang.String id, java.lang.String text, int error)
          Input Verifiers will send to JCallback
 void keyPressed(java.awt.event.KeyEvent e)
           
 void keyReleased(java.awt.event.KeyEvent e)
           
 void keyTyped(java.awt.event.KeyEvent e)
           
 void menuKeyPressed(javax.swing.event.MenuKeyEvent e)
           
 void menuKeyReleased(javax.swing.event.MenuKeyEvent e)
           
 void menuKeyTyped(javax.swing.event.MenuKeyEvent e)
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseDragged(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
          Performs mouse event action like rollover text and color
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
           
 void popupMenuCanceled(javax.swing.event.PopupMenuEvent e)
           
 void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent e)
           
 void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent e)
           
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
 void refresh()
          Sets all properties regarding of the locale without building new all swing components.
 void remove(JETreeNode tn)
          Removes this JETreenode from the given JETreeNode
 void removeActionListeners()
          Removes all added ActionListeners
 void removeUpdate(javax.swing.event.DocumentEvent e)
           
 void repaint()
          Sets the entry of the component to the backuped value
 void restoreEntry()
          Sets the entry of the component to the backuped value
 void restoreValueBeforeFocus()
           
 void setAnimated(boolean animated)
           
 void setBackground(java.awt.Color c)
          Sets the background of the component
 JEWorker setBackground(javax.swing.JComponent comp, java.awt.Color c)
          Changes color using animation
 void setEnabled(boolean b)
          Enables/disables the component and the button behind
 void setEnabled(java.lang.Boolean b)
          Enables/disables the component and the button behind
 void setExiting(boolean exiting)
           
 boolean setFocus()
          Sets the focus on this component.
 void setForeground(java.awt.Color c)
          Sets the foreground of the component
 JEWorker setForeground(javax.swing.JComponent comp, java.awt.Color c)
          Animated setForground
 void setIcon(javax.swing.Icon icon)
          Sets the icon of the component.
 void setListening(boolean listening)
          Activates or deactivates the listeners.
 void setMandatory(boolean b)
          Sets the input field mandatory or not
 void setParentId(java.lang.String parentId)
           
 void setProperties(java.util.HashMap properties)
          Updates an object by setting properties.
 void setText(java.lang.String s)
          Sets the text of the component.
 void setToolTipText(java.lang.String tooltip)
          Sets the toolTipText
 void setTreeNode(javax.swing.tree.DefaultMutableTreeNode treeNode)
           
 void setupComponent()
          Set the property values to the component.
 void setValue(java.lang.String s)
          Sets the value of the component.
 void setValueBeforeFocus(java.lang.String valueBeforeFocus)
          To set manually.
 void setValues(java.util.Vector v)
          Sets the values of the component.
 void setVerified(boolean b)
          Is set by the inputverifier.
 void setVisible(boolean b)
          Makes the component visible or invisible
 void setVisible(java.lang.Boolean b)
          Makes the component visible or invisible
 void stateChanged(javax.swing.event.ChangeEvent e)
           
 void tableChanged(javax.swing.event.TableModelEvent e)
           
 void textUpdate(javax.swing.event.DocumentEvent e)
          Event on editing a textfield
 boolean timerTask()
           
 void transferFocus()
          Transfers the focus to the next field
 void transferFocusBackward()
          Transfers the focus to the previous field
 void treeCollapsed(javax.swing.event.TreeExpansionEvent e)
           
 void treeExpanded(javax.swing.event.TreeExpansionEvent e)
           
 void treeNodesChanged(javax.swing.event.TreeModelEvent e)
           
 void treeNodesInserted(javax.swing.event.TreeModelEvent e)
           
 void treeNodesRemoved(javax.swing.event.TreeModelEvent e)
           
 void treeStructureChanged(javax.swing.event.TreeModelEvent e)
           
 void valueChanged(javax.swing.event.ListSelectionEvent e)
           
 void valueChanged(javax.swing.event.TreeSelectionEvent e)
           
 boolean wasEntryChanged()
          The components compares the current entry with the data stored by backupEntry()
 void windowActivated(java.awt.event.WindowEvent e)
           
 void windowClosed(java.awt.event.WindowEvent e)
           
 void windowClosing(java.awt.event.WindowEvent e)
           
 void windowDeactivated(java.awt.event.WindowEvent e)
           
 void windowDeiconified(java.awt.event.WindowEvent e)
           
 void windowGainedFocus(java.awt.event.WindowEvent e)
           
 void windowIconified(java.awt.event.WindowEvent e)
           
 void windowLostFocus(java.awt.event.WindowEvent e)
           
 void windowOpened(java.awt.event.WindowEvent e)
           
 
Methods inherited from class de.cbse.jeasy.JEObject
clearPreview, clone, getApplLocale, getBorderConstantProperty, getBorderProperty, getCharGProperty, getCharProperty, getColorProperty, getConstraintsProperty, getFontProperty, getGProperty, getGradientPaintProperty, getId, getImageConstantProperty, getImageIconProperty, getInsetsProperty, getJEGlobal, getJETexturePaintProperty, getLayoutProperty, getLocaleProperties, getObjectsHashMap, getObjectsNonPreviewHashMap, getPreviewHashMap, getPreviewObject, getProjectDirectory, getPropertieHashMap, getProperty, getProperty, getPropertyAsArray, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsInteger, getPropertyAsObject, getPropertyAsObject, getPropertyAsVector, getPropertyAsVector, getReferenceButtonBehind, getReferenceId, getRegisterText, getResourceUrl, getRootPane, getRootPaneId, getSwingConstantProperty, getTabbedPaneConstantProperty, getTexturePaintProperty, getType, getUniqueNumber, hasSuperclass, invoke, invoke, invoke, invoke, isApplet, isEnterprise, isGlobalAnimation, isGlobalListening, isInited, isPreview, isPreviewMember, isProfessional, isRefresh, isSetuped, isStandard, registerJEObject, removeProperties, removeProperty, removeProperty, setApplet, setApplLocale, setGlobalAnimation, setGlobalListening, setInited, setJeGlobal, setLocaleProperties, setPreview, setPreviewHashMap, setPreviewMember, setPreviewObject, setProjectDirectory, setPropertieHashMap, setProperties, setProperties, setProperty, setProperty, setRefresh, setRootPane, setRootPaneId, setSetuped, setType, show
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

backup

protected java.lang.String backup

buttonBehind

protected javax.swing.JButton buttonBehind

caretPosition

protected int caretPosition

component

protected javax.swing.JComponent component

endMarkPosition

protected int endMarkPosition

enterPressed

protected boolean enterPressed

isPressed

protected boolean isPressed

jeButtonBehind

protected JEButton jeButtonBehind

label

protected javax.swing.JLabel label

labelBehind

protected javax.swing.JLabel labelBehind

labelText

protected java.lang.String labelText

parentId

protected java.lang.String parentId

scrollPane

protected javax.swing.JScrollPane scrollPane

tree

protected javax.swing.JTree tree

treeNode

protected javax.swing.tree.DefaultMutableTreeNode treeNode

window

protected java.awt.Window window

animated

protected boolean animated
Constructor Detail

JEComponent

public JEComponent()
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

add

public void add(javax.swing.ButtonGroup bgrp)
Adds the JEObject (JRadioButton) to ButtonGroup

Parameters:
JRadioButton -

add

public void add(java.awt.Container container,
                java.lang.String idContainer)
Adds the JEObject to the container regarding the LayoutManager of the container.

Parameters:
container -
idContainer -

add

public void add(java.awt.Container container,
                java.lang.String border,
                java.lang.String idContainer)
Adds the JEasy object to a Container with a BorderLayout

Parameters:
container - where the JButton is added
border - "North" "South" "West" "East" "Center"
idContainer - the JEasy id of the container

add

public void add(javax.swing.tree.DefaultMutableTreeNode tn,
                java.lang.String idContainer)
Adds the JEObject (DefaultMutableTreeNode) to DefaultMutableTreeNode

Parameters:
DefaultMutableTreeNode - to hold the object

add

public void add(javax.swing.JDesktopPane co)
Adds the JEObject to a JDesktopPane

Parameters:
JDesktop -

add

public void add(JEMenu me)
Adds the JEObject (JMenuItem) to JMenu

Parameters:
JMenu - to hold the item

add

public void add(JEMenuBar me)
Adds the JEObject (JMenu) to JMenuBar

Parameters:
JMenu - to hold the item

add

public void add(JEParentComponent parentComponent)
Adds the JEasy object to the JEParentObject regarding the LayoutManager of the JEParentObject.

Parameters:
po -

add

public void add(JETree tr)
Adds the JETreeNode to the JETree

Parameters:
tr -
idContainer -

add

public void add(JETreeNode tn)
Adds this JETreenode to the given JETreeNode

Parameters:
tn -

add

public void add(javax.swing.JPopupMenu me)
Adds the JEObject (JMenuItem) to JMenu

Parameters:
JMenu - to hold the item

add

public void add(javax.swing.JSplitPane container,
                int index,
                java.lang.String idContainer)
Adds the JEasy object to the SplitPane at index.

Parameters:
container -
index - 0 or 1
idContainer - the JEasy id of the container

add

public void add(javax.swing.JTabbedPane container,
                java.lang.String idTabbedPane)
Adds the JEObject to a JTabbedPane

Parameters:
container -
idTabbedPane - JEasy id of the TabbedPane

add

public void add(javax.swing.JTable co)
Adds the JEObject to JTable

Parameters:
JTable -

add

public void add(java.lang.String s,
                javax.swing.JMenuBar mb)
Adds the JMenuBar to a Container with a BorderLayout

Parameters:
String - "North" "South" "West" "East" "Center"
JMenuBar - the MenuBar

addListeners

public void addListeners()
Adds all usable listeners to this object


backupEntry

public void backupEntry()
The current text will be stored internal to check against changes


caretPositionChanged

public void caretPositionChanged(java.awt.event.InputMethodEvent event)
Specified by:
caretPositionChanged in interface java.awt.event.InputMethodListener

caretUpdate

public void caretUpdate(javax.swing.event.CaretEvent e)
Specified by:
caretUpdate in interface javax.swing.event.CaretListener

changedUpdate

public void changedUpdate(javax.swing.event.DocumentEvent e)
Specified by:
changedUpdate in interface javax.swing.event.DocumentListener

componentHidden

public void componentHidden(java.awt.event.ComponentEvent e)
Specified by:
componentHidden in interface java.awt.event.ComponentListener

componentMoved

public void componentMoved(java.awt.event.ComponentEvent e)
Specified by:
componentMoved in interface java.awt.event.ComponentListener

componentResized

public void componentResized(java.awt.event.ComponentEvent e)
Specified by:
componentResized in interface java.awt.event.ComponentListener

componentShown

public void componentShown(java.awt.event.ComponentEvent e)
Specified by:
componentShown in interface java.awt.event.ComponentListener

examine

public int examine()
Examines the field with the current entry.

Returns:
JEObject.INPUT_ERROR_xxx

examine

public int examine(java.lang.String s)
Checks and formats the entry of an input field. It is called by the Input Verifier every time the field should lost the focus.

Returns:
JEObject.INPUT_ERROR_xxx

focusGained

public void focusGained(java.awt.event.FocusEvent e)
Specified by:
focusGained in interface java.awt.event.FocusListener
See Also:
FocusListener.focusGained(java.awt.event.FocusEvent)

focusLost

public void focusLost(java.awt.event.FocusEvent e)
Specified by:
focusLost in interface java.awt.event.FocusListener
See Also:
FocusListener.focusLost(java.awt.event.FocusEvent)

getAddableComponent

public javax.swing.JComponent getAddableComponent()
Returns the JScrollpane if the component is scrollable. Otherwise the component.

Returns:
jcomponent

getBackupEntry

public java.lang.String getBackupEntry()
Gets the backuped text

Returns:
String

getButtonBehind

public javax.swing.JButton getButtonBehind()
Returns the JButton behind a JEasy object

Returns:
JButton

getClosedIcon

public javax.swing.Icon getClosedIcon()
Gets the closed icon used in tree nodes. If it is not defined the icon is given instead.

Returns:

getColumns

public int getColumns()
Gets the columns of a field. The columns are set as a property. If not set the global property maxColumns is set as default.

Returns:
number of columns (ie characerts) to specify the length of a field

getComponent

public javax.swing.JComponent getComponent()
Returns the JComponent of the Swing Object created by the JEasy object

Returns:
jcomponent

getDataType

public JEDataType getDataType()
Gets the JEDataType

Returns:
JEDataclass

getIcon

public javax.swing.Icon getIcon()
Gets the icon of the component.

Parameters:
icon -

getJEButtonBehind

public JEButton getJEButtonBehind()
Returns the JEButton behind the JEasy object

Returns:
JEButton

getJScrollpane

public javax.swing.JScrollPane getJScrollpane()
Returns the JScrollpane if the component has one.

Returns:
jcomponent

getLabel

@Deprecated
public javax.swing.JLabel getLabel()
Deprecated. 

Gets the label of the JEObject

Returns:
label

getJLabel

public javax.swing.JLabel getJLabel()
Gets the label of the JEObject

Returns:
label

getLabelBehind

public javax.swing.JLabel getLabelBehind()
Returns the JLabel behind the field

Returns:
jcomponent

getLabelText

public java.lang.String getLabelText()
Gets the text of the label of the JEObject

Returns:
labelText

getLeafIcon

public javax.swing.Icon getLeafIcon()
Gets the leaf icon used in tree nodes. If it is not defined the icon is given instead.

Returns:

getMandatory

public boolean getMandatory()
Gets whether the input field is mandatory or not


getName

public java.lang.String getName()
Gets the name of the JEObject. It is the label of textfields or the text of a button or a treenode or a checkbox

Returns:
name

getOpenIcon

public javax.swing.Icon getOpenIcon()
Gets the opened icon used in tree nodes If it is not defined the icon is given instead.

Returns:

getParentId

public java.lang.String getParentId()
Gets the id of the JEObject where this JEObject was added

Overrides:
getParentId in class JEObject
Returns:
id of the JEObject

getToolTipText

public java.lang.String getToolTipText()
Gets the toolTipText

Returns:

getTreeNode

public javax.swing.tree.DefaultMutableTreeNode getTreeNode()
Returns:

getValueNotNull

public java.lang.String getValueNotNull()
Gets the value of the component. If the component is a textfield it is the text contained in this TextComponent. When it is a checkbox it is returned true or false. Because Swing returns null these method cjngs null to ""

Returns:
string or ""

getValue

public java.lang.String getValue()
Gets the value of the component. If the component is a textfield it is the text contained in this TextComponent. When it is a checkbox it is returned true or false.

Returns:
string or null

getValueBeforeFocus

public java.lang.String getValueBeforeFocus()
Gets the value the component had before it gets the focus

Returns:

getValues

public java.util.Vector getValues()
Gets the values of a object that may have more than one valid entries like a list. If the component is a multiline textfield each line separated bei "\n" is copied to the vector.

Returns:

getWindow

public java.awt.Window getWindow()
Returns the Window if the Swing Object is a frame

Returns:

init

protected void init()
Creates jfc-Objects with the given properties.

Overrides:
init in class JEObject

inputMethodTextChanged

public void inputMethodTextChanged(java.awt.event.InputMethodEvent event)
Specified by:
inputMethodTextChanged in interface java.awt.event.InputMethodListener

insertUpdate

public void insertUpdate(javax.swing.event.DocumentEvent e)
Specified by:
insertUpdate in interface javax.swing.event.DocumentListener

isEditable

public boolean isEditable()

isListening

public boolean isListening()
Returns whether the listener are enabled

Returns:

isShowing

public boolean isShowing()

isVerified

public boolean isVerified()
Returns:

isVisible

public boolean isVisible()
Gets the isVisible flag of the component

Returns:
visible

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Specified by:
itemStateChanged in interface java.awt.event.ItemListener

jCallBackInputVerifier

boolean jCallBackInputVerifier(java.lang.String id,
                               java.lang.String text,
                               int error)
Input Verifiers will send to JCallback

Parameters:
id - the id of the JEObject
ID_parent - the id of the JEObject where the component was added

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Specified by:
keyPressed in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Specified by:
keyReleased in interface java.awt.event.KeyListener

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Specified by:
keyTyped in interface java.awt.event.KeyListener

menuKeyPressed

public void menuKeyPressed(javax.swing.event.MenuKeyEvent e)
Specified by:
menuKeyPressed in interface javax.swing.event.MenuKeyListener

menuKeyReleased

public void menuKeyReleased(javax.swing.event.MenuKeyEvent e)
Specified by:
menuKeyReleased in interface javax.swing.event.MenuKeyListener

menuKeyTyped

public void menuKeyTyped(javax.swing.event.MenuKeyEvent e)
Specified by:
menuKeyTyped in interface javax.swing.event.MenuKeyListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener
Parameters:
e -

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Performs mouse event action like rollover text and color

Specified by:
mouseEntered in interface java.awt.event.MouseListener
Parameters:
e -

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener
Parameters:
e -

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener
Parameters:
e -

mouseWheelMoved

public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
Specified by:
mouseWheelMoved in interface java.awt.event.MouseWheelListener

popupMenuCanceled

public void popupMenuCanceled(javax.swing.event.PopupMenuEvent e)
Specified by:
popupMenuCanceled in interface javax.swing.event.PopupMenuListener

popupMenuWillBecomeInvisible

public void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent e)
Specified by:
popupMenuWillBecomeInvisible in interface javax.swing.event.PopupMenuListener

popupMenuWillBecomeVisible

public void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent e)
Specified by:
popupMenuWillBecomeVisible in interface javax.swing.event.PopupMenuListener

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

refresh

public void refresh()
Sets all properties regarding of the locale without building new all swing components. Use it after changing the locale or setting properties by setProperty(...).


remove

public void remove(JETreeNode tn)
Removes this JETreenode from the given JETreeNode

Parameters:
tn -

removeActionListeners

public void removeActionListeners()
Removes all added ActionListeners


removeUpdate

public void removeUpdate(javax.swing.event.DocumentEvent e)
Specified by:
removeUpdate in interface javax.swing.event.DocumentListener

repaint

public void repaint()
Sets the entry of the component to the backuped value


restoreEntry

public void restoreEntry()
Sets the entry of the component to the backuped value


restoreValueBeforeFocus

public void restoreValueBeforeFocus()

setBackground

public void setBackground(java.awt.Color c)
Sets the background of the component


setEnabled

public void setEnabled(boolean b)
Enables/disables the component and the button behind


setEnabled

public void setEnabled(java.lang.Boolean b)
Enables/disables the component and the button behind


setFocus

public boolean setFocus()
Sets the focus on this component.

Returns:
true if focus was set on the first editable component false else

setForeground

public void setForeground(java.awt.Color c)
Sets the foreground of the component


setIcon

public void setIcon(javax.swing.Icon icon)
Sets the icon of the component.

Parameters:
icon -

setListening

public void setListening(boolean listening)
Activates or deactivates the listeners. If false the events the component listens for, are not send to a callBack.

Parameters:
listening -

setMandatory

public void setMandatory(boolean b)
Sets the input field mandatory or not


setParentId

public void setParentId(java.lang.String parentId)
Overrides:
setParentId in class JEObject
Parameters:
parentId - The parentId to set.

setProperties

public void setProperties(java.util.HashMap properties)
Updates an object by setting properties. The following properties are performed JEProperies.label JEProperties.toolTipText JEProperies.visible JEProperies.enabled JEProperies.enabled

Parameters:
properties -

setText

public void setText(java.lang.String s)
Sets the text of the component.

Parameters:
s -

setToolTipText

public void setToolTipText(java.lang.String tooltip)
Sets the toolTipText


setTreeNode

public void setTreeNode(javax.swing.tree.DefaultMutableTreeNode treeNode)
Parameters:
treeNode -

setupComponent

public void setupComponent()
Set the property values to the component.

Overrides:
setupComponent in class JEObject

setForeground

public JEWorker setForeground(javax.swing.JComponent comp,
                              java.awt.Color c)
Animated setForground

Parameters:
comp -
c -
Returns:

setBackground

public JEWorker setBackground(javax.swing.JComponent comp,
                              java.awt.Color c)
Changes color using animation

Parameters:
comp -
c -
Returns:

getAnimation

public JEAnimation getAnimation()
Gets the animation of the component, its parent or the global animation.

Returns:

setValue

public void setValue(java.lang.String s)
Sets the value of the component. If the component is a textfield it is the text contained in this TextComponent. When it is a component being true or false it is set to true if the value in uppercase is TRUE or it is an integer not equals 0. Otherwise it is set to false. If the component is a label the labels text is set.


setValueBeforeFocus

public void setValueBeforeFocus(java.lang.String valueBeforeFocus)
To set manually. Normally this value is set when the component gets the focus

Parameters:
valueBeforeFocus -

setValues

public void setValues(java.util.Vector v)
Sets the values of the component. The method is overwritten by JEDatefield (to set textlines in a JTextArea out of a vector), JEList, JECombobox


setVerified

public void setVerified(boolean b)
Is set by the inputverifier. If true the field contains valid data. If false the field contains invalid data or it is mandatory and contains no data.

Parameters:
b -

setVisible

public void setVisible(boolean b)
Makes the component visible or invisible


setVisible

public void setVisible(java.lang.Boolean b)
Makes the component visible or invisible


stateChanged

public void stateChanged(javax.swing.event.ChangeEvent e)
Specified by:
stateChanged in interface javax.swing.event.ChangeListener

tableChanged

public void tableChanged(javax.swing.event.TableModelEvent e)
Specified by:
tableChanged in interface javax.swing.event.TableModelListener

textUpdate

public void textUpdate(javax.swing.event.DocumentEvent e)
Event on editing a textfield

Parameters:
e -

timerTask

public boolean timerTask()
Overrides:
timerTask in class JEObject

transferFocus

public void transferFocus()
Transfers the focus to the next field


transferFocusBackward

public void transferFocusBackward()
Transfers the focus to the previous field


treeCollapsed

public void treeCollapsed(javax.swing.event.TreeExpansionEvent e)
Specified by:
treeCollapsed in interface javax.swing.event.TreeExpansionListener

treeExpanded

public void treeExpanded(javax.swing.event.TreeExpansionEvent e)
Specified by:
treeExpanded in interface javax.swing.event.TreeExpansionListener

treeNodesChanged

public void treeNodesChanged(javax.swing.event.TreeModelEvent e)
Specified by:
treeNodesChanged in interface javax.swing.event.TreeModelListener

treeNodesInserted

public void treeNodesInserted(javax.swing.event.TreeModelEvent e)
Specified by:
treeNodesInserted in interface javax.swing.event.TreeModelListener

treeNodesRemoved

public void treeNodesRemoved(javax.swing.event.TreeModelEvent e)
Specified by:
treeNodesRemoved in interface javax.swing.event.TreeModelListener

treeStructureChanged

public void treeStructureChanged(javax.swing.event.TreeModelEvent e)
Specified by:
treeStructureChanged in interface javax.swing.event.TreeModelListener

valueChanged

public void valueChanged(javax.swing.event.ListSelectionEvent e)
Specified by:
valueChanged in interface javax.swing.event.ListSelectionListener

valueChanged

public void valueChanged(javax.swing.event.TreeSelectionEvent e)
Specified by:
valueChanged in interface javax.swing.event.TreeSelectionListener

wasEntryChanged

public boolean wasEntryChanged()
The components compares the current entry with the data stored by backupEntry()

Returns:
true data was changed false current data is equal backup data

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Specified by:
windowOpened in interface java.awt.event.WindowListener

isAnimated

public boolean isAnimated()

setAnimated

public void setAnimated(boolean animated)

windowGainedFocus

public void windowGainedFocus(java.awt.event.WindowEvent e)
Specified by:
windowGainedFocus in interface java.awt.event.WindowFocusListener

windowLostFocus

public void windowLostFocus(java.awt.event.WindowEvent e)
Specified by:
windowLostFocus in interface java.awt.event.WindowFocusListener

isExiting

public boolean isExiting()

setExiting

public void setExiting(boolean exiting)