|
||||||||
| 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.JEList
public class JEList
A class using a JLabel a JList and JButton. A JList allows the user to select one or more objects from a list.
| Properties | ||
|---|---|---|
| name | values | comment |
| id | * | Id of the object. Let it begin with LI_ |
| name |   | It is the name of the label of the list. | button | true false |
Set true will set a button behind the field, which will send the id of the JEList as an ActionCommand to the callBack |
| mandatory | true false |
Defines an entry as mandatory |
| labelConstraints |   | Constraints for JLabel |
| textFieldConstraints |   | Constraints for JList |
| doubleclick |   | A command string send by a doubleclick on an item. You can fetch with callBack |
| singleclick |   | A command string send by a singleclick on an item. You can fetch with callBack |
| scrollpane | true false |
When set to true, the list will be scrollable. |
| E1 . En |
  | Elements to be added in the toolbar. |
* = 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 | |
|---|---|
JEList()
|
|
JEList(java.lang.String s)
Reads the properties from a string. |
|
| Method Summary | |
|---|---|
void |
addItem(java.lang.Object o)
Adds an item to the list |
void |
backupEntry()
The current selected item will be stored internal to check against changes |
void |
clear()
Removes all items from the list |
void |
clearSelection()
Clears the selection |
int |
examine()
Checks if an entry is mandatoy |
void |
focusGained(java.awt.event.FocusEvent e)
|
void |
focusLost(java.awt.event.FocusEvent e)
|
boolean |
getAntialiasing()
Gets the anialialising flag |
javax.swing.DefaultListModel |
getBackupEntry()
Gets the backuped selected item |
javax.swing.JComponent |
getComponent()
Gets the JComponent based on this JEasy Object |
javax.swing.DefaultListModel |
getDefaultListModel()
Returns the length of the ListModel |
int |
getElementSize()
Gets the number of elements |
java.awt.GridBagConstraints |
getLabelConstraints()
|
java.awt.Font |
getLabelFont()
|
javax.swing.JList |
getList()
Gets the JList component. |
java.lang.Object |
getListModelElementAt(int i)
Gets the entry of index |
int |
getListModelSize()
Returns the length of the ListModel |
javax.swing.ListModel |
getModel()
Gets the model of the JList. |
java.lang.String |
getName()
Gets the label of the JEObject |
int[] |
getSelectedIndices()
Gets the selected indices. |
java.lang.Object[] |
getSelectedValues()
Gets the selected values. |
java.awt.GridBagConstraints |
getTextFieldConstraints()
|
java.awt.Font |
getTextFieldFont()
|
java.lang.String |
getXMLtag()
Gets the XMLtag. |
boolean |
isEditable()
See isEnabled() |
boolean |
isEnabled()
False if the state of the jlist should not be changed in a Panel |
boolean |
isMandatory()
Return if an entry is mandatory |
boolean |
isVisible()
False if the jlist should not be shown in a Panel |
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 |
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 |
remove()
Removes all entries |
void |
removeItem(java.lang.Object o)
Adds an item to the list |
void |
restoreEntry()
Selects the item that was backuped before |
void |
setEnabled(boolean eb)
Enables/disables the combobox and the button |
void |
setListData(java.lang.Object[] oa)
Sets the entrys out of an array |
void |
setListData(java.util.Vector v)
Sets the entrys out of a vector |
void |
setMandatory(boolean b)
Sets the entry mandatory or not |
void |
setModel(javax.swing.ListModel lm)
Sets the ListModel |
void |
setSelectedIndex(int index)
Selects a cell given by index |
void |
setSelectedValue(java.lang.Object obj,
boolean scroll)
Selects a cell given by value |
void |
setVisible(boolean bv)
setVisible of the checkbox |
void |
setXMLtag(java.lang.String s)
Sets the XMLtag |
void |
start()
Creates the jfc components using the properties |
void |
valueChanged(javax.swing.event.ListSelectionEvent e)
ListSelectionListener |
boolean |
wasEntryChanged()
The components compares the current entry with the data stored by backupEntry() |
| Methods inherited from class com.cbse.jeasy.JEObject |
|---|
deserializeValue, getApplet, getApplLocale, getCenter, getEast, getElementAt, getId, getJCallBack, getJClass, getLabel, getMode, getNorth, getObjLocale, getParentId, getPreview, getProjectDirectory, getProperty, getRegisterText, getSouth, getStarted, getTitle, getType, getWest, isEnterprise, isProfessional, isStandard, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEaddTab, removeProperties, removeProperty, serializeValue, setApplet, setApplLocale, setEditable, setEditable, setEnabled, setFocus, setJCallBack, setMarkable, setMarkable, setMode, setObjLocale, setParentId, setPreview, setProjectDirectory, setProperty, setStarted, setVisible |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JEList(java.lang.String s)
s - contains properties and valuesJE#PropertyStringpublic JEList()
| Method Detail |
|---|
public int getElementSize()
JEObject
getElementSize in class JEObjectpublic void setMandatory(boolean b)
public boolean isMandatory()
public int getListModelSize()
public javax.swing.DefaultListModel getDefaultListModel()
public java.lang.Object getListModelElementAt(int i)
public void clear()
clear in class JEObjectpublic void clearSelection()
public void backupEntry()
backupEntry in class JEObjectpublic javax.swing.DefaultListModel getBackupEntry()
public java.lang.String getXMLtag()
getXMLtag in class JEObjectpublic void setXMLtag(java.lang.String s)
public void restoreEntry()
restoreEntry in class JEObjectpublic int examine()
public boolean wasEntryChanged()
wasEntryChanged in class JEObjectpublic java.lang.String getName()
JEObject
getName in class JEObjectpublic void setEnabled(boolean eb)
setEnabled in class JEObjectpublic void setVisible(boolean bv)
setVisible in class JEObjectpublic boolean isVisible()
isVisible in class JEObjectpublic boolean isEnabled()
isEnabled in class JEObjectpublic boolean isEditable()
isEditable in class JEObjectpublic void remove()
public void setModel(javax.swing.ListModel lm)
public void setListData(java.util.Vector v)
public void setListData(java.lang.Object[] oa)
public void setSelectedIndex(int index)
public void setSelectedValue(java.lang.Object obj,
boolean scroll)
public javax.swing.JList getList()
public javax.swing.JComponent getComponent()
getComponent in class JEObjectpublic javax.swing.ListModel getModel()
public int[] getSelectedIndices()
public java.lang.Object[] getSelectedValues()
public boolean getAntialiasing()
public void addItem(java.lang.Object o)
public void removeItem(java.lang.Object o)
public java.awt.Font getLabelFont()
public java.awt.Font getTextFieldFont()
public java.awt.GridBagConstraints getLabelConstraints()
public java.awt.GridBagConstraints getTextFieldConstraints()
public void start()
start in class JEObjectJE#start
public void JEadd(java.awt.Container co,
java.awt.LayoutManager lm)
JEObject
JEadd in class JEObjectpublic void focusGained(java.awt.event.FocusEvent e)
focusGained in interface java.awt.event.FocusListenerpublic void focusLost(java.awt.event.FocusEvent e)
focusLost in interface java.awt.event.FocusListener
public void JEadd(java.lang.String border,
java.awt.Container co)
JEObject
JEadd in class JEObjectpublic void valueChanged(javax.swing.event.ListSelectionEvent e)
valueChanged in interface javax.swing.event.ListSelectionListenerpublic 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 keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListenerpublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListener
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||